[Freeswitch-users] Prolem with SIP OPTION ping

Steven Ayre steveayre at gmail.com
Sat Feb 16 03:55:12 MSK 2013


You could run a lua in the background monitoring the core db as a startup-script, and if it's down 'fsctl pause'. Or externally via ESL. I believe FS will then reply 503 not 200 which you could treat as a failure on Kamalio.

Steve



On 15 Feb 2013, at 20:07, Gary Chen <Gary.Chen at lightyear.net> wrote:

> Version: Freeswitch 1.2.5.3 with ODBC as core db.
>  
> For redundancy purpose, I have two FS running behind a Kamailio SIP proxy. My Kamailio uses diapatcher to send call to FS1 first. If FS1 is not available, Kamailio will send call to FS2.   Kamailio frequently send out SIP OPTION message to check each FS. If no reponse  back from one of FS, it will mark it as Inactive and stop sending call to it. The problem I have is that when the odbc connection gone bad, the FS is still up and running and it still reply back “200 OK” to SIP OPTION from Kamailio. So Kamailio dispatcher will not mark it as Inactive and continue sending call to the bad FS and call will fail.
>  
> Is there anyway I can make FS not reponse back to Kamailio with “200 OK” when core ODBC is down?
> Or shutdown the FS when core ODBC is down?
>  
> Gary
>  
>  
>  
>  
>  
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130216/28930189/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list