Bugs item #1925738, was opened at 2008-03-26 04:13 Message generated for change (Comment added) made by miconda You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1925738&group_id=139143
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: modules Group: ver 1.3.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Cameron (kjcsb) >Assigned to: Daniel-Constantin Mierla (miconda) Summary: allow_trusted evaluates to false unexpectedly Initial Comment: I have the following permissions module setup: modparam("auth_db|permissions|uri_db|usrloc|domain|lcr", "db_url", "mysql://user:[EMAIL PROTECTED]/ser") modparam("permissions", "db_mode", 0) modparam("permissions", "trusted_table", "trusted") if (!is_uri_host_local()) { if (is_from_local() || allow_trusted() ) { route(5); route(1); } else { sl_send_reply("403", "Forbidden"); xlog("403 in call type processing. rs $rs si $si rm $rm ru $ru tu $tu fu $fu fd $fd rr $rr"); }; return; }; When an invite is received the calls is rejected with a 403 and “403 in call type processing” is written to the log file. So allow_trusted must be evaluating to false I can see from the log that the following query is executed: 13 Query select proto,from_pattern,tag from trusted where src_ip='202.180.001.001' When I execute this query directly on the database it returns: +-------+--------------+------+ | proto | from_pattern | tag | +-------+--------------+------+ | any | NULL | NULL | +-------+--------------+------+ 1 row in set (0.00 sec) Could anyone advise what I’ve done wrong? OpenSER1.3.1 ---------------------------------------------------------------------- >Comment By: Daniel-Constantin Mierla (miconda) Date: 2008-05-03 23:38 Message: Logged In: YES user_id=1246013 Originator: NO Are you sure that is the query sent by openser? I do not recognize the form of the IP address used in query. openser should set the ip address as '202.180.1.1', should not add '00' in front of the last two '1'-es in the ip address. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1925738&group_id=139143 _______________________________________________ Devel mailing list Devel@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/devel