<div dir="ltr"><div><br></div><div>Any suggestions on this? I need to&nbsp;<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">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.</span></div>
<div><font color="#000000" face="arial, sans-serif"><br></font></div><div><font color="#000000" face="arial, sans-serif">Currently I have it like this:</font></div><div><font color="#000000" face="arial, sans-serif"><br></font></div>
<div><font color="#000000" face="arial, sans-serif">my $aleg_exists = $main::con-&gt;execute(&#39;uuid_exists&#39;, $main::con-&gt;{_uuid} );</font></div><div><font color="#000000" face="arial, sans-serif"><br></font></div>
<div><font color="#000000" face="arial, sans-serif">but it does not return true or false.</font></div><div><font color="#000000" face="arial, sans-serif"><br></font></div><div><font color="#000000" face="arial, sans-serif">Also, if bridge fails, I get this error:</font></div>
<div><font color="#000000" face="arial, sans-serif"><br></font></div><div><font color="#000000" face="arial, sans-serif">[ERR] switch_core_session.c:2626 Invalid Application uuid_exists</font></div><div><font color="#000000" face="arial, sans-serif"><br>
</font></div><div><font color="#000000" face="arial, sans-serif"><br></font><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 10:56 AM, Ali Pey <span dir="ltr">&lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">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)<div>
<br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, Mar 6, 2014 at 9:59 AM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">What is your goal? or end result you&rsquo;re wishing to accomplish as this doesn&rsquo;t feel like the most efficient way to accomplish that.<br>


<br>
--<br>
Brian West<br>
<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><br>
FreeSWITCH Solutions, LLC<br>
PO BOX 2531<br>
Brookfield, WI 53008-2531<br>
Twitter: @FreeSWITCH , @briankwest<br>
<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=950f18fc-5a5c-4e8b-a815-3c65771f69ef&amp;cm_destination=http://www.freeswitchbook.com" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=08afdbc2-cc26-4f2f-bcd3-06c06885fc8e&amp;cm_destination=http://www.freeswitchbook.com" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=ca0e18e7-64a0-4bba-ac36-de0cd572df41&amp;cm_destination=http://www.freeswitchbook.com">http://www.freeswitchbook.com</a><br>


<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=befc8de6-18f2-4bba-997c-7fb56be79d1f&amp;cm_destination=http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a><br>


<br>
T: <a href="tel:%2B1.918.420.9001" value="+19184209001" target="_blank">+1.918.420.9001</a> &nbsp;| &nbsp;F: <a href="tel:%2B1.918.420.9002" value="+19184209002" target="_blank">+1.918.420.9002</a> &nbsp;| &nbsp;M: +1.918.424.WEST<br>
iNUM: <a href="tel:%2B883%205100%201420%209001" value="+883510014209001" target="_blank">+883 5100 1420 9001</a><br>
ISN: 410*543<br>
Skype:briankwest<br>
PGP Key: <a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=b1e30461-7aea-4a1d-a1a7-0bc7fb76e943&amp;cm_destination=http://www.bkw.org/key.txt" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=fa6e5c58-8deb-431e-afc9-1fab772577c3&amp;cm_destination=http://www.bkw.org/key.txt" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=239dfac7-21b9-4264-ab3f-1757855cf62a&amp;cm_destination=http://www.bkw.org/key.txt">http://www.bkw.org/key.txt</a> (AB93356707C76CED)<br>


<div><div><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Mar 5, 2014, at 9:20 PM, Ali Pey &lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Brian,<br>
&gt;<br>
&gt; In my ESL script, if a-leg hangs up, the perl script continues execution after the bridge even though the channel doesn&#39;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.<br>


&gt;<br>
&gt; I have hangup_after_bridge=false because I want the script to continue after b-leg hangs up but I don&#39;t want it to continue if the a-leg hangs up.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ali Pey<br>
<br>
</div></div><br></div></div><div class="">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=aa933ae0-8f1b-4e3d-bc03-23e496a31c80&amp;cm_destination=http://www.freeswitchsolutions.com" target="_blank">http://www.</a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=bba8e788-52cd-46a4-b80c-50a478b5b1ec&amp;cm_destination=http://freeswitchsolutions.com" target="_blank">freeswitchsolutions.com</a><br>


<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=5258db70-e715-47b0-8c2a-ae3f9eb9c7de&amp;cm_destination=http://www.cudatel.com" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=e848e46f-79c5-40aa-85b4-d885a2bb814a&amp;cm_destination=http://www.cudatel.com" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=bfbca0e9-7d68-4917-936e-b0c5c1fc1a83&amp;cm_destination=http://www.cudatel.com">http://www.cudatel.com</a><br>


<br>
Official FreeSWITCH Sites<br>
<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=050877a3-9d7d-4587-81da-89cd9776e938&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=8af6198b-ccfd-4069-9128-6be98a6a1d5e&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=a7f6cbf7-a256-4805-9fc4-97dee91167f9&amp;cm_destination=http://www.freeswitch.org">http://www.freeswitch.org</a><br>


<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=a379ad07-0e4c-4aed-9fe7-92abace739c5&amp;cm_destination=http://wiki.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=cc77fec1-76cb-4906-a91f-ae30b566a4f2&amp;cm_destination=http://wiki.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=92bacd17-2966-42d9-89b9-418f46e58d16&amp;cm_destination=http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br>


<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=e2efafb5-bb25-4679-98d7-e9ce1e178639&amp;cm_destination=http://www.cluecon.com" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=b6a7640d-7a81-45ef-8354-0e70069b1b04&amp;cm_destination=http://www.cluecon.com" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=a1f8242a-f3a9-4629-a07b-bf7dad1fe564&amp;cm_destination=http://www.cluecon.com">http://www.cluecon.com</a><br>


<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.</a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=a3f3a47d-7eac-4e0a-af7a-dd73d35a9362&amp;cm_destination=http://freeswitch.org" target="_blank">freeswi</a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=daec15e9-a49a-44f3-a7db-08ab037dcddb&amp;cm_destination=http://tch.org">tch.org</a><br>


<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=78ca35b2-677c-4b6f-862d-e682e0a3bc0f&amp;cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=226a1869-3b2f-4761-a0f6-4f0dc561659a&amp;cm_destination=http://lists.freeswitch.org/" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=2e6c0781-e1a0-4ea7-bb89-6465e48819b6&amp;cm_destination=http://lists.freeswitch.org/">http://lists.freeswitch.org/</a>mailman/listinfo/freeswitch-users<br>


UNSUBSCRIBE:<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=253b7cc6-99fd-4956-bcfa-dfb759df0cc1&amp;cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.</a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=688c65ca-088a-496e-a20c-bb49474f0923&amp;cm_destination=http://freeswitch.org/mailman/" target="_blank">frees</a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=4d80d088-aa90-4ad9-8726-1cc6e5c56f45&amp;cm_destination=http://witch.org/mailman/">witch.org/mailman/</a>options/freeswitch-users<br>


<a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=0f73dba1-a983-4920-b619-bb452560b5d4&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=0dc9e3d6-d81b-400c-9606-66dc12345b93&amp;cm_type=link&amp;cm_link=d0751e02-2505-4ad3-b80f-1c63c0eb0728&amp;cm_destination=http://www.freeswitch.org" target="_blank"></a><a href="https://contactmonkey.com/api/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=link&amp;cm_link=bec9bbe5-f691-4d83-8383-b5e9dde2886e&amp;cm_destination=http://www.freeswitch.org">http://www.freeswitch.org</a><br>


<br></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div><img class="cm-tracker" src="https://contactmonkey.com/api/v1/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" width="0" height="0" style="border:0; width:0px; height:0px;"><img class="cm-tracker" src="https://contactmonkey.com/api/v1/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" width="0" height="0" style="border:0; width:0px; height:0px;"><font class="cm-tracker" face="https://contactmonkey.com/api/v1/tracker?cm_session=daed630a-9f59-4e24-9966-7df5c925a5eb&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com" style></font></div>