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:
Spencer Thomason
2014-09-16 19:32:51 +00:00
parent 6bfc05b81e
commit 747322dcc6
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -7750,6 +7750,7 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
q850 = switch_core_session_sprintf(a_session, "Q.850;cause=16;text=\"normal_clearing\"");
}
nua_bye(b_tech_pvt->nh,
SIPTAG_CONTACT(SIP_NONE),
TAG_IF(!zstr(q850), SIPTAG_REASON_STR(q850)),
TAG_IF(!zstr(tech_pvt->user_via), SIPTAG_VIA_STR(tech_pvt->user_via)), TAG_END());