[asterisk-commits] twilson: branch 1.4 r139869 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 25 15:46:10 CDT 2008


Author: twilson
Date: Mon Aug 25 15:46:10 2008
New Revision: 139869

URL: http://svn.digium.com/view/asterisk?view=rev&rev=139869
Log:
Make SIPADDHEADER() propagate indefinitely

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=139869&r1=139868&r2=139869
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Mon Aug 25 15:46:10 2008
@@ -18203,10 +18203,10 @@
 	/* Check for headers */
 	while (!ok && no <= 50) {
 		no++;
-		snprintf(varbuf, sizeof(varbuf), "_SIPADDHEADER%.2d", no);
-
-		/* Compare without the leading underscore */
-		if( (pbx_builtin_getvar_helper(chan, (const char *) varbuf + 1) == (const char *) NULL) )
+		snprintf(varbuf, sizeof(varbuf), "__SIPADDHEADER%.2d", no);
+
+		/* Compare without the leading underscores */
+		if( (pbx_builtin_getvar_helper(chan, (const char *) varbuf + 2) == (const char *) NULL) )
 			ok = TRUE;
 	}
 	if (ok) {




More information about the asterisk-commits mailing list