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