aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-18 20:08:22 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-18 20:08:22 +0000
commitf53c4d9f8879ae3f7d31026306bb977f4a9a0330 (patch)
treeeb67d96b221937bdef5c1f965f94b03aa5d59b78
parent4261f8b3589f47a1dde1a1a2368c4182143ea55e (diff)
Issue #7682 - don't add contacts to 4xx responses.
(Ugly fix, not proud at all) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43220 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 a86f2c0ee..2cf7d5353 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4118,7 +4118,7 @@ static int respprep(struct sip_request *resp, struct sip_pvt *p, char *msg, stru
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;