diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-08-25 21:05:57 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-08-25 21:05:57 +0000 |
commit | 7b1cd6ccb3658e4c20bc3b1a8050293e9aa23309 (patch) | |
tree | 98f79c9d14e2b8c9a7fb9a384a7e998066f700fe /channels | |
parent | a85f97231b40b696f1c3402ab4fa7e77f58b2fd9 (diff) |
Merged revisions 139870 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r139870 | twilson | 2008-08-25 15:59:58 -0500 (Mon, 25 Aug 2008) | 10 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@139872 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 96a08bb4d..d10bc5a00 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -21803,10 +21803,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) { |