Item1861: Develop and at some future point release the ClickToCallPlugin
Priority: Enhancement
Current State: Being Worked On
Released In: n/a
Target Release: n/a
This plugin allows to click on a phone number and then triggers a call via Asterisk. First your own phone will ring and if that's taken the call to the real destination will be started otherwise a select box shows up for choosing a different number to start the call from.
--
IngoKappler - 29 Jul 2009
can I be the first to say
awesome that's a killer app that will finally get me to installing asterisk.
--
SvenDowideit - 29 Jul 2009
Thanks,
nice to hear. Right now it is not ready for release but it looks like this:
Look and feel of the CLICKTOCALL macro.
And the related "wiki code" where this picture comes from is:
| *WikiName<sup>[[%SYSTEMWEB%.WikiName][Help]]</sup>* | *Extension* | *Fixed* | *Mobile* |
| %STARTSECTION{name="MyClickToCall" type="section"}%%TOPIC% | %CLICKTOCALL{" %FORMFIELD{"WorkPhoneExtension" default="Please fill in the <nop>WorkPhoneExtension at your hometopic!" topic="%TOPIC%" format="$value"}% "}% | %CLICKTOCALL{" %FORMFIELD{"WorkPhone" default="Please fill in the <nop>WorkPhone at your hometopic!" topic="%TOPIC%" format="$value"}% "}% | %CLICKTOCALL{" %FORMFIELD{"WorkPhoneMobile" default="Please fill in the <nop>WorkPhoneMobile at your hometopic!" topic="%TOPIC%" format="$value"}% "}%%ENDSECTION{name="MyClickToCall" type="section"}% |
So far all the credits for the plugin code belong to a collegue of mine!
--
IngoKappler - 29 Jul 2009
It would be great if it could be extended to use something like that:
http://www.ipcom.at/index.php?id=561
What I mean is that opening a SIP session from a third party isn't really something hard to do, as it's part of the protocol (if you have a proxy, afaik).
Anyway, let's first see how it's done with Asterisk, and then build on it
--
OlivierRaginel - 29 Jul 2009
Too bad this never got finished. Meanwhile I am using a different solution to trigger a call from a web app while clicking on a sip:12345 url. Requires to register sip: as an url protocol and assign a script to it. This step is different per operating system and desktop environment. The browser then calls the
xdg-sip
script:
#!/usr/bin/perl
use strict;
use warnings;
my $sipPrg = "/usr/bin/linphone";
my $defaultDomain = "your-sip-account-domain";
my $url = $ARGV[0];
use constant DEBUG => 0;
print STDERR "xdg-sip: url=$url\n" if DEBUG;
if ($url =~ /^sip:([^@]+)(?:@(.*))?$/) {
my $id = $1;
my $domain = $2 || $defaultDomain;
$url = 'sip:'.$id.'@'.$domain;
}
print STDERR "xdg-sip: calling $url\n" if DEBUG;
system($sipPrg, "-c", $url);
... which basically triggers a softphone to dial.
--
MichaelDaum - 06 Jun 2013