From: Tilghman Lesher Date: Thu, 20 May 2010 21:28:53 +0000 (+0000) Subject: Error message fix. X-Git-Tag: 11.0.0-beta1~2993 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5bee137f9ef643c678f86161df00b0feddd8799;p=thirdparty%2Fasterisk.git Error message fix. (closes issue #17356) Reported by: kenner Patches: app_stack.c.diff uploaded by kenner (license 1040) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@264752 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_stack.c b/apps/app_stack.c index 6fc1c60923..ebca99490b 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -415,7 +415,7 @@ static int gosub_exec(struct ast_channel *chan, const char *data) if (!ast_exists_extension(chan, chan->context, chan->exten, ast_test_flag(chan, AST_FLAG_IN_AUTOLOOP) ? chan->priority + 1 : chan->priority, chan->cid.cid_num)) { ast_log(LOG_ERROR, "Attempt to reach a non-existent destination for gosub: (Context:%s, Extension:%s, Priority:%d)\n", - chan->context, chan->exten, chan->priority); + chan->context, chan->exten, ast_test_flag(chan, AST_FLAG_IN_AUTOLOOP) ? chan->priority + 1 : chan->priority); ast_copy_string(chan->context, newframe->context, sizeof(chan->context)); ast_copy_string(chan->exten, newframe->extension, sizeof(chan->exten)); chan->priority = newframe->priority;