<div dir="ltr">try the original way you posted with latest trunk.<br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 3:39 PM, Francisco de Ezcurra <span dir="ltr">&lt;<a href="mailto:francisco@deezcurra.com.ar">francisco@deezcurra.com.ar</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;ve tried to do the same with the variables exec_after_bridge_app and<br>
exec_after_bridge_arg but i have a problem with them. As I could see the<br>
application set in the variable &#39;exec_after_bridge_app&#39; is executed also when<br>
I use transfer to send both channels of the bridge to another extension and I<br>
only need to execute it if the other leg hangs up.<br>
<br>
<br>
Thanks<br>
Panchi<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
On Wednesday 13 August 2008, Juan Jose Comellas wrote:<br>
&nbsp;According to the way I understand the hangup_after_bridge variable works, I<br>
&nbsp;think what you&#39;re doing is correct. There is another way to write the<br>
&nbsp;extension so that the A leg of the bridge can continue working after the B<br>
&nbsp;leg hangs up and the bridge is broken. You should rewrite the &quot;intercept&quot;<br>
&nbsp;extension in the following way:<br>
<br>
 &nbsp; &nbsp; &nbsp; &lt;extension name=&quot;intercept&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;2101&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;answer&quot; /&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;set&quot; data=&quot;exec_after_bridge_app=transfer&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;set&quot;<br>
&nbsp;data=&quot;exec_after_bridge_arg=2102&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;intercept&quot;<br>
&nbsp;data=&quot;eb13f47c-6960-11dd-b3aa-65ce53a0ab35&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;<br>
 &nbsp; &nbsp; &nbsp; &lt;/extension&gt;<br>
<br>
&nbsp;AFAIK, the &quot;exec_after_bridge_app&quot; variable only works for the A leg of a<br>
&nbsp;channel. It would be nice if it also worked for the B leg when the A leg<br>
&nbsp;hangs up.<br>
<br>
<br>
<br>
&nbsp;On Wed, Aug 13, 2008 at 12:40 PM, Francisco de Ezcurra &lt;<br>
<br>
&nbsp;<a href="mailto:francisco@deezcurra.com.ar">francisco@deezcurra.com.ar</a>&gt; wrote:<br>
&nbsp;&gt; Hi all<br>
&nbsp;&gt;<br>
&nbsp;&gt; I&#39;m trying to transfer the a channel after the other leg hangup in a<br>
&nbsp;&gt; bridge created with the application &#39;intercept&#39; using the flag<br>
&nbsp;&gt; hangup_after_bridge,<br>
&nbsp;&gt; but it seems not to be working. (Below are the steps I followed).<br>
&nbsp;&gt;<br>
&nbsp;&gt; Am i doing anything wrong ?<br>
&nbsp;&gt;<br>
&nbsp;&gt; Thanks in advance<br>
&nbsp;&gt; Panchi<br>
&nbsp;&gt;<br>
&nbsp;&gt;<br>
&nbsp;&gt;<br>
&nbsp;&gt; --------------------------------------------------------------------------<br>
&nbsp;&gt;------------ 1) Make a call via mod_event_socket to a registered phone<br>
&nbsp;&gt; (here<br>
&nbsp;&gt; user2.fezcurra) and transfer the it to the extension 2100 (waiting) to<br>
&nbsp;&gt; wait for the other party.<br>
&nbsp;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;api originate {hangup_after_bridge=false}sofia/default/user3.fezcurra<br>
&nbsp;&gt; 2100<br>
&nbsp;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;Content-Type: api/response<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;Content-Length: 41<br>
&nbsp;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; +OK 72a3cb6a-6943-11dd-b3aa-65ce53a0ab35<br>
&nbsp;&gt;<br>
&nbsp;&gt; 2) Set the UUID in the intercept action in the dialplan.<br>
&nbsp;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp;&lt;action application=&quot;intercept&quot;<br>
&nbsp;&gt; data=&quot;72a3cb6a-6943-11dd-b3aa-65ce53a0ab35&quot;/&gt;<br>
&nbsp;&gt;<br>
&nbsp;&gt; 3) Make a call with another phone to the extension 2101<br>
&nbsp;&gt;<br>
&nbsp;&gt; 4) Hangup the first call originated via mod_event_socket (phone registered<br>
&nbsp;&gt; as<br>
&nbsp;&gt; user2.fezcurra).<br>
&nbsp;&gt;<br>
&nbsp;&gt; Problem:<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; I expected the second phone to be transferred to the extension<br>
&nbsp;&gt; 2102 and hear the audio and then hangup, but i never hear the audio and<br>
&nbsp;&gt; the channel is hungup when the bridge terminates.<br>
&nbsp;&gt;<br>
&nbsp;&gt;<br>
&nbsp;&gt; --------------------------------------------------------------------------<br>
&nbsp;&gt;------------ Here are the extensions in the dialplan:<br>
&nbsp;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;&lt;extension name=&quot;waiting&quot;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;2100&quot;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;fifo&quot; data=&quot;myqueue in undef<br>
&nbsp;&gt; test/clientdata/system/audios/male/en_US/misc/HoldMusic.wav&quot;/&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;&lt;/extension&gt;<br>
&nbsp;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;&lt;extension name=&quot;intercept&quot;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;2101&quot;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;answer&quot; /&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=false&quot;/&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!-- This is the UUID returned in the originate (step 1) --&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;intercept&quot;<br>
&nbsp;&gt; data=&quot;72a3cb6a-6943-11dd-b3aa-65ce53a0ab35&quot;/&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;transfer&quot; data=&quot;2102&quot;/&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;&lt;/extension&gt;<br>
&nbsp;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;&lt;extension name=&quot;hold_music&quot;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;2102&quot;&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;playback&quot;<br>
&nbsp;&gt; data=&quot;test/clientdata/system/audios/male/en_US/misc/HoldMusic.wav&quot;/&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;hangup&quot; /&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
&nbsp;&gt; &nbsp; &nbsp; &nbsp;&lt;/extension&gt;<br>
&nbsp;&gt;<br>
&nbsp;&gt; _______________________________________________<br>
&nbsp;&gt; Freeswitch-dev mailing list<br>
&nbsp;&gt; <a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
&nbsp;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
&nbsp;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&nbsp;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>