Hello, What's the proper way to call uuid_exists in ESL using Perl or any other scripting language? Thanks, Ali Pey
What are you doing exactly? Sent from my iPhone
On Mar 3, 2014, at 1:50 PM, Ali Pey <alipey@gmail.com> wrote:
Hello,
What's the proper way to call uuid_exists in ESL using Perl or any other scripting language?
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
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 On Wed, Mar 5, 2014 at 8:41 PM, Brian West <brian@freeswitch.org> wrote:
What are you doing exactly?
Sent from my iPhone
On Mar 3, 2014, at 1:50 PM, Ali Pey <alipey@gmail.com> wrote:
Hello,
What's the proper way to call uuid_exists in ESL using Perl or any other scripting language?
Thanks, Ali Pey
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=14374c2b-ec52-4502-ab2b-257f93a566d8&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=6102048d-60cc-455c-962b-4d4e3e86f9dd&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=8c92900f-789d-46dc-a871-90240090d76d&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=a6916c4b-3d38-4ef9-831f-e1c296ad94dd&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites
<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=dc730400-ba38-45a7-a6b6-be098b23c269&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=a3354bd9-a555-4662-b0c1-3eff56dabd8f&cm_destination=http://www.freeswitch.org>
<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=ec4714e1-c70d-44a2-8f2c-fe0a599ec456&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=89171243-5534-4dd5-be16-e564b891740f&cm_destination=http://wiki.freeswitch.org>
<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=b97e992a-246e-4837-81d8-1abba1f3e85c&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=c8ee7e91-d962-4ca7-aba2-c20829ee3e16&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=faf2dac4-5a42-4be1-98a6-a4c96f1c30d7&cm_destination=http://freeswitch.org>
<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=98ece4ba-0271-46eb-8268-66bc494b2017&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=06e6686e-1590-41bb-abc4-df31591824ba&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=512350fb-fcc5-480b-b612-22b56a1e3bd6&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=22238a24-faae-4497-8497-9af056d11aa9&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users
<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=17989509-6986-42da-872d-60666068d036&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=3d32dfa0-062c-4960-8c4f-39a07b33c9aa&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=9de9d50c-01b4-4c45-9a6c-87b21df2bfbf&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=ba7621fc-25c0-4bcc-82be-d9776a9c3a90&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=a5a71d57-14fc-4001-aa13-87fe2a7c8af1&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=ca2829ef-76fe-4c9a-af5f-df9e16b5a47a&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites <https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=e98c7bf4-1a00-4136-b25b-ac9c6be52eb6&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=37040980-618c-4caa-9ffd-375c21c293a2&cm_destination=http://www.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=68e0c2a2-eb69-46a9-9eee-a142e1e6d319&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=e3746da0-e751-45b3-87e1-b2326d208922&cm_destination=http://wiki.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=2551bc2c-3bb4-4974-87c2-9a6fef4d7dfe&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=207431f7-1bb1-4981-a66b-c3e3c8b23baf&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=8ded66c3-acdb-4611-93cf-2a10cfc2eacf&cm_destination=http://freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=9c691ec7-dbcd-44db-87d2-91291bc079ec&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=5f9f0b44-9b99-485d-8ef5-e7243c2f5a3d&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=b4f0c1a0-4040-4410-9416-53e0175cd4d1&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=c07ba5dc-c27a-4c17-9e8c-ecb3ea0110a7&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users <https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=a0ead048-c940-42a2-abaf-48d61d2eef35&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=4b3f31d6-d7b2-439b-848e-2d1ae2edf9f2&cm_type=link&cm_link=44e88857-918a-48b4-b2d9-88fced73e5d4&cm_destination=http://www.freeswitch.org>
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
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 <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> 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.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> 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>(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.<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=5258db70-e715-47b0-8c2a-ae3f9eb9c7de&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=e848e46f-79c5-40aa-85b4-d885a2bb814a&cm_destination=http://www.cudatel.com>
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> 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> <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> 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> <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> 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>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<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> <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> http://lists.freeswitch.org/<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/> 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> freeswitch.org/mailman/<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/> 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> 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>
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 <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@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.<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=5258db70-e715-47b0-8c2a-ae3f9eb9c7de&cm_destination=http://www.cudatel.com><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=e848e46f-79c5-40aa-85b4-d885a2bb814a&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=bfbca0e9-7d68-4917-936e-b0c5c1fc1a83&cm_destination=http://www.cudatel.com>
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@lists. <FreeSWITCH-users@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>
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 <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@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.<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=5258db70-e715-47b0-8c2a-ae3f9eb9c7de&cm_destination=http://www.cudatel.com><https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&cm_type=link&cm_link=e848e46f-79c5-40aa-85b4-d885a2bb814a&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&cm_type=link&cm_link=bfbca0e9-7d68-4917-936e-b0c5c1fc1a83&cm_destination=http://www.cudatel.com>
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@lists. <FreeSWITCH-users@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>
_________________________________________________________________________ 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
You’re trying to execute an api call using the app execute interface. Look at the API examples. -- 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 12, 2014, at 9:01 AM, Ali Pey <alipey@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
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@freeswitch.org> wrote:
You're trying to execute an api call using the app execute interface. Look at the API examples.
-- 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 12, 2014, at 9:01 AM, Ali Pey <alipey@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@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
participants (3)
-
Ali Pey
-
Brian West
-
Peter Olsson