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
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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Gary Chen
-
Steven Ayre