Merged revisions 124315 via svnmerge from
[asterisk/asterisk.git] / channels / chan_local.c
index d531844..aade7b2 100644 (file)
@@ -574,6 +574,9 @@ static int local_hangup(struct ast_channel *ast)
        } else {
                p->owner = NULL;
                ast_module_user_remove(p->u_owner);
        } else {
                p->owner = NULL;
                ast_module_user_remove(p->u_owner);
+               if (p->chan) {
+                       ast_queue_hangup(p->chan);
+               }
        }
        
        ast->tech_pvt = NULL;
        }
        
        ast->tech_pvt = NULL;