aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-25 20:46:10 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-25 20:46:10 +0000
commit70e0619a1a114fbc459ea50aaeab55d0ddee0fee (patch)
treee94f6e4e07168bcfd01aee6bc860a9260aec0bcd
parent8237a28acd1633ba4f981b3dc4e2582abe465977 (diff)
Make SIPADDHEADER() propagate indefinitely
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@139869 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 193d2a98a..b4e83d440 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -18203,10 +18203,10 @@ static int sip_addheader(struct ast_channel *chan, void *data)
/* Check for headers */
while (!ok && no <= 50) {
no++;
- snprintf(varbuf, sizeof(varbuf), "_SIPADDHEADER%.2d", 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) )
+ /* Compare without the leading underscores */
+ if( (pbx_builtin_getvar_helper(chan, (const char *) varbuf + 2) == (const char *) NULL) )
ok = TRUE;
}
if (ok) {