diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-24 02:53:24 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-24 02:53:24 +0000 |
commit | 5cb692d65fa970c02ee1b206d505d76ae0359227 (patch) | |
tree | 6abd655b3843f9bf2d1bcce7022dd5017ef9701e /pbx/pbx_config.c | |
parent | 13f34443b97dc96413410706b691285377dab919 (diff) |
Add "Loopback" switch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4070 f38db490-d61c-443f-a65b-d21fe96a405b
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, "/"); |