Skip to content
Snippets Groups Projects
Commit 1b3411f2 authored by Olle Johansson's avatar Olle Johansson
Browse files

Old todo: Don't add Contact headers on BYE and CANCEL.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d4486207
No related branches found
No related tags found
No related merge requests found
...@@ -5632,7 +5632,9 @@ static int reqprep(struct sip_request *req, struct sip_pvt *p, int sipmethod, in ...@@ -5632,7 +5632,9 @@ static int reqprep(struct sip_request *req, struct sip_pvt *p, int sipmethod, in
add_header(req, "From", ot); add_header(req, "From", ot);
add_header(req, "To", of); add_header(req, "To", of);
} }
add_header(req, "Contact", p->our_contact); /* Do not add Contact for BYE and Cancel requests */
if (sipmethod != SIP_BYE && sipmethod != SIP_CANCEL)
add_header(req, "Contact", p->our_contact);
copy_header(req, orig, "Call-ID"); copy_header(req, orig, "Call-ID");
add_header(req, "CSeq", tmp); add_header(req, "CSeq", tmp);
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment