diff options
author | Mark Spencer <markster@digium.com> | 2004-10-24 02:53:24 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-10-24 02:53:24 +0000 |
commit | 82cbf2899353eb5c3843406dd3f2823df8f54b9f (patch) | |
tree | 6abd655b3843f9bf2d1bcce7022dd5017ef9701e /pbx/pbx_config.c | |
parent | 4959fb958c7fff0b26b3db85902c1b2073ead185 (diff) |
Add "Loopback" switch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_config.c')
-rwxr-xr-x | pbx/pbx_config.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 7e0d6d9cd..63c66016c 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1754,10 +1754,13 @@ static int pbx_load_module(void) pbx_substitute_variables_helper(NULL, v->value, realvalue, sizeof(realvalue) - 1); if (ast_context_add_ignorepat2(con, realvalue, registrar)) ast_log(LOG_WARNING, "Unable to include ignorepat '%s' in context '%s'\n", v->value, cxt); - } else if (!strcasecmp(v->name, "switch")) { + } else if (!strcasecmp(v->name, "switch") || !strcasecmp(v->name, "lswitch")) { char *stringp=NULL; memset(realvalue, 0, sizeof(realvalue)); - pbx_substitute_variables_helper(NULL, v->value, realvalue, sizeof(realvalue) - 1); + if (!strcasecmp(v->name, "switch")) + pbx_substitute_variables_helper(NULL, v->value, realvalue, sizeof(realvalue) - 1); + else + strncpy(realvalue, v->value, sizeof(realvalue) - 1); tc = realvalue; stringp=tc; appl = strsep(&stringp, "/"); |