mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Don't add Contact header on BYE, CANCEL, MESSAGE requests
(Bye, Cancel backported from 1.4, MESSAGE bug reported to me by Gunnar at Omnitor) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4259,7 +4259,8 @@ 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);
|
||||
if (sipmethod != SIP_BYE && sipmethod != SIP_CANCEL && sipmethod != SIP_MESSAGE)
|
||||
add_header(req, "Contact", p->our_contact);
|
||||
copy_header(req, orig, "Call-ID");
|
||||
add_header(req, "CSeq", tmp);
|
||||
|
||||
|
Reference in New Issue
Block a user