[OpenSIPS-Users] Permission module problem

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Feb 10 14:55:44 CET 2010


Hi Wesley,

The number of parameters is not correct, See:
    
http://www.opensips.org/html/docs/modules/devel/permissions.html#id271903

Regards,
Bogdan

Wesley Volcov wrote:
> 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 <mailto:wesleyvolcov at gmail.com>
> Messenger: volcov at live.com <mailto:volcov at live.com>
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list