[Freeswitch-users] Freeswitch creating more then two sessions for one call

Michael Jerris mike at jerris.com
Fri Jun 5 13:25:38 PDT 2009


On Jun 5, 2009, at 4:11 PM, Shoaib Khanzada wrote:

> Thanks for the reply….
>
> I was not running it for testing purpose because I’ve completed all  
> testing successfully.
>
> We are running freeswitch in a voip carrier grade environment. It  
> works perfectly alright in off peak hours when we have low calls  
> ratio around 100-150 concurrent calls. However, in peak hours this  
> goes beyond 200 calls and on that point freeswitch start creating  
> many sessions for each calls. I have seen the sessions using  
> “status” command and calls using “show calls count”.
>
> We are using javascript to select the route from the mysql database  
> for each call. Could it be because script is taking longer than  
> expected amount of time to retrieve a route? and freeswitch  
> continuously keep creating sessions for incoming calls. That’s why I  
> see low no of connected calls (if ‘show calls count’ only display  
> the connected calls) whereas sessions are continuously being created  
> by freeswitch as it is receiving many calls.
>
> If above text confuses you, nevermind just answer the following  
> questions.
>
> 1)      Does ‘show calls count’ display the connected calls only?

Only bridged calls (2 sessions)

> 2)      When freeswitch create session instances? Before bridge or  
> after bridge? Or one before bridge and one after bridge?

It creates a session when it gets an incomming call and creates one  
for each outgoing call, unrelated to bridging.

>
> Thanks,
>
> Shoaib

How are you doing the bridge in your script?  Are you setting a var  
then dropping out of the js to do the bridge?  Can you post your js  
file?

Mike


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090605/0b060607/attachment-0002.html 


More information about the FreeSWITCH-users mailing list