[Freeswitch-users] FreeSWITCH High availability(Normal_temporary_failure problem)

Eliot Gable egable+freeswitch at gmail.com
Sat Nov 10 02:03:15 MSK 2012


I have not looked at your invalid CSeq error, but since you are using
pacemaker, you might find this resource agent useful. Here is an example of
how to use it:

primitive FreeSWITCH ocf:fssolutions:FreeSWITCH \

        params ips="eth0/217.160.21.196/26:eth1/217.160.21.197/26"
user="freeswitch" group="freeswitch" \

        op monitor interval="3s" role="Master" on-fail="restart" depth="0" \

        op monitor interval="10s" role="Slave" on-fail="restart" depth="0" \

        op start interval="0" timeout="30" \

        op stop interval="0" timeout="60"

ms FreeSWITCH-MS FreeSWITCH \

        meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" \

                notify="false" target-role="Master"

location FreeSWITCH-MS-on-ha02 FreeSWITCH-MS 50: ha02.bkw.org

location FreeSWITCH-MS-on-ha01 FreeSWITCH-MS 50: ha01.bkw.org

property $id="cib-bootstrap-options" \

        dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \

        cluster-infrastructure="corosync" \

        expected-quorum-votes="2" \

        stonith-enabled="false" \

        no-quorum-policy="ignore" \

        last-lrm-refresh="1347305291"

rsc_defaults $id="rsc-options" \

        resource-stickiness="100"


On Wed, Nov 7, 2012 at 12:03 AM, Rajkumar K <rajprithiv88 at gmail.com> wrote:

> Hi,
>
> I am trying to achieve high availability in FreeSWITCH using heartbeat and
> pacemaker and I am able to switch between the server whenever one of the
> servers crashes. But the problem is one server is able to recover the calls
> when im invoking sofia recover, but another server is recovering the call
> one few times.(Mostly not able to recover).
>
>
> I have primary and secondary server installed in two different
> machines(centos), the FreeSWITCH instances are always running in both the
> PCs. I am running heartbeat and pacemaker to monitor the IP or sofia
> fail-over. A floating IP is configure in heartbeat to reach the active
> server.
> I succeeded in switching between the servers whenever IP or FreeSWITCH and
> once it reaches the another server it invokes sofia recover to recover the
> calls.
>
> Both freeswtich instances are using the same configuration and database is
> shared using ODBC connectivity.
>
> Problem is:
>
> Call is made using the primary server, and i did fsctl crash in primary
> server cli. Heartbeat resource switches to secondary server and it invokes
> "sofia profile internal restart" and "sofia recover". and it recovers the
> call. The call gets recovered in 4-5 seconds.
>
> At the same time i will start the freeswitch instance in the primary
> server. Now if i crash the secondary server using fsctl crash, the
> resources switches to primary server and it invokes "sofia profile internal
> restart" and "sofia recover". Also the server sends invite request to the
> clients But it ends in NORMAL_TEMPORARY_FAILURE. Wireshark log says Client
> is responding with "Invalid CSeq" for the Server's INVITE request. This
> happens always with the primary server and very few times primary server is
> also able to recover the calls.
>
> I have the same configurations in both the servers
> And also i checked by stopping the heartbeat switching, and crashed the
> primary server's freeswitch. Then if i start freeswitch again in the same
> server and invoking sofia recover will recover the calls without any
> problem.
>
>
> I have also attached the cli logs of primary and secondary servers.
> I am not able to identify the exact problem in this, Please help me out in
> this problem.
>
>
> Thanks
> Rajkumar
>
> _________________________________________________________________________
> 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
>
>


-- 
Eliot Gable

"We do not inherit the Earth from our ancestors: we borrow it from our
children." ~David Brower

"I decided the words were too conservative for me. We're not borrowing from
our children, we're stealing from them--and it's not even considered to be
a crime." ~David Brower

"Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live;
not live to eat.) ~Marcus Tullius Cicero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121109/d027b59e/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FreeSWITCH
Type: application/octet-stream
Size: 33548 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121109/d027b59e/attachment-0001.obj 


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