diff options
author | Mark Spencer <markster@digium.com> | 2003-06-24 22:25:01 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-06-24 22:25:01 +0000 |
commit | 7540c30f54f7604b7937e9955561838b0c36b5cf (patch) | |
tree | f5a44f32d0796a34d28288bf32a20e63484d01f2 /pbx.c | |
parent | f6d219cb18fad998d4be76c1cbe5a5ad11a00ad1 (diff) |
Make variable with invalid extension
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1726,6 +1726,7 @@ int ast_pbx_run(struct ast_channel *c) if (ast_exists_extension(c, c->context, "i", 1, c->callerid)) { if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Sent into invalid extension '%s' in context '%s' on %s\n", c->exten, c->context, c->name); + pbx_builtin_setvar_helper(c, "INVALID_EXTEN", c->exten); strncpy(c->exten, "i", sizeof(c->exten)-1); c->priority = 1; } else { @@ -1770,6 +1771,7 @@ int ast_pbx_run(struct ast_channel *c) if (ast_exists_extension(c, c->context, "i", 1, c->callerid)) { if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "Invalid extension '%s' in context '%s' on %s\n", exten, c->context, c->name); + pbx_builtin_setvar_helper(c, "INVALID_EXTEN", exten); strncpy(c->exten, "i", sizeof(c->exten)-1); c->priority = 1; } else { |