[Freeswitch-users] uuid_exists in ESL (Perl)

Ali Pey alipey at gmail.com
Thu Mar 13 20:46:09 MSK 2014


The problem is when I do api and a-leg has already hung up, then it doesn't
return anything and my perl scrip crashes. Strangely enough though, if I do
execute it works most of the time. This is what I do:

my $con = new ESL::IVR;
...
...
my $aleg_exists = $con->api("uuid_exists $uuid" );



On Wed, Mar 12, 2014 at 10:20 AM, Brian West <brian at freeswitch.org> wrote:

> You're trying to execute an api call using the app execute interface. Look
> at the API examples.
>
> --
> Brian West
> brian at freeswitch.org
> FreeSWITCH Solutions, LLC
> PO BOX 2531
> Brookfield, WI 53008-2531
> Twitter: @FreeSWITCH , @briankwest
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
> iNUM: +883 5100 1420 9001
> ISN: 410*543
> Skype:briankwest
> PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
>
>
>
>
>
>
> On Mar 12, 2014, at 9:01 AM, Ali Pey <alipey at gmail.com> wrote:
>
> >
> > Any suggestions on this? I need to call uuid_exists in ESL to see if
> a-leg still exists after the bridge. The purpose of this code is to exist
> the script if a-leg has hung up after the bridge.
> >
> > Currently I have it like this:
> >
> > my $aleg_exists = $main::con->execute('uuid_exists', $main::con->{_uuid}
> );
> >
> > but it does not return true or false.
> >
> > Also, if bridge fails, I get this error:
> >
> > [ERR] switch_core_session.c:2626 Invalid Application uuid_exists
> >
>
>
> _________________________________________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140313/84d95b24/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list