[Freeswitch-users] Feeeswitch HA with Keepalived database conflict

edson at inoutglobal.xyz edson at inoutglobal.xyz
Mon Feb 1 11:13:14 UTC 2021


 

Dears,

 

I am configring FReeswitch HA with Keepalived approach just like this
https://freeswitch.org/confluence/display/FREESWITCH/HA+keepalived

Freeswitch database is shared with Postgresql-BDR replication.

 

When executing fsctl crash on node 1, node 2 tries to recover call from its
recovery table, but it somehow tries to insert it again causing following
conclict.

How to avoid this behaviour?

 

>ERROR:  duplicate key value violates unique constraint "recovery_pkey"

< 2021-01-31 12:48:09.394 -03 >DETAIL:  Key
(uuid)=(66727254-af9d-47ef-ad9f-6f6bbb794eb6) already exists.

< 2021-01-31 12:48:09.394 -03 >STATEMENT:  insert into recovery
(runtime_uuid, technology, profile_name, hostname, uuid, metadata) values
('4a864869-fe7f-4470-9992-20b91d09040f','sofia','internal','freeswitch-bndes
','66727254-af9d-47ef-ad9f-6f6bbb794eb6','<cdr
core-uuid="4a864869-fe7f-4470-9992-20b91d09040f"
switchname="freeswitch-bndes">

 

Regards

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210201/f0d7e102/attachment.html>


More information about the FreeSWITCH-users mailing list