diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-25 20:14:57 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-25 20:14:57 +0000 |
commit | 6523e049c73eed7e782caa5981be7e3f21a9b90f (patch) | |
tree | 0a4a3bb9855538d13c50854138f44ad9a5ff5b30 /channels | |
parent | f954cf748d38cacad90f7d5b53fbecceecb22491 (diff) |
Old todo note - Don't add Contact header on BYE and Cancel
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46276 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3c2bed690..e406a85b1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5556,7 +5556,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); |