From 7540c30f54f7604b7937e9955561838b0c36b5cf Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 24 Jun 2003 22:25:01 +0000 Subject: [PATCH] Make variable with invalid extension git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1117 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pbx.c b/pbx.c index a7bbf523f4..3be6996cfa 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 {