aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-18 20:13:14 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-18 20:13:14 +0000
commit0d1db7fc1523e3be00ed276bb940369763d37d0f (patch)
tree86aef333eebbed710f1f994444330a885df4cfcd
parentc72149025b53c82b7060e2f27d9f83eb811b429c (diff)
Merging patch from 1.2 - Issue #7682
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43221 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index f59c3ba62..74c59822e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5338,7 +5338,7 @@ static int respprep(struct sip_request *resp, struct sip_pvt *p, const char *msg
snprintf(contact, sizeof(contact), "%s;expires=%d", p->our_contact, p->expiry);
add_header(resp, "Contact", contact); /* Not when we unregister */
}
- } else if (p->our_contact[0]) {
+ } else if (msg[0] != '4' && p->our_contact[0]) {
add_header(resp, "Contact", p->our_contact);
}
return 0;