--- a/res/res_pjsip_endpoint_identifier_anonymous.c 2018-01-11 19:55:45.000000000 +0300 +++ b/res/res_pjsip_endpoint_identifier_anonymous.c 2018-03-02 22:57:56.959617744 +0300 @@ -86,6 +86,8 @@ if ((endpoint = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "endpoint", id))) { goto done; } + /* It's local SIP domain. Disable anonymous and force to auth */ + return NULL; } /* See if the transport this came in on has a provided domain */