mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -206,18 +206,12 @@ static int privacy_exec (struct ast_channel *chan, void *data) | ||||
|  | ||||
| static int unload_module(void) | ||||
| { | ||||
| 	int res; | ||||
|  | ||||
| 	res = ast_unregister_application (app); | ||||
|  | ||||
| 	ast_module_user_hangup_all(); | ||||
|  | ||||
| 	return res; | ||||
| 	return ast_unregister_application (app); | ||||
| } | ||||
|  | ||||
| static int load_module(void) | ||||
| { | ||||
| 	return ast_register_application (app, privacy_exec, synopsis, descrip); | ||||
| 	return ast_register_application(app, privacy_exec, synopsis, descrip); | ||||
| } | ||||
|  | ||||
| AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Require phone number to be entered, if no CallerID sent"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user