I am looking for a config file entry to force an Asterisk server to respond to all SIP requests (that do not contain valid Authorization credentials) with a 401/407 response.
Setting "host=dynamic" in sip.conf can be used to enable authentication challenges for REGISTER and INVITE but doesn't seem to apply to BYE, SUBSCRIBE, etc.
Is there such a command for Asterisk? Maybe something like "insecure=no" that applies to all SIP methods?