I do not want to send a 401 response to a Request (REGISTER or INVITE) sent by the No matching endpoint for security reasons. Are there any related options in Asterisk or PJSIP?
I am using Asterisk 18.3 and PJSIP 2.10.
There is no such option. You’d probably need to modify the source code.
Thanks. I had modify the source code and it works.
They’ll still know you are running something on the port used. The normal security option is to send 401, rather than the, more accurate, 403, so they can’t tell the difference between not recognized and wrong password.