[OpenSIPS-Users] check_source_address not working in 1.9
spady
spady77 at gmail.com
Fri Apr 12 11:36:50 CEST 2013
Hi all, i am facing issue on using "check_source_address"
Opensips v. : OpenSIPS (1.9.0-notls (i386/linux))
Database entries:
mysql> select * from address;
+----+-----+---------------+------+------+-------+---------+--------------+
| id | grp | ip | mask | port | proto | pattern | context_info |
+----+-----+---------------+------+------+-------+---------+--------------+
| 6 | 0 | 10.9.6.3 | 24 | 0 | ANY | | |
| 5 | 0 | 172.16.55.201 | 24 | 0 | ANY | | |
+----+-----+---------------+------+------+-------+---------+--------------+
Subnet Dump:
root at opensips:./opensipsctl fifo subnet_dump
0 <0, 10.9.6.0, 255.255.255.0, 0>
1 <0, 172.16.55.0, 255.255.255.0, 0>
Address Relod log;
Apr 10 10:50:44 opensips
/usr/local/opensips_proxy_1.9.0/sbin/opensips[2812]:
DBG:permissions:reload_address_table: number of rows in address table: 2
Apr 10 10:50:44 opensips
/usr/local/opensips_proxy_1.9.0/sbin/opensips[2812]:
DBG:permissions:reload_address_table: Tuple <10.9.6.3, 0, 24, 0> inserted
into subnet table
Apr 10 10:50:44 opensips
/usr/local/opensips_proxy_1.9.0/sbin/opensips[2812]:
DBG:permissions:reload_address_table: Tuple <172.16.55.201, 0, 24, 0>
inserted into subnet table
Apr 10 10:50:44 opensips
/usr/local/opensips_proxy_1.9.0/sbin/opensips[2812]:
DBG:permissions:reload_address_table: address table reloaded successfully.
Call logs:
Apr 10 10:52:00 opensips
/usr/local/opensips_proxy_1.9.0/sbin/opensips[2819]:
DBG:permissions:check_src_addr_3: Looking for : <0, 172.16.55.201, 53109, 2>
in tables
Apr 10 10:52:00 opensips
/usr/local/opensips_proxy_1.9.0/sbin/opensips[2819]:
DBG:permissions:hash_match: no match in the hash table
Apr 10 10:52:00 opensips
/usr/local/opensips_proxy_1.9.0/sbin/opensips[2819]:
DBG:permissions:match_subnet_table: match found in the subnet table
Snippet of code:
if(!check_source_address("0")){
if (!proxy_authorize("", "subscriber")) {
proxy_challenge("", "0");
exit;
Any idea?
Regards
--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/check-source-address-not-working-in-1-9-tp7585808.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list