mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 23:15:59 +00:00
Merged revisions 123165 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r123165 | murf | 2008-06-16 14:43:46 -0600 (Mon, 16 Jun 2008) | 19 lines (closes issue #12689) Reported by: ys Many thanks to ys for doing the research on this problem. I didn't think it would be best to unlock the contexts and then relock them after the remove_extension2() call, so I added an extra arg to remove_extension2() and set it appropriately in each call. There were not that many. I considered forcing the code to lock the contexts before the call to remove_extension2(), but that would require a slightly greater degree of changes, especially since the find_context_locked is local to pbx.c I did a simple sanity test to make sure the code doesn't mess things up in general. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@123173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -493,7 +493,7 @@ static int unload_module(void)
|
||||
ast_agi_unregister(ast_module_info->self, &gosub_agi_command);
|
||||
|
||||
if ((con = ast_context_find("app_stack_gosub_virtual_context"))) {
|
||||
ast_context_remove_extension2(con, "s", 1, NULL);
|
||||
ast_context_remove_extension2(con, "s", 1, NULL, 0);
|
||||
ast_context_destroy(con, "app_stack"); /* leave nothing behind */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user