Module: sip-router
Branch: master
Commit: bb1a5ba30b3d6ba98696844899a61b7df3bc0cc4
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bb1a5ba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jul 25 12:41:52 2014 +0200
auth_db: proper condition for caller id skip check flag
---
modules/auth_db/authorize.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/auth_db/authorize.c b/modules/auth_db/authorize.c
index 95a8a3e..b3700f2 100644
--- a/modules/auth_db/authorize.c
+++ b/modules/auth_db/authorize.c
@@ -506,10 +506,10 @@ int auth_check(struct sip_msg* _m, char* _realm, char* _table, char
*_flags)
} else {
uri = furi;
}
- if((iflags&AUTH_CHECK_SKIPFWD_F)
+ if(!((iflags&AUTH_CHECK_SKIPFWD_F)
&& (_m->REQ_METHOD==METHOD_INVITE || _m->REQ_METHOD==METHOD_BYE
|| _m->REQ_METHOD==METHOD_PRACK || _m->REQ_METHOD==METHOD_UPDATE
- || _m->REQ_METHOD==METHOD_MESSAGE)) {
+ || _m->REQ_METHOD==METHOD_MESSAGE))) {
if(srealm.len!=uri->user.len
|| strncmp(srealm.s, uri->user.s, srealm.len)!=0)
return AUTH_USER_MISMATCH;