mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-01 18:09:41 +00:00
New SIP Channel driver: Always Auth Reject
If no matching endpoint is found for the incoming request Asterisk will respond with a 401 Unauthorized (rejecting the request), but will first challenge if no authorization creditials are given. Changes also included moving ACL options into a new global 'security' configuration section in res_sip.conf. (closes issue ASTERISK-21433) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2554/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1519,6 +1519,7 @@ static int load_module(void)
|
||||
return AST_MODULE_LOAD_SUCCESS;
|
||||
|
||||
error:
|
||||
ast_sip_destroy_distributor();
|
||||
ast_res_sip_destroy_configuration();
|
||||
if (monitor_thread) {
|
||||
stop_monitor_thread();
|
||||
@@ -1561,6 +1562,7 @@ static int unload_pjsip(void *data)
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
ast_sip_destroy_distributor();
|
||||
ast_res_sip_destroy_configuration();
|
||||
if (monitor_thread) {
|
||||
stop_monitor_thread();
|
||||
|
Reference in New Issue
Block a user