login | register
Sun 07 of Sep, 2008 [21:37 UTC]

voip-info.org

Discuss [4] History

Asterisk click to call

Created by: flavour,Last modification on Wed 30 of Apr, 2008 [05:58 UTC] by jsreynaud
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 (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:

AsteriskC2D


Integrating 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.






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
Astitray should be extended to handle other pbx (not only asterisk).

Comments

Comments Filter
222

333Click to call

by Tommy13v, Thursday 21 of September, 2006 [03:28:26 UTC]
Over at http://www.asteriskextras.com they have a very good implementation of click to call and also a modified the grease monkey script above to work with it.
222

333PHP Script

by linker3000, Tuesday 27 of June, 2006 [11:05:43 UTC]
Here's a link to some code written in PHP to implement Click to Call:

http://www.voipjots.com/2006/02/click-to-call-with-your-asteriskhome.html
222

333SOAP-to call-Interface

by doerner, Thursday 05 of January, 2006 [13:05:08 UTC]
I wrote a little How-To which describes how a little CGI-script can be used as a SOAP interface to initiate calls.
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
222

333Click to call

by , Sunday 03 of October, 2004 [22:41:40 UTC]
I know its sort of cheating, But I have implemented click to call by usings x-tens web client and Free world dial , calls are handled by their cid on my *, see www.cyber-cottage.co.uk/voip/Default.htm