summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2008-08-25 20:59:58 +0000
committerTerry Wilson <twilson@digium.com>2008-08-25 20:59:58 +0000
commit2717c21561ccd6c720aa5f28e7496e312644e93f (patch)
tree3736b061012508959ffe682ee3d0e2f63e4d8ed2 /channels
parente833fd2ab16f59159ff287850e7cede22efe15db (diff)
Merged revisions 139869 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r139869 | twilson | 2008-08-25 15:46:10 -0500 (Mon, 25 Aug 2008) | 2 lines Make SIPADDHEADER() propagate indefinitely ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@139870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-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 3bec6f870..9b32f2647 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -22281,10 +22281,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) {