Here you go, Yes we are storing password in clear text, Everything works! authentication, calling etc.. Only issue is if i check on siptrace it is sending 500 Error, Don't know who is generating it.
if (is_method("REGISTER")) { $var(auth_code) = www_authorize("", "subscriber"); if ( $var(auth_code) == -1 || $var(auth_code) == -2 ) { xlog("L_NOTICE","Auth error for $fU@$fd from $si cause $var(auth_code)"); } if ( $var(auth_code) < 0 ) { www_challenge("", "0"); exit; } if (!db_check_to()) { xlog("L_INFO", "Spoofed To-URI detected - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_send_reply("403","Forbidden auth ID"); exit; } if ( 0 ) setflag(TCP_PERSISTENT); if (!save("location")) xlog("L_ERR", "Saving contact failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_reply_error(); exit; } Here is the subscriber table entry: mysql> select * from subscriber; +----+----------+-------------------+----------+---------------+----------------------------------+----------------------------------+------+-------+ | id | username | domain | password | email_address | ha1 | ha1b | rpid | quota | +----+----------+-------------------+----------+---------------+----------------------------------+----------------------------------+------+-------+ | 53 | 1001 | sip.example.com | ty%^#Fg8 | | 7a38833eb31f51e2596aeb1e2fb7d94d | 2f39eaec251f1fab847a4ff7ee01765d | | 1 | On Tue, Mar 17, 2015 at 11:08 AM, Terrance Devor <ter.de...@gmail.com> wrote: > Hello Satish, > > I'm not a developer, but could you post your is_method("REGISTER") for the > authentication block? Also post one of the entries in the Subscriber > table. Are > you using clear text password or encrypted? > > Please look at: > http://www.techsupportalert.com/content/how-ask-question-when-you-want-technical-help.htm > > Terrance. > > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users