diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-01 16:05:40 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-01 16:05:40 +0000 |
commit | 143f06cec4526c4f8f9dadb3d3533b9c77ac250c (patch) | |
tree | fb29cc6d88c7be55350958128b2304f13d96df62 /apps/app_dial.c | |
parent | cfa5d5657f6986b9a231c2bd016ab60e52186f52 (diff) |
Add 486 message (SIP) to 17 cause (PRI) translation when you call Dial app and then Hangup:
exten => _X.,1,Dial(SIP/user)
exten => _X.,2,Hangup()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1596 f38db490-d61c-443f-a65b-d21fe96a405b
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; |