Skip to content
Snippets Groups Projects
Commit a5bee137 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

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
parent dafb48fe
Branches
Tags
No related merge requests found
...@@ -415,7 +415,7 @@ static int gosub_exec(struct ast_channel *chan, const char *data) ...@@ -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)) { 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", 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->context, newframe->context, sizeof(chan->context));
ast_copy_string(chan->exten, newframe->extension, sizeof(chan->exten)); ast_copy_string(chan->exten, newframe->extension, sizeof(chan->exten));
chan->priority = newframe->priority; chan->priority = newframe->priority;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment