]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When using a Local channel, started by a call file, with a destination of an
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 20 Jun 2008 20:16:02 +0000 (20:16 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 20 Jun 2008 20:16:02 +0000 (20:16 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@124315 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 8bfda47ec5e35992a4b96c682cc5f10b35e02139..294fbffca08af211ad127d572b2623648666392c 100644 (file)
@@ -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;