I'm back again with the same issue.<br>Now it is became worse: it reproduces occasionally.<br>[FS version is 1.04, test_load = 2 active calls]<br><br>I've got 2 logs: successful and not.<br>Here is a bad_case:<br> <br>
2009-12-02 13:27:55.159931 [NOTICE] switch_core_session.c:1576 Execute<br>java(/usr/local/freeswitch/scripts/fs2agi.jar org.starpound.fs2agi.Translator<br>${agi_url})<br>Dec 2, 2009 1:27:55 PM org.starpound.fs2agi.Translator run<br>
INFO: ***************************************************<br>Dec 2, 2009 1:27:55 PM org.starpound.fs2agi.Translator run<br>INFO: Run AGI application agi://localhost:4573/hello.agi?callId=929 for session<br>2898ad41-4ec1-4628-89fd-651a93a7221d<br>
2009-12-02 13:27:55.169841 [NOTICE] switch_cpp.cpp:1130 Run AGI application<br>agi://localhost:4573/hello.agi?callId=929<br>2009-12-02 13:28:02.888831 [CRIT] mod_local_stream.c:234 Leaking stream handle!<br>[switch_ivr_play_file() src/switch_ivr_play_say.c:1026]<br>
2009-12-02 13:28:04.799806 [NOTICE] switch_channel.c:602 New Channel<br>sofia/internal/2001 [76d2c0e9-16a4-4098-92c0-5977cb482e17]<br>2009-12-02 13:28:05.148834 [NOTICE] sofia.c:3353 Ring-Ready sofia/internal/2001!<br>2009-12-02 13:28:05.855093 [NOTICE] sofia.c:3794 Channel [sofia/internal/2001] has<br>
been answered<br>Dec 2, 2009 1:28:05 PM org.starpound.fs2agi.Translator tellAllWeCrashed<br>INFO: AGI application agi://localhost:4573/hello.agi?callId=929 for session<br>2898ad41-4ec1-4628-89fd-651a93a7221d crashed. Exception is:<br>
java.lang.Exception: Internal FreeSwitch failure while streamming file, see<br>FreeSwitch logs for details<br> at<br>org.starpound.fs2agi.agicommands.StreamFileCommand.execute(StreamFileCommand.java:36)<br> at org.starpound.fs2agi.AgiConnection.run(AgiConnection.java:48)<br>
at org.starpound.fs2agi.Translator.run(Translator.java:56)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at<br>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at<br>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br> at java.lang.reflect.Method.invoke(Method.java:597)<br> at org.freeswitch.Launcher.launch(Launcher.java:80)<br>
2009-12-02 13:28:05.870185 [NOTICE] switch_core_state_machine.c:179 Hangup<br>sofia/internal/2001 [CS_EXECUTE] [NORMAL_CLEARING]<br>2009-12-02 13:28:05.878807 [INFO] switch_cpp.cpp:1130 AGI application<br>agi://localhost:4573/hello.agi?callId=929 crashed. See FS2AGI log for details.<br>
2009-12-02 13:28:05.894422 [NOTICE] switch_ivr_bridge.c:667 Hangup<br>sofia/external/<a href="mailto:6786081291@66.19.38.143">6786081291@66.19.38.143</a> [CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]<br>2009-12-02 13:28:05.894422 [NOTICE] switch_core_session.c:1086 Session 17<br>
(sofia/external/<a href="mailto:6786081291@66.19.38.143">6786081291@66.19.38.143</a>) Ended<br>2009-12-02 13:28:05.894422 [NOTICE] switch_core_session.c:1088 Close Channel<br>sofia/external/<a href="mailto:6786081291@66.19.38.143">6786081291@66.19.38.143</a> [CS_DESTROY]<br>
2009-12-02 13:28:05.894422 [NOTICE] switch_core_session.c:1086 Session 18<br>(sofia/internal/2001) Ended<br>2009-12-02 13:28:05.894422 [NOTICE] switch_core_session.c:1088 Close Channel<br>sofia/internal/2001 [CS_DESTROY]<br>
<br><br><br>Message<br>"Dec 2, 2009 1:28:05 PM org.starpound.fs2agi.Translator tellAllWeCrashed<br>
INFO: AGI application agi://localhost:4573/hello.agi?callId=929 for session<br>
2898ad41-4ec1-4628-89fd-651a93a7221d crashed. Exception is:<br>
..."<br>is sent from my app upon the onHangup().`<br><br>And here is a good_case:<br><br>2009-12-02 13:31:45.959813 [NOTICE] switch_core_session.c:1576 Execute<br>java(/usr/local/freeswitch/scripts/fs2agi.jar org.starpound.fs2agi.Translator<br>
${agi_url})<br>Dec 2, 2009 1:31:45 PM org.starpound.fs2agi.Translator run<br>INFO: ***************************************************<br>Dec 2, 2009 1:31:45 PM org.starpound.fs2agi.Translator run<br>INFO: Run AGI application agi://localhost:4573/hello.agi?callId=932 for session<br>
7c37369b-ffb2-4436-9288-a640047d0e5e<br>2009-12-02 13:31:45.965814 [NOTICE] switch_cpp.cpp:1130 Run AGI application<br>agi://localhost:4573/hello.agi?callId=932<br>2009-12-02 13:31:53.648915 [CRIT] mod_local_stream.c:234 Leaking stream handle!<br>
[switch_ivr_play_file() src/switch_ivr_play_say.c:1026]<br>2009-12-02 13:31:59.260797 [NOTICE] switch_channel.c:602 New Channel<br>sofia/internal/2001 [7db554a6-861e-4492-a87b-78b6dfec6488]<br>2009-12-02 13:31:59.624818 [NOTICE] sofia.c:3353 Ring-Ready sofia/internal/2001!<br>
2009-12-02 13:32:00.130814 [NOTICE] sofia.c:3794 Channel [sofia/internal/2001] has<br>been answered<br>Dec 2, 2009 1:32:00 PM org.starpound.fs2agi.Translator tellAllWeCrashed<br>INFO: AGI application agi://localhost:4573/hello.agi?callId=932 for session<br>
7c37369b-ffb2-4436-9288-a640047d0e5e crashed. Exception is:<br>java.lang.Exception: Internal FreeSwitch failure while streamming file, see<br>FreeSwitch logs for details<br> at<br>org.starpound.fs2agi.agicommands.StreamFileCommand.execute(StreamFileCommand.java:36)<br>
at org.starpound.fs2agi.AgiConnection.run(AgiConnection.java:48)<br> at org.starpound.fs2agi.Translator.run(Translator.java:56)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br> at<br>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br> at java.lang.reflect.Method.invoke(Method.java:597)<br>
at org.freeswitch.Launcher.launch(Launcher.java:80)<br>2009-12-02 13:32:00.149080 [INFO] switch_cpp.cpp:1130 AGI application<br>agi://localhost:4573/hello.agi?callId=932 crashed. See FS2AGI log for details.<br>2009-12-02 13:32:00.388838 [INFO] switch_rtp.c:1869 Auto Changing port from<br>
<a href="http://172.26.10.39:26402">172.26.10.39:26402</a> to <a href="http://91.190.120.190:26402">91.190.120.190:26402</a><br><br><br><br>Suggestions?<br><br><br><br><br><br><br><br><br><br><br><div class="gmail_quote">
On Sat, Nov 21, 2009 at 12:58 PM, Artem Shiyanov <span dir="ltr"><<a href="mailto:shiyanov@gmail.com">shiyanov@gmail.com</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;">
Anthony,<div class="im"><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></div>I didn't know that. Now my java app is exiting upon the onHangup() call so everything has become "ok". Thank you much.<br>
I'll add note to the wiki about this issue.<br><font color="#888888"><br>Artem</font><div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Fri, Nov 20, 2009 at 5:49 AM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</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;">Your "annoying behaviour" 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"><div><div></div><div>On Thu, Nov 19, 2009 at 1:46 PM, Artem Shiyanov <span dir="ltr"><<a href="mailto:shiyanov@gmail.com" target="_blank">shiyanov@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
Hi there!<br><br>I'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 -> 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 -> 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> 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></div></div><div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div></div></blockquote></div><br>