mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
Remove Contact header from BYE and CANCEL requests.
Per rfc3261 the Contact header is not applicable and MUST not appear in the request. FS-5868 #resolve
This commit is contained in:
@@ -2483,7 +2483,7 @@ void sofia_reg_handle_sip_r_challenge(int status,
|
||||
if (session) {
|
||||
switch_channel_hangup(switch_core_session_get_channel(session), SWITCH_CAUSE_MANDATORY_IE_MISSING);
|
||||
} else {
|
||||
nua_cancel(nh, TAG_END());
|
||||
nua_cancel(nh, SIPTAG_CONTACT(SIP_NONE), TAG_END());
|
||||
}
|
||||
|
||||
end:
|
||||
|
||||
Reference in New Issue
Block a user