Skip to content
Snippets Groups Projects
Commit 350aaac0 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

properly report hangupcause when ast_request() fails for the last (or only)...

properly report hangupcause when ast_request() fails for the last (or only) target of a dial operation (issue #5394, different fix)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6f869da9
Branches
Tags
No related merge requests found
...@@ -1109,6 +1109,8 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags ...@@ -1109,6 +1109,8 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
ast_log(LOG_NOTICE, "Unable to create channel of type '%s' (cause %d - %s)\n", tech, cause, ast_cause2str(cause)); ast_log(LOG_NOTICE, "Unable to create channel of type '%s' (cause %d - %s)\n", tech, cause, ast_cause2str(cause));
HANDLE_CAUSE(cause, chan); HANDLE_CAUSE(cause, chan);
cur = rest; cur = rest;
if (!cur)
chan->hangupcause = cause;
continue; continue;
} }
pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", numsubst); pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", numsubst);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment