Index: apps/app_dial.c =================================================================== --- apps/app_dial.c (revision 89442) +++ apps/app_dial.c (working copy) @@ -1947,13 +1947,11 @@ static int unload_module(void) { int res; - struct ast_context *con; res = ast_unregister_application(app); res |= ast_unregister_application(rapp); - if ((con = ast_context_find("app_dial_gosub_virtual_context"))) - ast_context_remove_extension2(con, "s", 1, NULL); + ast_context_destroy(NULL, "app_dial"); return res; }