[OpenSIPS-Users] Permission module problem

Wesley Volcov wesleyvolcov at gmail.com
Wed Feb 10 14:52:24 CET 2010


Hello all,

I've got the follow problem. I'm using opensips 1.6.1-notls version.

First, see my script conf:

loadmodule "permissions.so"
modparam("permissions","db_url", "mysql://opensips:opensipsrw@localhost
/opensips")


if (check_address()) {
                        if (!proxy_authorize("","subscriber")) {
                                proxy_challenge("", "0");
                                exit;
                                consume_credentials();
                        }

When I execute opensips -c opensips.cfg I see this error:
Feb 10 11:38:25 [6242] DBG:core:find_cmd_export_t: <check_address> not found
Feb 10 11:38:25 [6242] DBG:core:find_cmd_export_t: <check_address> not found
Feb 10 11:38:25 [6242] CRITICAL:core:yyerror: parse error in config file,
line 210, column 27-28: unknown command <check_address>, missing loadmodule?

Am I missing some thing? The permissions module is module, and OpenSips
documentations says It doesn`t depend any other module.

I found in opensips documentation:
the following functions were introduced: *check_address()*, *
check_source_address()*, *get_source_group()* to replace *allow_address()*,
*allow_source_address()*, *allow_trusted()*

So, Isn't it on 1.6.1 version yet?

Regards,

-- 
Wesley Volcov
Email: wesleyvolcov at gmail.com
Messenger: volcov at live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100210/77ce2609/attachment.htm 


More information about the Users mailing list