aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-06 12:27:43 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-06 12:27:43 +0000
commita8898397f51fa4bfb394eb8e2f4ef3751ecddfdc (patch)
tree88ae5cfcdf151ed11a4e9b8940eec3ad2131f05c /channels/chan_sip.c
parent623b5b8c8e7c2e5b112dd083c4d2af12bcaad408 (diff)
Don't send Contact on MESSAGE
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48317 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ccf3911ea..ea92c3364 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5629,9 +5629,10 @@ static int reqprep(struct sip_request *req, struct sip_pvt *p, int sipmethod, in
add_header(req, "From", ot);
add_header(req, "To", of);
}
- /* Do not add Contact for BYE and Cancel requests */
- if (sipmethod != SIP_BYE && sipmethod != SIP_CANCEL)
+ /* Do not add Contact for MESSAGE, BYE and Cancel requests */
+ 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);