aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_local.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-20 20:18:08 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-20 20:18:08 +0000
commitf645cb260746626be825732fca91322248a59685 (patch)
treec7eb4dc50e45c04f13ae46411d6872e0cb22e8be /channels/chan_local.c
parent67bb2132c50f485a687f0fe5add18632c7ca2b09 (diff)
Merged revisions 124316 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r124316 | tilghman | 2008-06-20 15:17:04 -0500 (Fri, 20 Jun 2008) | 16 lines Merged revisions 124315 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r124315 | tilghman | 2008-06-20 15:16:02 -0500 (Fri, 20 Jun 2008) | 8 lines When using a Local channel, started by a call file, with a destination of an AGI script, the AGI script does not always get notified of a hangup if the underlying channel hangs up early. (closes issue #11833) Reported by: IgorG Patches: local_hangup-v1.diff uploaded by IgorG (license 20) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@124317 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r--channels/chan_local.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index f23dc8f2d..f574eab32 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -546,6 +546,9 @@ static int local_hangup(struct ast_channel *ast)
} else {
p->owner = NULL;
ast_module_user_remove(p->u_owner);
+ if (p->chan) {
+ ast_queue_hangup(p->chan);
+ }
}
ast->tech_pvt = NULL;