<div dir="ltr">The problem is when I do api and a-leg has already hung up, then it doesn&#39;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:<div>
<br></div><div>my $con = new ESL::IVR;<br></div><div>...</div><div>...</div><div>my $aleg_exists = $con-&gt;api(&quot;uuid_exists $uuid&quot; );<br><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Mar 12, 2014 at 10:20 AM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</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">
You&rsquo;re trying to execute an api call using the app execute interface. Look at the API examples.<br>
<div class="im"><br>
--<br>
Brian West<br>
<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>
FreeSWITCH Solutions, LLC<br>
PO BOX 2531<br>
Brookfield, WI 53008-2531<br>
Twitter: @FreeSWITCH , @briankwest<br>
<a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br>
<a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a><br>
<br>
T: <a href="tel:%2B1.918.420.9001" value="+19184209001">+1.918.420.9001</a> &nbsp;| &nbsp;F: <a href="tel:%2B1.918.420.9002" value="+19184209002">+1.918.420.9002</a> &nbsp;| &nbsp;M: +1.918.424.WEST<br>
iNUM: <a href="tel:%2B883%205100%201420%209001" value="+883510014209001">+883 5100 1420 9001</a><br>
ISN: 410*543<br>
Skype:briankwest<br>
PGP Key: <a href="http://www.bkw.org/key.txt" target="_blank">http://www.bkw.org/key.txt</a> (AB93356707C76CED)<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div><div class=""><div class="h5">On Mar 12, 2014, at 9:01 AM, Ali Pey &lt;<a href="mailto:alipey@gmail.com">alipey@gmail.com</a>&gt; wrote:<br>
<br>
&gt;<br>
&gt; 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.<br>
&gt;<br>
&gt; Currently I have it like this:<br>
&gt;<br>
&gt; my $aleg_exists = $main::con-&gt;execute(&#39;uuid_exists&#39;, $main::con-&gt;{_uuid} );<br>
&gt;<br>
&gt; but it does not return true or false.<br>
&gt;<br>
&gt; Also, if bridge fails, I get this error:<br>
&gt;<br>
&gt; [ERR] switch_core_session.c:2626 Invalid Application uuid_exists<br>
&gt;<br>
<br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>