diff options
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-x | 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 d13dfd9f1..9f0550e3c 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -229,6 +229,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu case AST_CONTROL_BUSY: if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "%s is busy\n", o->chan->name); + in->hangupcause = o->chan->hangupcause; ast_hangup(o->chan); o->chan = NULL; o->stillgoing = 0; @@ -239,6 +240,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu case AST_CONTROL_CONGESTION: if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "%s is circuit-busy\n", o->chan->name); + in->hangupcause = o->chan->hangupcause; ast_hangup(o->chan); o->chan = NULL; o->stillgoing = 0; @@ -282,6 +284,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu } ast_frfree(f); } else { + in->hangupcause = o->chan->hangupcause; ast_hangup(o->chan); o->chan = NULL; o->stillgoing = 0; |