<div dir="ltr">According to the way I understand the hangup_after_bridge variable works, I think what you&#39;re doing is correct. There is another way to write the extension so that the A leg of the bridge can continue working after the B leg hangs up and the bridge is broken. You should rewrite the &quot;intercept&quot; extension in the following way:<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;intercept&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;2101&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;answer&quot; /&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;exec_after_bridge_arg=2102&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;intercept&quot; data=&quot;eb13f47c-6960-11dd-b3aa-65ce53a0ab35&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br><br>AFAIK, the &quot;exec_after_bridge_app&quot; variable only works for the A leg of a channel. It would be nice if it also worked for the B leg when the A leg hangs up.<br>
<br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 12:40 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;">
Hi all<br>
<br>
I&#39;m trying to transfer the a channel after the other leg hangup in a bridge<br>
created with the application &#39;intercept&#39; using the flag hangup_after_bridge,<br>
but it seems not to be working. (Below are the steps I followed).<br>
<br>
Am i doing anything wrong ?<br>
<br>
Thanks in advance<br>
Panchi<br>
<br>
<br>
--------------------------------------------------------------------------------------<br>
1) Make a call via mod_event_socket to a registered phone (here<br>
user2.fezcurra) and transfer the it to the extension 2100 (waiting) to wait<br>
for the other party.<br>
<br>
 &nbsp; &nbsp; &nbsp;api originate {hangup_after_bridge=false}sofia/default/user3.fezcurra<br>
2100<br>
<br>
 &nbsp; &nbsp; &nbsp;Content-Type: api/response<br>
 &nbsp; &nbsp; &nbsp;Content-Length: 41<br>
<br>
 &nbsp; &nbsp; +OK 72a3cb6a-6943-11dd-b3aa-65ce53a0ab35<br>
<br>
2) Set the UUID in the intercept action in the dialplan.<br>
<br>
 &nbsp; &nbsp;&lt;action application=&quot;intercept&quot;<br>
data=&quot;72a3cb6a-6943-11dd-b3aa-65ce53a0ab35&quot;/&gt;<br>
<br>
3) Make a call with another phone to the extension 2101<br>
<br>
4) Hangup the first call originated via mod_event_socket (phone registered as<br>
user2.fezcurra).<br>
<br>
Problem:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; I expected the second phone to be transferred to the extension 2102<br>
and hear the audio and then hangup, but i never hear the audio and the<br>
channel is hungup when the bridge terminates.<br>
<br>
--------------------------------------------------------------------------------------<br>
Here are the extensions in the dialplan:<br>
<br>
 &nbsp; &nbsp; &nbsp;&lt;extension name=&quot;waiting&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;2100&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;fifo&quot; data=&quot;myqueue in undef<br>
test/clientdata/system/audios/male/en_US/misc/HoldMusic.wav&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;/extension&gt;<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;hangup_after_bridge=false&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!-- This is the UUID returned in the originate (step 1) --&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;intercept&quot;<br>
data=&quot;72a3cb6a-6943-11dd-b3aa-65ce53a0ab35&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;transfer&quot; data=&quot;2102&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;/extension&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp;&lt;extension name=&quot;hold_music&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;2102&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;playback&quot;<br>
data=&quot;test/clientdata/system/audios/male/en_US/misc/HoldMusic.wav&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;hangup&quot; /&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;/extension&gt;<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>
</blockquote></div><br></div>