[Users] openser and authentication
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Mar 15 10:22:39 CET 2006
Hi Alessandro,
do you see any challenge from openser as a response to the REGISTER
requests? have you try the debug mode to get more info about what is
going one?
regards,
bogdan
buxalex at libero.it wrote:
>Hello,
>I am new with openser, and I am trying to figure out how to setup the openser.cfg.
>I've installed openser 1.1.0 with the db support. It works fine, infact I can register softphones and have calls. The softphones are correctly registered checking the username into Mysql db. I would like to check also the password, and maybe the phone number, so I tried to enter the following parameter:
>
>modparam("auth_db", "calculate_ha1", yes)
>modparam("auth_db", "password_column", "password")
>
>but it doesn't work, infact the softphones are anyway registered (it checks only the username). Did I missed something in my configuration?
>
>Thnaks a lot
>Alessandro
>
>PS. This is my openser.config (sorry for the long mail...):
>
># ----------- global configuration parameters --
>debug=3 # debug level (cmd line: -dddddddddd)
>fork=yes
>log_stderror=no # (cmd line: -E)
>check_via=no # (cmd. line: -v)
>dns=no # (cmd. line: -r)
>rev_dns=no # (cmd. line: -R)
>port=5060
>children=4
>fifo="/tmp/openser_fifo"
>
># ------------------ module loading
>loadmodule "/usr/local/lib/openser/modules/mysql.so"
>loadmodule "/usr/local/lib/openser/modules/sl.so"
>loadmodule "/usr/local/lib/openser/modules/tm.so"
>loadmodule "/usr/local/lib/openser/modules/rr.so"
>loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
>loadmodule "/usr/local/lib/openser/modules/usrloc.so"
>loadmodule "/usr/local/lib/openser/modules/registrar.so"
>loadmodule "/usr/local/lib/openser/modules/textops.so"
>loadmodule "/usr/local/lib/openser/modules/alias_db.so"
>
>loadmodule "/usr/local/lib/openser/modules/auth.so"
>loadmodule "/usr/local/lib/openser/modules/auth_db.so"
>
># ----------------- setting module-specific parameters -
>modparam("usrloc", "db_url", "mysql://openser:openser@localhost/openser")
>modparam("usrloc", "db_mode", 2)
>modparam("auth_db", "calculate_ha1", yes)
>modparam("auth_db", "password_column", "password")
>modparam("rr", "enable_full_lr", 1)
>......
>if (method=="REGISTER") {
>if (!www_authorize("161.27.53.93", "subscriber")) {
>www_challenge("161.27.53.93", "0");
>exit;
>};
>save("location");
>exit;
>};
>lookup("aliases");
>if (!uri==myself) {
>append_hf("P-hint: outbound alias\r\n");
>route(1);
>};
>......
>
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>
>
More information about the Users
mailing list