Fix SIP with OSP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
eb19519c86
commit
4358089aa7
|
@ -5439,7 +5439,7 @@ static int check_auth(struct sip_pvt *p, struct sip_request *req, char *randdata
|
|||
/* Always OK if no secret */
|
||||
if (ast_strlen_zero(secret) && ast_strlen_zero(md5secret)
|
||||
#ifdef OSP_SUPPORT
|
||||
&& ast_test_flag(p, SIP_OSPAUTH)
|
||||
&& !ast_test_flag(p, SIP_OSPAUTH)
|
||||
&& global_allowguest != 2
|
||||
#endif
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue