freeswitch
freeswitch copied to clipboard
FREESWITCH sends SIP INVITE with nosdp then SIP;cause=500;text="Internal Error" after Sofia recover using IPv6
Describe the bug
I am using FreeSWITCH to bridge between two legs, one with Ipv4 and the other with IPv6. Calls are working normally. I configured two instances of FREESWITCH with the same configuration to use HA with PSQL using Sofia recover. While testing, I did fsctl crash for first instance and sofia recover on the other instance, sofia recovered 2 calls from the DB. While Ipv4 leg recovered normally, the IPv6 leg was not recovered:
First SIP INVITE was sent without SDP by the backup instance to the other leg:
send 700 bytes to udp/[fc00:0:0:2::91]:5060 at 05:16:12.734246:
INVITE sip:nobody@[fc00:0:0:2::91]:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP [fc00:0:0:2::15];rport;branch=z9hG4bKN0Kmy49jKyKBF Max-Forwards: 69 From: sip:20222@[fc00:0:0:2::15]:5060;transport=udp;tag=BU50jaUtH7UmQ To: "sipp" sip:sipp@[fc00:0:0:2::91];tag=S4ytQX1Zv795g Call-ID: 3adf6bf8-561b-123d-bd8d-0242ac120008 CSeq: 80297294 INVITE Contact: sip:nobody@[fc00:0:0:2::15]:5060 User-Agent: FREESWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, PRACK, NOTIFY Supported: 100rel, timer, path, replaces Allow-Events: talk, hold, conference, refer Content-Length: 0 Remote-Party-ID: "20222" sip:20222@[fc00:0:0:2::91];party=calling;screen=yes;privacy=off
Second BYE message was sent with reason=500 by the backup FS to the other leg:
send 595 bytes to udp/[fc00:0:0:2::91]:5060 at 05:16:12.837158:
BYE sip:[fc00:0:0:2::91]:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP [fc00:0:0:2::15];rport;branch=z9hG4bKp9cD0Ztpg79Xa Max-Forwards: 70 From: sip:20222@[fc00:0:0:2::15]:5060;transport=udp;tag=BU50jaUtH7UmQ To: "sipp" sip:sipp@[fc00:0:0:2::91];tag=S4ytQX1Zv795g Call-ID: 3adf6bf8-561b-123d-bd8d-0242ac120008 CSeq: 80297295 BYE Contact: sip:nobody@[fc00:0:0:2::15]:5060 User-Agent: FREESWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, PRACK, NOTIFY Supported: 100rel, timer, path, replaces Reason: SIP;cause=500;text="Internal Error" Content-Length: 0
To Reproduce Steps to reproduce the behavior:
Expected behavior Both legs are recovered.
Package version or git hash
FreeSWITCH (Version 1.10.11-release git 8061d77 2024-01-16 22:35:34Z 64bit)
Trace logs Attached
Does it work with version 10.6?
Does it work with version 10.6?
No Minh, we rolled back to 10.6 and still the same behaviour.