<br><br><div class="gmail_quote">On Thu, Jan 7, 2010 at 7:43 AM, 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;">
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>
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></blockquote><div>First off you'll want to get familiar with the resources mentioned here:<br><a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs">http://wiki.freeswitch.org/wiki/Reporting_Bugs</a><br><br>It has good tips on how to collect and report information.<br>
</div></div><br>Second, I recommend that you pastebin your relevant portion of the dialplan and the whole javascript program that you are using so that others can take a look. <br><br>Last thing: if you restart FreeSWITCH does everything work fine for a while but then eventually it breaks down and exhibits the behavior that you are reporting?<br>
<br>-MC<br>