Merged revisions 89571 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 26 Nov 2007 14:42:57 +0000 (14:42 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 26 Nov 2007 14:42:57 +0000 (14:42 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89571 | file | 2007-11-26 10:41:03 -0400 (Mon, 26 Nov 2007) | 4 lines

When unloading app_meetme destroy any auto created contexts created by SLA.
(closes issue #11367)
Reported by: eliel

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89572 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index c5a4a9e..3c9798a 100644 (file)
@@ -5191,6 +5191,9 @@ static void sla_destroy(void)
                pthread_join(sla.thread, NULL);
        }
 
+       /* Drop any created contexts from the dialplan */
+       ast_context_destroy(NULL, sla_registrar);
+
        ast_mutex_destroy(&sla.lock);
        ast_cond_destroy(&sla.cond);
 }