diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dial.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 38d2bbd28..4f53eeba8 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1818,6 +1818,9 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags /* Again, keep going even if there's an error */ ast_debug(1, "ast call on peer returned %d\n", res); ast_verb(3, "Couldn't call %s\n", numsubst); + if (tc->hangupcause) { + chan->hangupcause = tc->hangupcause; + } ast_hangup(tc); tc = NULL; ast_free(tmp); |