dect
/
asterisk
Archived
13
0
Fork 0

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

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46277 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
oej 2006-10-25 20:21:05 +00:00
parent 97acb8526e
commit 57e57570c4
1 changed files with 3 additions and 1 deletions

View File

@ -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, "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");
add_header(req, "CSeq", tmp);