Hello Bogdan, I made some more tests, and I realized that:
After registering my softphone (Express Talk) with user and password correct, if I change the password with a wrong one, the softphone registers anyway to openser. But if I shutdown the softphone and I restart it with a wrong password, the registration is refused (error 401). So I am wandering whether it is a softphone problem or a bug into openser. I have this doubt, because changing the user with a non existent into db, softphone doesn't register to openser even avoiding to shutdown the softphone. What do you think? Thanks for your support... Alessandro ---------- Initial Header ----------- >From : "Bogdan-Andrei Iancu" [EMAIL PROTECTED] To : "[EMAIL PROTECTED]" [EMAIL PROTECTED] Cc : "users" [email protected] Date : Wed, 15 Mar 2006 11:22:39 +0200 Subject : Re: [Users] openser and authentication > 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 > > [EMAIL PROTECTED] 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:[EMAIL PROTECTED]/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 > >[email protected] > >http://openser.org/cgi-bin/mailman/listinfo/users > > > > > > > > _______________________________________________ Users mailing list [email protected] http://openser.org/cgi-bin/mailman/listinfo/users
