[asterisk-commits] oej: trunk r41437 - /trunk/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Aug 30 12:51:32 MST 2006
Author: oej
Date: Wed Aug 30 14:51:31 2006
New Revision: 41437
URL: http://svn.digium.com/view/asterisk?rev=41437&view=rev
Log:
Don't add headers to an uninitialized eq (from issue 7694 garyhai, but not
a resolution to that bug report)
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=41437&r1=41436&r2=41437&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Aug 30 14:51:31 2006
@@ -7065,8 +7065,6 @@
else
snprintf(referto, sizeof(referto), "<sip:%s>", dest);
- add_header(&req, "Max-Forwards", DEFAULT_MAX_FORWARDS);
-
/* save in case we get 407 challenge */
sip_refer_allocate(p);
ast_copy_string(p->refer->refer_to, referto, sizeof(p->refer->refer_to));
@@ -7074,6 +7072,8 @@
p->refer->status = REFER_SENT; /* Set refer status */
reqprep(&req, p, SIP_REFER, 0, 1);
+ add_header(&req, "Max-Forwards", DEFAULT_MAX_FORWARDS);
+
add_header(&req, "Refer-To", referto);
add_header(&req, "Allow", ALLOWED_METHODS);
add_header(&req, "Supported", SUPPORTED_EXTENSIONS);
More information about the asterisk-commits
mailing list