[asterisk-commits] oej: branch 1.2 r43220 -
/branches/1.2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Sep 18 13:08:22 MST 2006
Author: oej
Date: Mon Sep 18 15:08:22 2006
New Revision: 43220
URL: http://svn.digium.com/view/asterisk?rev=43220&view=rev
Log:
Issue #7682 - don't add contacts to 4xx responses.
(Ugly fix, not proud at all)
Modified:
branches/1.2/channels/chan_sip.c
Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=43220&r1=43219&r2=43220&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Mon Sep 18 15:08:22 2006
@@ -4118,7 +4118,7 @@
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;
More information about the asterisk-commits
mailing list