uuid_exists is an API command, not a command to be executed on a specific session.

This example is from the Wiki;

my $result = $fs->api("api command")

So I guess you should do something like;

my $aleg_exists = $fs->api('uuid_exists ' $main::con->{_uuid} );


2014-03-12 15:01 GMT+01:00 Ali Pey <alipey@gmail.com>:

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




On Thu, Mar 6, 2014 at 10:56 AM, Ali Pey <alipey@gmail.com> wrote:
I want to exit my perl script after bridge if a-leg has hung up. (the script is running on a-leg through fs_ivrd)



On Thu, Mar 6, 2014 at 9:59 AM, Brian West <brian@freeswitch.org> wrote:
What is your goal? or end result you’re wishing to accomplish as this doesn’t feel like the most efficient way to accomplish that.

--
Brian West
brian@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 5, 2014, at 9:20 PM, Ali Pey <alipey@gmail.com> wrote:

> Hi Brian,
>
> In my ESL script, if a-leg hangs up, the perl script continues execution after the bridge even though the channel doesn't exist anymore. I want to do uuid_exists on a-leg after the bridge to exit the script if a-leg has hung up.
>
> I have hangup_after_bridge=false because I want the script to continue after b-leg hangs up but I don't want it to continue if the a-leg hangs up.
>
> Thanks,
> Ali Pey


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org