diff --git a/apps/app_stack.c b/apps/app_stack.c index 179694b7e4423c8de7b3d0b70902a3ee26ed17fa..3c857a9356a54bcd49c7884fac76d5a1df786c03 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -590,8 +590,8 @@ static int gosub_exec(struct ast_channel *chan, const char *data) ast_channel_unlock(chan); if (!ast_exists_extension(chan, dest_context, dest_exten, dest_priority, caller_id)) { - ast_log(LOG_ERROR, "Attempt to reach a non-existent destination for %s: (Context:%s, Extension:%s, Priority:%d)\n", - app_gosub, dest_context, dest_exten, dest_priority); + ast_log(LOG_ERROR, "%s attempted to reach non-existent destination '%s,%s,%d' from '%s,%s,%d'", + app_gosub, dest_context, dest_exten, dest_priority, orig_context, orig_exten, orig_priority); goto error_exit; }