aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-24 22:25:01 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-24 22:25:01 +0000
commit3a0885602c160370ac4139b14bb59bf0fae9dafc (patch)
treef5a44f32d0796a34d28288bf32a20e63484d01f2 /pbx.c
parent40189407e0bfea96aa73b005fc970a225d52ff5b (diff)
Make variable with invalid extension
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1117 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index a7bbf523f..3be6996cf 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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 {