js is notorious for garbage collection issues.<br>you would be wise to just build a dial string and use the bridge application to bridge them rather than bridge them manually in JS <br><br><div class="gmail_quote">On Mon, Jan 11, 2010 at 5:42 PM, Nicolas Brenner <span dir="ltr"><<a href="mailto:nicolas@medularis.com">nicolas@medularis.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;">Thanks. I actually got rid of all the JS callbacks and left only the main JS script which originates 2 calls and then bridges them together. I moved all event detection to an Event Sockets daemon. I thought I was off the hook, but today the issue started happening again, and there was no curl involved.<div>
<br></div><div>Without looking at sip traces, what do you think could create a situation like this?</div><div><br></div><div>I have no idea how to reproduce this issue, except wait for a few hours or maybe even a few days, so I'm not sure recording all sip traffic would be such a good idea. How would I go about getting traces for this?</div>
<div><br></div><div>Thanks.</div><div><div></div><div class="h5"><div><br><br><div class="gmail_quote">On Thu, Jan 7, 2010 at 3:22 PM, 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;">try setting the timeout in curl<br><br>conf/autoload_configs/xml_curl.conf.xml:<br><param name="timeout" value="5"/><div>
<div></div><div><br><br><div class="gmail_quote">On Thu, Jan 7, 2010 at 12:12 PM, Nicolas Brenner <span dir="ltr"><<a href="mailto:nicolas@medularis.com" target="_blank">nicolas@medularis.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;">Michael,<br>
<br>
Thanks for your help. Yes, if I restart FS things go back to normal<br>
for a while and then the same thing starts happening again.<br>
<br>
The weird thing is, it started only 2 days ago, and happened only once<br>
or twice. Before that I had no trouble, and I only made 1 change,<br>
which I reverted, but it wasn't that. Today it's happening all the<br>
time, if I restart FS things will work for maybe an hour and then it<br>
will start doing the same thing.<br>
<br>
I'm guessing it might be something external to FS, like curl calls not<br>
finishing properly because of the url they are requesting or something<br>
like that.<br>
<br>
What kind of info should I collect? I don't think it has to do with<br>
sofia or any sip-related problems. I'm also using the default<br>
dialplan, no changes at all, I'm doing everything through JS, well and<br>
one really small lua script.<br>
<br>
This is the main JS file:<br>
It originates 2 calls and bridges them.<br>
<br>
- <a href="http://pastebin.freeswitch.org/11706" target="_blank">http://pastebin.freeswitch.org/11706</a><br>
<br>
<br>
This is another JS script which gets called when each call is hanged up:<br>
It gets some info and then requests a url using curl to update call<br>
status on an external db.<br>
<br>
- <a href="http://pastebin.freeswitch.org/11707" target="_blank">http://pastebin.freeswitch.org/11707</a><br>
<br>
<br>
This lua script calls a ruby script to do some other stuff when a call<br>
is answered:<br>
<br>
- <a href="http://pastebin.freeswitch.org/11708" target="_blank">http://pastebin.freeswitch.org/11708</a><br>
<br>
<br>
Thanks!<br>
<br>
<br>
Nico<br>
<div><div></div><div><br>
<br>
<br>
On Thu, Jan 7, 2010 at 2:26 PM, Michael Collins <<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>> wrote:<br>
><br>
><br>
> On Thu, Jan 7, 2010 at 7:43 AM, Nicolas Brenner <<a href="mailto:nicolas@medularis.com" target="_blank">nicolas@medularis.com</a>><br>
> wrote:<br>
>><br>
>> Hi, I'm having a strange problem with FS. I'm using a few JS scripts<br>
>> to generate calls and bridge them together. Usually everything works<br>
>> just fine, but them at some point it's like if FS choked, calls for<br>
>> the first leg of the bridges are apparently made, but the second leg<br>
>> is never called. The call is not hanged up for several minutes and the<br>
>> system keeps opening new channels but never connecting a call.<br>
>><br>
>> For example, right now, doing 'show channels' on the console, I get a<br>
>> list of 72 open channels (it's adding up, it was 40 a couple minutes<br>
>> ago), but doing a 'show calls' gives me 0 active calls. The usual<br>
>> behavior, when everything's working fine, is to get twice as many<br>
>> channels as there are active calls and no channels at all when there<br>
>> are no calls, unless they haven't been bridged yet.<br>
>><br>
>> The originate string is something like this:<br>
>><br>
>> var stUsRing = "%(2000,4000,440,480)";<br>
>> var timeout = 45;<br>
>> originate_str1 = "{api_hangup_hook=jsapi::callback.js<br>
>> l1,execute_on_answer=lua answered.lua 1<br>
>><br>
>> c2c_call,ignore_early_media=true,originate_timeout=90,hangup_after_bridge=false,ringback='"+stUsRing+"',medularis_uuid="+uuid+",c2c_call=true,api_call=true,leg=1}[leg_timeout="+timeout+"]"+dialstr1;<br>
>><br>
>> Where diasltr1 has the phonenumber and and gateway info. The<br>
>> callback.js has a curl request to update some call info on an external<br>
>> database and answered.lua calls a ruby script through the os.execute()<br>
>> function (I know, I should be doing all this through the event socket,<br>
>> I was doing that but had trouble and had to come up with a quick<br>
>> solution).<br>
>><br>
>> The system is not loaded at all, at least not for what I think and<br>
>> read that FS can handle. We are having at most 10 concurrent calls (20<br>
>> channels), with maybe 5 to 10 calls per minute.<br>
>><br>
>> What worries me is not only that I don't know where the problem is,<br>
>> but that I have no clue how to debug it or send you guys more<br>
>> "lowlevel" and detailed information to give you an insight about<br>
>> what's going on. Any help would be greatly appreciated!<br>
>><br>
>> Thanks!<br>
>><br>
>> Nico<br>
>><br>
> First off you'll want to get familiar with the resources mentioned here:<br>
> <a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs" target="_blank">http://wiki.freeswitch.org/wiki/Reporting_Bugs</a><br>
><br>
> It has good tips on how to collect and report information.<br>
><br>
> Second, I recommend that you pastebin your relevant portion of the dialplan<br>
> and the whole javascript program that you are using so that others can take<br>
> a look.<br>
><br>
> Last thing: if you restart FreeSWITCH does everything work fine for a while<br>
> but then eventually it breaks down and exhibits the behavior that you are<br>
> reporting?<br>
><br>
> -MC<br>
><br>
</div></div><div><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>
><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>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div><div></div><div>-- <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:+19193869900<br>
</div></div><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></div><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:+19193869900<br>