aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-28 23:18:31 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-28 23:18:31 +0000
commitf834829747eb8f465ec55a9b0b266392e414d6f2 (patch)
tree206e5d55021d794a6fad1ebbedfb625ca0c583d9 /apps/app_dial.c
parente6af87827377a35dfef482282df9b67c58510bc6 (diff)
Set normal clearing for answered calls (bug #3165)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4577 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-xapps/app_dial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index f3e9ccfe6..ef216a150 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -352,6 +352,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
*allowdisconnect_in = o->allowdisconnect_in;
*allowdisconnect_out = o->allowdisconnect_out;
}
+ /* If call has been answered, then the eventual hangup is likely to be normal hangup */
+ in->hangupcause = AST_CAUSE_NORMAL_CLEARING;
+ o->chan->hangupcause = AST_CAUSE_NORMAL_CLEARING;
break;
case AST_CONTROL_BUSY:
if (option_verbose > 2)