Asterisk click to call
There are a number of different ways to implement "Click-to-call" functionality, which allows you to dial a phone number without actually dialing it. The convention for these scripts is to tell Asterisk to call your extension, wait for you to answer the call, and when you do, initiate a new call to the destination number.
Downsides of click-to-call include A) that you start to forget phone numbers that were once stored in memory, and B) when you're using foreign interfaces that don't provide you with the clickability, you often wonder how those around you live without it.
TACI is a Perl CGI script to make a call (currently SIP, IAX, & ZAP) from a web-page. It connects to the Asterisk manager API.
Some users have reported that using version 1.0.5+ of Asterisk, on line 177 of the script, you have to add a space so that the priority line syntax is correct, e.g. use "Priority: 1" instead of "Priority:1".
using terms from application "Address Book"
on action property
return "phone"
end action property
on action title for p with e
return "Dial with Asterisk"
end action title
on should enable action for p with e
if value of e is missing value then
return false
else
return true
end if
end should enable action
on perform action for p with e
set telephone to the value of e
set dialUrl to "http://yoursite.com/cgi-bin/yourscript.cgi?number=" & telephone
open location dialUrl
end perform action
end using terms from
Put this script in the ~/Library/Addressbook Plug-ins/ directory, and when you restart Addressbook, you should be able to right-click on the phone numbers and select "Dial with Asterisk". You could obviously apply this script more broadly to other applications where phone numbers are made available.
Another option is the free to use Interconnect API available from AgiForge it has a SOAP and XML-RPC interface
All the above excamples are great if you just want to initiate single user outbound click to call but if you want to implement server wide inbound click to call to your Asterisk server then Mexuar Corraleta in an outright ownership or hosted version is the way to go. It connects any java compliant browser to any asterisk extension or queue as configured.
Here's a useful writeup on how to put a click-to-callback button on a webpage, using Asterisk, PHP and AJAX.
You can route your call to a hard/soft phone, landline or an Asterisk or in general VoIP PBX through IAX2 or SIP protocol.
Downsides of click-to-call include A) that you start to forget phone numbers that were once stored in memory, and B) when you're using foreign interfaces that don't provide you with the clickability, you often wonder how those around you live without it.
TACI (Trivial Asterisk Call-generator Interface)
TACI is a Perl CGI script to make a call (currently SIP, IAX, & ZAP) from a web-page. It connects to the Asterisk manager API.
Some users have reported that using version 1.0.5+ of Asterisk, on line 177 of the script, you have to add a space so that the priority line syntax is correct, e.g. use "Priority: 1" instead of "Priority:1".
Integrating Click-To-Call in your Browser
With the Greasemonkey extension for the Firefox browser and Ralf Muehlen's voip_dial_user.js script that goes with Greasemonkey, you can dynamically link every phone number you come across to your custom click-to-dial script. Just edit the JS code above and change the return URL in the "trackUrl" function.Click to Dial from almost any Mac Application.. not just Addressbook:
AsteriskC2DIntegrating Click-To-Call in your Mac OS X Addressbook
This Applescript will allow you to dial phone numbers in your Mac OS X Addressbook using your Click-to-dial script:using terms from application "Address Book"
on action property
return "phone"
end action property
on action title for p with e
return "Dial with Asterisk"
end action title
on should enable action for p with e
if value of e is missing value then
return false
else
return true
end if
end should enable action
on perform action for p with e
set telephone to the value of e
set dialUrl to "http://yoursite.com/cgi-bin/yourscript.cgi?number=" & telephone
open location dialUrl
end perform action
end using terms from
Put this script in the ~/Library/Addressbook Plug-ins/ directory, and when you restart Addressbook, you should be able to right-click on the phone numbers and select "Dial with Asterisk". You could obviously apply this script more broadly to other applications where phone numbers are made available.
Integrating Click-To-Call in your Mac OS X Addressbook #2
A native Address Book Dialer is included in OS-X Client of the app_notify package.Another option is the free to use Interconnect API available from AgiForge it has a SOAP and XML-RPC interface
Asterisk Extras Implementation
Also available at Asterisk Extras is a Click to Call app that allows for any or multiple extensions to utilize it via cookies. Also a Grease Monkey script as well for Firefox detection of phone numbers.- Asterisk | FAQ | Tips & Tricks
Mexuar Corraleta (Worlds first Java Click to Call technology)
All the above excamples are great if you just want to initiate single user outbound click to call but if you want to implement server wide inbound click to call to your Asterisk server then Mexuar Corraleta in an outright ownership or hosted version is the way to go. It connects any java compliant browser to any asterisk extension or queue as configured.
Integrating Click-To-Callback to your website using Asterisk
Here's a useful writeup on how to put a click-to-callback button on a webpage, using Asterisk, PHP and AJAX.
Integrating Click-To-Call in your Browser with your Asterisk
Loquaxity is an hosted service that permit to crate a web button and managed it in a really simple way.You can route your call to a hard/soft phone, landline or an Asterisk or in general VoIP PBX through IAX2 or SIP protocol.
Real World Use of Click-To-Call
DigitalNI - Click To Call Have taken an asterisk based implementation of Click To Call and built some fantastic web services and javascript libraries. Good to see some real work use of our Open-Source Software.Astitray: A click to call gnome/desktop and windows application
Astitray is a desktop application to launch call to you phone using a central application.- The central application make authentification
- Desktop application as no direct connexion to asterisk (no manager account). Central application speak with asterisk directly
- Central application use a database (ldap or flat file for the moment) to identify, authentify and find the owned phone
- Address book is published on central application for desktop application
Comments
333Click to call
333PHP Script
http://www.voipjots.com/2006/02/click-to-call-with-your-asteriskhome.html
333SOAP-to call-Interface
Since SOAP requests are easy to make from many languages (JavaScript/php/etc), it should be easy to use as a gateway from any application. The english PDF is linked from the (german) Site http://www.voiscout.de/howto.html
Enjoy
333Click to call