开发者

Force Asterisk to challenge all SIP requests with a 401/407 response

开发者 https://www.devze.com 2023-03-27 06:14 出处:网络
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.

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?


There is no configuration setting for this in Asterisk. Host=dynamic just forces you to REGISTER, it has nothing to do with authentication.

Setting secret= enables authentication. The code decides when and why to authenticate. Subscribe should be authenticated, if not, that is a bug and should be reported.

0

精彩评论

暂无评论...
验证码 换一张
取 消