Yes, this was exactly my problem with session variables. Seems I&#39;ve been using freeswitch git version where perl ESL event filtering was broken. I saw a thread about this on mailing list. I&#39;ll try with latest git.<br>
<br><div class="gmail_quote">2011/3/1 Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div>Yes... Problem is how to get it. One way is the CDR, but that&#39;s not through ESL. Events are another - it&#39;ll be sent as a header. There&#39;s the uuid_getvar api but that won&#39;t work if the session has been destroyed.<br>
<br>Steve on iPhone</div><div><div class="h5"><div><br>On 1 Mar 2011, at 14:04, Diego Toro &lt;<a href="mailto:dftoro@yahoo.com" target="_blank">dftoro@yahoo.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><table cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td valign="top" style="font:inherit">Hi, check<span> originate_disposition</span> variable<br><br><a href="http://wiki.freeswitch.org/wiki/Extension_Status_Example" target="_blank">http://wiki.freeswitch.org/wiki/Extension_Status_Example</a><br>
<a href="http://wiki.freeswitch.org/wiki/Variable_originate_disposition" target="_blank">http://wiki.freeswitch.org/wiki/Variable_originate_disposition</a><br><br>Diego Toro<br>
<a href="http://voipensando.blogspot.com/" target="_blank">http://voipensando.blogspot.com/</a><br><br>--- On <b>Tue, 3/1/11, Steven Ayre <i>&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</i></b> wrote:<br>
<blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><br>From: Steven Ayre &lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;<br>Subject: Re: [Freeswitch-users] HANGUP_CAUSE after bridge in outbound ESL<br>
To: &quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Date: Tuesday, March 1, 2011, 4:08 AM<br><br><div>The correct way is to use events. You can register for just the hangup event.<br>
<br>-Steve<br><br><br>On 28 February 2011 22:43, Dmitry Sytchev &lt;<a href="http://mc/compose?to=kbdfck@gmail.com" target="_blank">kbdfck@gmail.com</a>&gt; wrote:<br>&gt; Hi All<br>&gt;<br>&gt; What is correct method to get bridge status after execute(&quot;bridge&quot;) in ESL?<br>
&gt; I have inbound call that gets bridged to SIP endpoint. I need to know<br>&gt; whether it was
 ORIGINATOR_CANCEL or BUSY or something else, but if I use<br>&gt; sync, seems I can&#39;t determine ORIGINATOR_CANCEL status, because it is set on<br>&gt; a-leg which is destroyed first after hangup.<br>&gt;<br>&gt; Is there a way to get bridge status without messing with events and event<br>
&gt; source filtering by channel uuid or event type?<br>&gt;<br>&gt; --<br>&gt; Best regards,<br>&gt;<br>&gt; Dmitry Sytchev,<br>&gt; IT Engineer<br>&gt;<br>&gt; _______________________________________________<br>&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>&gt;<br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></td></tr></tbody></table><br>

      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div></div></div><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><br clear="all"><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>