Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Operator » [SOLVED]URL dial with browser
  •  
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
Dear all,

is it possible, to let my browser do the dial work for me? Not Desktop phone (xlite). I want to use my IP-Phone.

I want to put <user>: <password> <_at_> <host>: <port> / <url-path> into the right format for kerio.

Is there a chance to get this work?

Best Regards,
Heinz

[Updated on: Mon, 25 July 2016 11:00]

  •  
  •  
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
This is not working.
When I use this web app, I can use the dailing funktion. But I have to klick the green symbol with my mouse.

It would be great, when I can do this automatically.

I can put this into the browser:
https://192.168.0.247/#clickToDial=0 6188 912 00 10

This is working fine, but I missed the funktion to put return into the form.

Best Regards,
Heinz

[Updated on: Thu, 14 July 2016 08:16]

  •  
Jan Pejša (Kerio)

Messages: 29
Karma: 2
Send a private message to this user
Hi,

for your usage there is an addon for Firefox - Asterisk Click2Dial - https://addons.mozilla.org/cs/firefox/addon/asterisk-click2d ial/

For this addon configuration you have to enable and setup "Password for dialer (AMI)" in Kerio Operator Administration - edit user (e.g. test) - tab Advanced. Assign to this user also some extension (e.g. 11).

Asterisk Click2Dial configuration:
host: (IP or hostname of your Kerio Operator)
port: 5038
user: (e.g. test)
password: (Password for dialer AMI)
context: sip-locals
channel: SIP; (e.g. 11)


Basic usage of this Firefox addon: select the number on a web page, right click on selected text, select "Call: NUMBER" option in contextual menu

Support for this Firefox addon is at https://launchpad.net/click2dial-firefox-extension or http://www.acipia.fr/community/asterisk-click2dial-firefox-e xtension/

  •  
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
Thank you for your response.

But I think, this is not, what I am looking for.

We are using a FilemakerDataBase. With this I can put a button. Than I can do some magic and put my stuff into the browser and hit the return button.

It would be great to do the dialing stuff out of my Database Frontent.

Best Regards,

Heinz Krischeu
  •  
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
Perhabs this could be a way to dail with browser link?

https://wiki.asterisk.org/wiki/display/AST/Allow+Manager+Acc ess+via+HTTP

A feedback would be great.
  •  
Vladimir Toncar (Kerio)

Messages: 1696
Karma: 39
Send a private message to this user
If you need to trigger a call from your application, the best way would be use either the 'classic' AMI or Operator's API.

I am attaching an example script that starts the call using Operator API. You can use it as an example of what you need to do in your app.

  • Attachment: dial
    (Size: 1.43KB, Downloaded 38 times)
  •  
Vladimir Toncar (Kerio)

Messages: 1696
Karma: 39
Send a private message to this user
The same thing in PHP.

  • Attachment: dial.php
    (Size: 1.62KB, Downloaded 41 times)
  •  
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
Thank you for your answer.
Is it possible, that I also need this stuff?


"Download Kerio API Client Library for PHP first"
  •  
Vladimir Toncar (Kerio)

Messages: 1696
Karma: 39
Send a private message to this user
The API library is needed for the PHP script.
The shell script works without the library but it's pretty low-level code.
  •  
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
Hi,
I downloaded "Kerio APIs Client Library for PHP 1.4".
Can you recommend a path for this?


  •  
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
Thank you for the bash script.

I think I can do what I want to do with this.

In the script I found: usage IP username password dialToNumber

IP --> the IP address from my Kerio operator?
username --> the extension from the phone (e.g. 74p1)?
password from AMI of Kerio Operator
dialToNumber --> Number which I want to dial to?
  •  
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
Thank you very much.

I got it up and running with the bash script.


  •  
Vladimir Toncar (Kerio)

Messages: 1696
Karma: 39
Send a private message to this user
Since the script is using the Operator API, you need a user name and password. It's the same username/password you would use to log to Operator's end-user interface.

The IP address is really that of your Operator server.
lordofdarkness

Messages: 72
Karma: -5
Send a private message to this user
Hi,
I want to put some values through my small script to dial.sh.
Could you give me a hint, why this is not working within my CGI Apache?

Best Regards,
Heinz

#!/bin/bash

OPTION1=`echo "$QUERY_STRING" | grep -oE "(^|[?&])1=[^&]+" |  sed "s/%20/ /g" | cut -f 2 -d "=" | head -n1`
OPTION2=`echo "$QUERY_STRING" | grep -oE "(^|[?&])2=[^&]+" |  sed "s/%20/ /g" | cut -f 2 -d "="`
OPTION3=`echo "$QUERY_STRING" | grep -oE "(^|[?&])3=[^&]+" |  sed "s/%20/ /g" | cut -f 2 -d "="`
OPTION4=`echo "$QUERY_STRING" | grep -oE "(^|[?&])4=[^&]+" |  sed "s/%20/ /g" | cut -f 2 -d "="`

echo "Content-type: text/html"
echo ""
echo "<html><head><title>carhs</title></head><body><h1>asdf</h1><pre>";
echo "IP: <em>$OPTION1</em><br />"
echo "username: <em>$OPTION2</em><br />"
echo "password: <em>$OPTION3</em><br />"
echo "dialToNumber: <em>$OPTION4</em><br />"
echo "</pre></body></html>";
./dial.sh $OPTION1 $OPTION2 $OPTION3 $OPTION4
Previous Topic: ADAT not recognizing callers on incoming calls
Next Topic: Auto-attendant Scripting Help
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Mon Dec 05 09:26:48 CET 2016

Total time taken to generate the page: 0.01215 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.