diff options
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r-- | apps/app_dial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 6d0c6a6e7..e7a81636b 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -788,8 +788,11 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, *to = -1; strcpy(pa->status, "CANCEL"); ast_cdr_noanswer(in->cdr); - if (f) + if (f) { + if (f->seqno) + in->hangupcause = f->seqno; ast_frfree(f); + } return NULL; } |