<br><font size=2 face="sans-serif">Hi</font>
<br><font size=2 face="sans-serif">&nbsp;</font>
<br><font size=2 face="sans-serif">We are facing problem using the authentication
module of SER.</font>
<br><font size=2 face="sans-serif">First we enabled the database to mysql
and set the db_mode in userloc to 2.</font>
<br><font size=2 face="sans-serif">Then we added a user through the serctl
add &lt;username&gt; &lt;password&gt; &lt;emailid&gt; </font>
<br>
<br><font size=2 face="sans-serif">Now, in the config file , we load the
auth moduel and the auth_db module, and try to authorize the REGISTER attempts
using www_authorize() procedure.</font>
<br><font size=2 face="sans-serif">But every time we are returned a message
that Authorisation failed.</font>
<br>
<br><font size=2 face="sans-serif">However if we remove teh authorisation
functionality from the config file, the subscriber is shown in the location
table of ser database.</font>
<br>
<br><font size=2 face="sans-serif">CAN ANYONE HELP ME IN UNDERSTANDING
WHAT IS HAPPENING, and How do i make the authorisation procedure work?</font>
<br>
<br>
<br><font size=2 face="sans-serif">3(27177) SIP Request:</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) &nbsp;method: &nbsp;&lt;REGISTER&gt;</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) &nbsp;uri: &nbsp; &nbsp;
&lt;sip:10.128.16.254&gt;</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) &nbsp;version: &lt;SIP/2.0&gt;</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) parse_headers: flags=1</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) Found param type 235,
&lt;rport&gt; = &lt;n/a&gt;; state=6</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) Found param type 232,
&lt;branch&gt; = &lt;z9hG4bK2DD03B6ACD9544A89ACF7C48EF87CEFB&gt;; state=16</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) end of header reached,
state=5</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) parse_headers: Via found,
flags=1</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) parse_headers: this is
the first via</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) After parse_msg...</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) preparing to run routing
scripts...</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) parse_headers: flags=128</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) end of header reached,
state=9</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) DEBUG: get_hdr_field:
&lt;To&gt; [35]; uri=[sip:rakesh@10.128.16.254] </font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) DEBUG: to body [rakesh
&lt;sip:rakesh@10.128.16.254&gt;</font>
<br><font size=2 face="sans-serif">]</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) get_hdr_field: cseq &lt;CSeq&gt;:
&lt;34836&gt; &lt;REGISTER&gt;</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) DEBUG:maxfwd:is_maxfwd_present:
value = 70 </font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) DBG:maxfwd:process_maxfwd_header:
value 70 decreased to 16</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) parse_headers: flags=256</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) DEBUG: get_hdr_body :
content_length=0</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) found end of header</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) find_first_route: No
Route headers found</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) loose_route: There is
no Route HF</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) grep_sock_info - checking
if host==us: 13==13 &amp;&amp; &nbsp;[10.128.16.254] == [10.128.16.254]</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) grep_sock_info - checking
if port 5060 matches port 5060</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) parse_headers: flags=-1</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) check_via_address(10.128.16.149,
10.128.16.149, 0)</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) check_nonce(): comparing
[46973120b5e52ab0043489c086504ae54af9d299] and [46973120b5e52ab0043489c086504ae54af9d299]</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) check_response(): Our
result = 'a20c4795c00787c796addb4fff02bc15'</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) <b>check_response():
Authorization failed</b></font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) build_auth_hf(): 'WWW-Authenticate:
Digest realm=&quot;10.128.16.254&quot;, nonce=&quot;46973120b5e52ab0043489c086504ae54af9d299&quot;</font>
<br><font size=2 face="sans-serif">'</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) parse_headers: flags=-1</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) check_via_address(10.128.16.149,
10.128.16.149, 0)</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) DEBUG:destroy_avp_list:
destroying list 0</font>
<br><font size=2 face="sans-serif">&nbsp;3(27177) receive_msg: cleaning
up</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">the config file used is attached with
the mail</font>
<br>
<br>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Wish I could get a solution asap...</font>
<br>
<br><font size=2 face="sans-serif">Thanks!</font>
<br><font size=2 face="sans-serif">Parminder Nayyar</font>