[Freeswitch-users] uuid_exists in ESL (Perl)

Ali Pey alipey at gmail.com
Wed Mar 12 17:01:03 MSK 2014


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 at 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 at 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 at freeswitch.org
>> FreeSWITCH Solutions, LLC
>> PO BOX 2531
>> Brookfield, WI 53008-2531
>> Twitter: @FreeSWITCH , @briankwest
>> <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=950f18fc-5a5c-4e8b-a815-3c65771f69ef&cm_destination=http://www.freeswitchbook.com><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=08afdbc2-cc26-4f2f-bcd3-06c06885fc8e&cm_destination=http://www.freeswitchbook.com>
>> http://www.freeswitchbook.com<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=ca0e18e7-64a0-4bba-ac36-de0cd572df41&cm_destination=http://www.freeswitchbook.com>
>> http://www.freeswitchcookbook.com<https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=befc8de6-18f2-4bba-997c-7fb56be79d1f&cm_destination=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:
>> <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=b1e30461-7aea-4a1d-a1a7-0bc7fb76e943&cm_destination=http://www.bkw.org/key.txt><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=fa6e5c58-8deb-431e-afc9-1fab772577c3&cm_destination=http://www.bkw.org/key.txt>
>> http://www.bkw.org/key.txt<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=239dfac7-21b9-4264-ab3f-1757855cf62a&cm_destination=http://www.bkw.org/key.txt>(AB93356707C76CED)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mar 5, 2014, at 9:20 PM, Ali Pey <alipey at 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 at freeswitch.org
>> http://www.<https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=aa933ae0-8f1b-4e3d-bc03-23e496a31c80&cm_destination=http://www.freeswitchsolutions.com>
>> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=bba8e788-52cd-46a4-b80c-50a478b5b1ec&cm_destination=http://freeswitchsolutions.com>
>>
>> 
>> <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=5258db70-e715-47b0-8c2a-ae3f9eb9c7de&cm_destination=><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=e848e46f-79c5-40aa-85b4-d885a2bb814a&cm_destination=>
>> <https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=bfbca0e9-7d68-4917-936e-b0c5c1fc1a83&cm_destination=>
>>
>> Official FreeSWITCH Sites
>> <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=050877a3-9d7d-4587-81da-89cd9776e938&cm_destination=http://www.freeswitch.org><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=8af6198b-ccfd-4069-9128-6be98a6a1d5e&cm_destination=http://www.freeswitch.org>
>> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=a7f6cbf7-a256-4805-9fc4-97dee91167f9&cm_destination=http://www.freeswitch.org>
>> <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=a379ad07-0e4c-4aed-9fe7-92abace739c5&cm_destination=http://wiki.freeswitch.org><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=cc77fec1-76cb-4906-a91f-ae30b566a4f2&cm_destination=http://wiki.freeswitch.org>
>> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=92bacd17-2966-42d9-89b9-418f46e58d16&cm_destination=http://wiki.freeswitch.org>
>> <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=e2efafb5-bb25-4679-98d7-e9ce1e178639&cm_destination=http://www.cluecon.com><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=b6a7640d-7a81-45ef-8354-0e70069b1b04&cm_destination=http://www.cluecon.com>
>> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=a1f8242a-f3a9-4629-a07b-bf7dad1fe564&cm_destination=http://www.cluecon.com>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists. <FreeSWITCH-users at lists.freeswitch.org>freeswi<https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=a3f3a47d-7eac-4e0a-af7a-dd73d35a9362&cm_destination=http://freeswitch.org>
>> tch.org<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=daec15e9-a49a-44f3-a7db-08ab037dcddb&cm_destination=http://tch.org>
>> <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=78ca35b2-677c-4b6f-862d-e682e0a3bc0f&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=226a1869-3b2f-4761-a0f6-4f0dc561659a&cm_destination=http://lists.freeswitch.org/>
>> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=2e6c0781-e1a0-4ea7-bb89-6465e48819b6&cm_destination=http://lists.freeswitch.org/>
>> mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=253b7cc6-99fd-4956-bcfa-dfb759df0cc1&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users>
>> frees<https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=688c65ca-088a-496e-a20c-bb49474f0923&cm_destination=http://freeswitch.org/mailman/>
>> witch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=4d80d088-aa90-4ad9-8726-1cc6e5c56f45&cm_destination=http://witch.org/mailman/>
>> options/freeswitch-users
>> <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=0f73dba1-a983-4920-b619-bb452560b5d4&cm_destination=http://www.freeswitch.org><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=d0751e02-2505-4ad3-b80f-1c63c0eb0728&cm_destination=http://www.freeswitch.org>
>> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=bec9bbe5-f691-4d83-8383-b5e9dde2886e&cm_destination=http://www.freeswitch.org>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140312/4d12ac4b/attachment-0001.html 


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