You are here: Foswiki>Tasks Web>Item1861 (06 Jun 2013, MichaelDaum)Edit Attach

Item1861: Develop and at some future point release the ClickToCallPlugin

pencil
Priority: Enhancement
Current State: Being Worked On
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: ClickToCallPlugin
Branches:
Reported By: IngoKappler
Waiting For: Main.IngoKappler
Last Change By: MichaelDaum
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 smile that's a killer app that will finally get me to installing asterisk.

-- SvenDowideit - 29 Jul 2009

Thanks, smile nice to hear. Right now it is not ready for release but it looks like this:

ClickToCallLookAndFeel.png
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 smile

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

ItemTemplate edit

Summary Develop and at some future point release the ClickToCallPlugin
ReportedBy IngoKappler
Codebase 1.0.6
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component ClickToCallPlugin
Priority Enhancement
CurrentState Being Worked On
WaitingFor IngoKappler
Checkins ClickToCallPlugin:362de1944320
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
ClickToCallLookAndFeel.pngpng ClickToCallLookAndFeel.png manage 2 K 29 Jul 2009 - 07:24 IngoKappler ClickToCallLookAndFeel.png
Topic revision: r6 - 06 Jun 2013, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy