mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Remove redundant module checks and references.
This removes references that are no longer needed due to automatic references created by module dependencies. In addition this removes most calls to ast_module_check as they were checking modules which are listed as dependencies. Change-Id: I332a6e8383d4c72c8e89d988a184ab8320c4872e
This commit is contained in:
@@ -471,8 +471,6 @@ static struct ast_sip_session_supplement websocket_supplement = {
|
||||
|
||||
static int load_module(void)
|
||||
{
|
||||
CHECK_PJSIP_MODULE_LOADED();
|
||||
|
||||
/*
|
||||
* We only need one transport type name (ws) defined. Firefox
|
||||
* and Chrome do not support anything other than secure websockets
|
||||
@@ -490,10 +488,7 @@ static int load_module(void)
|
||||
return AST_MODULE_LOAD_DECLINE;
|
||||
}
|
||||
|
||||
if (ast_sip_session_register_supplement(&websocket_supplement)) {
|
||||
ast_sip_unregister_service(&websocket_module);
|
||||
return AST_MODULE_LOAD_DECLINE;
|
||||
}
|
||||
ast_sip_session_register_supplement(&websocket_supplement);
|
||||
|
||||
if (ast_websocket_add_protocol("sip", websocket_cb)) {
|
||||
ast_sip_session_unregister_supplement(&websocket_supplement);
|
||||
|
Reference in New Issue
Block a user