My setup is Asterisk 11.2 on Debian with Pacemaker 1.1.7 (and its dependent packages: cluster-glue, corosync, resource-agents).
Asterisk in “realtime” managing SIP registrations in external DDBB with ODBC.
Softphones and SIP gateways for analog and ISDN telephony.
In Pacemaker, Asterisk and floating-IP migrate correctly from one node to the other. Every SIP client connects and make calls correctly, no matter where Asterisk is running on (I set up “bindaddr” with the floating IP).
But if there are calls pending before the migration takes place the calls are stopped.
I enter “directmedia = yes” in sip.conf [general] section and at every peer (inside DDBB table) and calls keep getting hangup.
;;; SIP messaging
accept_outofcall_message = yes
outofcall_message_context = messages
rtcachefriends = yes
callcounter = yes
bindaddr = 172.26.50.220 ; floating IP
; canreinvite = yes ; deprecated for directmedia
directmedia = yes
I forced both SIP clients to use same codec (confirmed through SIP trace) but same happens.
Any idea what can be wrong?
Could it be the way OCF script stops Asterisk service?
[code] # do a “soft shutdown” via the asterisk command line first
asterisk_rx ‘core stop now’
If “core stop now” didn’t succeed, try SIGTERM
ocf_run kill -s TERM $pid