mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
AST-2018-005: res_pjsip_transport_management: Move to core
Since res_pjsip_transport_management provides several attack mitigation features, its functionality moved to res_pjsip and this module has been removed. This way the features will always be available if res_pjsip is loaded. ASTERISK-27618 Reported By: Sandro Gauci Change-Id: I21a2d33d9dda001452ea040d350d7a075f9acf0d
This commit is contained in:
@@ -4972,6 +4972,7 @@ static int unload_pjsip(void *data)
|
||||
ast_res_pjsip_cleanup_options_handling();
|
||||
ast_res_pjsip_cleanup_message_filter();
|
||||
ast_sip_destroy_distributor();
|
||||
ast_sip_destroy_transport_management();
|
||||
ast_res_pjsip_destroy_configuration();
|
||||
ast_sip_destroy_system();
|
||||
ast_sip_destroy_global_headers();
|
||||
@@ -5135,6 +5136,11 @@ static int load_module(void)
|
||||
ast_sip_initialize_resolver();
|
||||
ast_sip_initialize_dns();
|
||||
|
||||
if (ast_sip_initialize_transport_management()) {
|
||||
ast_log(LOG_ERROR, "Failed to initialize SIP transport management. Aborting load\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (ast_sip_initialize_distributor()) {
|
||||
ast_log(LOG_ERROR, "Failed to register distributor module. Aborting load\n");
|
||||
goto error;
|
||||
|
Reference in New Issue
Block a user