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