<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"><<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;">I'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 'exec_after_bridge_app' 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>
According to the way I understand the hangup_after_bridge variable works, I<br>
think what you're doing is correct. There is another way to write the<br>
extension so that the A leg of the bridge can continue working after the B<br>
leg hangs up and the bridge is broken. You should rewrite the "intercept"<br>
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"<br>
data="exec_after_bridge_arg=2102"/><br>
<action application="intercept"<br>
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<br>
channel. It would be nice if it also worked for the B leg when the A leg<br>
hangs up.<br>
<br>
<br>
<br>
On Wed, Aug 13, 2008 at 12:40 PM, Francisco de Ezcurra <<br>
<br>
<a href="mailto:francisco@deezcurra.com.ar">francisco@deezcurra.com.ar</a>> wrote:<br>
> Hi all<br>
><br>
> I'm trying to transfer the a channel after the other leg hangup in a<br>
> bridge created with the application 'intercept' using the flag<br>
> 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>
> --------------------------------------------------------------------------<br>
>------------ 1) Make a call via mod_event_socket to a registered phone<br>
> (here<br>
> user2.fezcurra) and transfer the it to the extension 2100 (waiting) to<br>
> wait 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<br>
> as<br>
> user2.fezcurra).<br>
><br>
> Problem:<br>
> I expected the second phone to be transferred to the extension<br>
> 2102 and hear the audio and then hangup, but i never hear the audio and<br>
> the channel is hungup when the bridge terminates.<br>
><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>
<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>