<div dir="ltr">According to the way I understand the hangup_after_bridge variable works, I think what you'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 "intercept" extension in the following way:<br>
<br> <extension name="intercept"><br> <condition field="destination_number" expression="2101"><br> <action application="answer" /> <br>
<action application="set" data="exec_after_bridge_app=transfer"/><br> <action application="set" data="exec_after_bridge_arg=2102"/> <br> <action application="intercept" data="eb13f47c-6960-11dd-b3aa-65ce53a0ab35"/> <br>
</condition><br> </extension><br><br>AFAIK, the "exec_after_bridge_app" 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"><<a href="mailto:francisco@deezcurra.com.ar">francisco@deezcurra.com.ar</a>></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'm trying to transfer the a channel after the other leg hangup in a bridge<br>
created with the application 'intercept' 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>
api originate {hangup_after_bridge=false}sofia/default/user3.fezcurra<br>
2100<br>
<br>
Content-Type: api/response<br>
Content-Length: 41<br>
<br>
+OK 72a3cb6a-6943-11dd-b3aa-65ce53a0ab35<br>
<br>
2) Set the UUID in the intercept action in the dialplan.<br>
<br>
<action application="intercept"<br>
data="72a3cb6a-6943-11dd-b3aa-65ce53a0ab35"/><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>
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>
<extension name="waiting"><br>
<condition field="destination_number" expression="2100"><br>
<action application="fifo" data="myqueue in undef<br>
test/clientdata/system/audios/male/en_US/misc/HoldMusic.wav"/><br>
</condition><br>
</extension><br>
<br>
<extension name="intercept"><br>
<condition field="destination_number" expression="2101"><br>
<action application="answer" /><br>
<action application="set" data="hangup_after_bridge=false"/><br>
<!-- This is the UUID returned in the originate (step 1) --><br>
<action application="intercept"<br>
data="72a3cb6a-6943-11dd-b3aa-65ce53a0ab35"/><br>
<action application="transfer" data="2102"/><br>
</condition><br>
</extension><br>
<br>
<extension name="hold_music"><br>
<condition field="destination_number" expression="2102"><br>
<action application="playback"<br>
data="test/clientdata/system/audios/male/en_US/misc/HoldMusic.wav"/><br>
<action application="hangup" /><br>
</condition><br>
</extension><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>