diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-13 05:14:56 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-13 05:14:56 +0000 |
commit | 9678f49d850c60361b6330b76e36e193d013f011 (patch) | |
tree | a56e3aa4264fb046fda07a768d7ad9de85158f66 /pbx | |
parent | 4c37e1250396e18726bc938c3fd735609d23ff8d (diff) |
Implement eswitch for evalulating variables at runtime (bug #3168)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4780 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 63c66016c..84420bad4 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1754,7 +1754,7 @@ 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") || !strcasecmp(v->name, "lswitch")) { + } else if (!strcasecmp(v->name, "switch") || !strcasecmp(v->name, "lswitch") || !strcasecmp(v->name, "eswitch")) { char *stringp=NULL; memset(realvalue, 0, sizeof(realvalue)); if (!strcasecmp(v->name, "switch")) @@ -1767,7 +1767,7 @@ static int pbx_load_module(void) data = strsep(&stringp, ""); if (!data) data = ""; - if (ast_context_add_switch2(con, appl, data, registrar)) + if (ast_context_add_switch2(con, appl, data, !strcasecmp(v->name, "eswitch"), registrar)) ast_log(LOG_WARNING, "Unable to include switch '%s' in context '%s'\n", v->value, cxt); } v = v->next; |