[Freeswitch-users] Make a call with Perl
Jagadish Thoutam
jaganthoutam at gmail.com
Tue Jan 22 14:55:35 MSK 2013
Hi Matthias,
You ca use 2 scripts for More control
Like 1. will Orginate the call
2. IVR Control
#!/usr/bin/perl
use DBI;
require ESL;
my $ph = "1000";
my $dialstr = "jagan.pl";
my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
$con->api("perlrun", "$dialstr $ph");
1;
In jagan.pl You can Control your IVR and what ever you want
I hope this will help you
Thanks
Jagadish
On 22 January 2013 14:51, Matthias Cramer <matthias.cramer at iway.ch> wrote:
> Hi Michael
>
> On 21/01/13 20:50, Michael Collins wrote:
>> If you have the FS Cookbook <http://link.packtpub.com/nuIOlX> then check out chapter 4, page 81. If you don't have the FS Cookbook then *SHAME* on you! :D
>
> I've ordered the book, but it has not yet arrived... :-(
>
>> Tip: you can download the examples from both book at the Packt Publishing website. The only caveat as far as I can tell is that you need to create a login account.
>
> You do not need a login... Could download them without one.
>
>> Grab the examples for the Cookbook and look at chapter 4. The recipe is called "Launching a call with an inbound event socket connect" and it's written in - you guessed it - Perl. :)
>
> I started exactly with that example, I do an originate with &playback(). But I do not have real control over the call. I can not play anything else in the audio stream.
>
> And if the playback is finished the call hangs up ...
>
> Attached is the script I came up with so far ...
>
> Regards
>
> Matthias
>
> --
> Matthias Cramer / mc322-ripe Senior Network & Security Engineer
> iway AG Phone +41 43 500 1111
> Badenerstrasse 569 Fax +41 44 271 3535
> CH-8048 Zürich http://www.iway.ch/
> GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E 3959 B62F DF1C 2D20 8250
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list