Your &quot;annoying behaviour&quot; is the exact behavior you should be getting considering what you told FS to do.<br><br>As soon as you call uuid_bridge you are transferring both legs of the call to bridge to each other.<br>
This means your java app must exit so the channels can connect to each other.<br><br>remember that you hangup hook can be called when the channel is transferred not only when it hangs up.<br>you have to test which is happening based on the input to your callback.<br>
<br><br><div class="gmail_quote">On Thu, Nov 19, 2009 at 1:46 PM, Artem Shiyanov <span dir="ltr">&lt;<a href="mailto:shiyanov@gmail.com">shiyanov@gmail.com</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 there!<br><br>I&#39;ve got annoying FS behavior:<br>There are 2 channels executing the same Java application (application itself is an IVR). If I try to bridge them with uuid_bridged then both channels are killed. Here is a log from FS console:<br>

uuid_bridge 68587a9d-1d20-48f1-bdfc-72a2c027e1d2 7d6c08fc-62bf-4a6c-a9ae-763d607e43de<br>2009-07-09 05:58:26.562783 [DEBUG] switch_ivr_bridge.c:1165 (sofia/internal/<a href="mailto:1005@192.168.147.130" target="_blank">1005@192.168.147.130</a>) State Change CS_EXECUTE -&gt; CS_HIBERNATE<br>

2009-07-09 05:58:26.562783 [DEBUG] switch_cpp.cpp:1185 hangup_hook called<br>2009-07-09 05:58:26.562783 [DEBUG] switch_ivr_play_say.c:1391 done playing file<br>2009-07-09 05:58:26.576844 [DEBUG] switch_ivr_play_say.c:1391 done playing file<br>

2009-07-09 05:58:26.641307 [DEBUG] switch_core_session.c:933 Send signal sofia/internal/<a href="mailto:1005@192.168.147.130" target="_blank">1005@192.168.147.130</a> [BREAK]<br>2009-07-09 05:58:26.641307 [DEBUG] switch_ivr_bridge.c:1167 (sofia/internal/<a href="mailto:1001@master.agent.starpoundtech.net" target="_blank">1001@master.agent.starpoundtech.net</a>) State Change CS_EXECUTE -&gt; CS_HIBERNATE<br>

2009-07-09 05:58:26.641307 [DEBUG] switch_cpp.cpp:1185 hangup_hook called<br>API CALL [uuid_bridge(68587a9d-1d20-48f1-bdfc-72a2c027e1d2 7d6c08fc-62bf-4a6c-a9ae-763d607e43de)] output:<br>+OK 7d6c08fc-62bf-4a6c-a9ae-763d607e43de<br>

<br>freeswitch@localhost.localdomain&gt; 2009-07-09 05:58:26.674348 [DEBUG] switch_core_session.c:933 Send signal sofia/internal/1001@master.agent.starpoundtec<br>2009-07-09 05:58:26.714809 [DEBUG] switch_core_session.c:813 Send signal sofia/internal/<a href="mailto:1005@192.168.147.130" target="_blank">1005@192.168.147.130</a> [BREAK]<br>

<br>2009-07-09 05:58:26.742764 [CRIT] mod_local_stream.c:234 Leaking stream handle! [switch_ivr_play_file() src/switch_ivr_play_say.c:1026]<br>2009-07-09 05:58:26.754791 [DEBUG] switch_core_session.c:813 Send signal sofia/internal/<a href="mailto:1001@master.agent.starpoundtech.net" target="_blank">1001@master.agent.starpoundtech.net</a> [BREAK]<br>

<br>(FS version is 1.0.4)<br><br>Any thoughts?<br><font color="#888888"><br><br>Artem<br><br><br>
</font><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>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>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</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>