diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-20 20:16:02 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-20 20:16:02 +0000 |
commit | 3189771f1e30922e8e0c667631a9a43100dedc10 (patch) | |
tree | 958d7bdce67bede8fb1e161834125b1156414608 /channels/chan_local.c | |
parent | b53e732d652f0d0662be425af53ef12d2b210366 (diff) |
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.4@124315 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r-- | channels/chan_local.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index 8bfda47ec..294fbffca 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -538,6 +538,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; |