<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi all;</FONT></DIV>
<DIV><FONT face=Arial size=2>i'm trying to activate digest authentication with
mysql, but i see a strange parsing error in the logs.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>here is my logser log</FONT></DIV>
<DIV><FONT face=Arial size=2>==================</FONT></DIV>
<DIV><FONT face=Arial size=2>Apr 1 13:39:04 testsrv200
/usr/local/sbin/openser[577]: New request - M=REGISTER
RURI=sip:server_public_ip_address F=<null>
T=sip:apo@server_public_ip_address IP=ua_public_ip_address
ID=NWYyZGNjMWRjYjFlNTk5YjlhMjE5ODA4MWQ0ZGFiNTY.<BR>Apr 1 13:39:04
testsrv200 /usr/local/sbin/openser[577]: DEBUG:maxfwd:is_maxfwd_present: value =
70<BR>Apr 1 13:39:04 testsrv200 /usr/local/sbin/openser[577]:
parse_headers: flags=200<BR>Apr 1 13:39:04 testsrv200
/usr/local/sbin/openser[577]: get_hdr_field: cseq <CSeq>: <1>
<REGISTER><BR>Apr 1 13:39:04 testsrv200
/usr/local/sbin/openser[577]: DEBUG: get_hdr_body :
content_length=0<BR>Apr 1 13:39:04 testsrv200
/usr/local/sbin/openser[577]: found end of header<BR>Apr 1 13:39:04
testsrv200 /usr/local/sbin/openser[577]: find_first_route: No Route headers
found<BR>Apr 1 13:39:04 testsrv200 /usr/local/sbin/openser[577]:
loose_route: There is no Route HF<BR>Apr 1 13:39:04 testsrv200
/usr/local/sbin/openser[577]: parse_headers: flags=ffffffffffffffff<BR>Apr
1 13:39:04 testsrv200 /usr/local/sbin/openser[577]:
check_via_address(ua_public_ip_address, ua_public_ip_address, 0)<BR>Apr 1
13:39:04 testsrv200 /usr/local/sbin/openser[577]: parse_headers:
flags=4000<BR>Apr 1 13:39:04 testsrv200 /usr/local/sbin/openser[577]:
pre_auth(): Credentials with given realm not found<BR>] in status 6:
<<"apo"<sip:apo@ua_public_ip_address;tag=5d692f7d>> . R: parse_to
: unexpected char [<BR>Apr 1 13:39:05 testsrv200
/usr/local/sbin/openser[577]: ERROR:parse_from_header: bad from
header<BR>Apr 1 13:39:05 testsrv200 /usr/local/sbin/openser[577]:
set_err_info: ec: 1, el: 3, ei: 'error parsing From'<BR>Apr 1 13:39:05
testsrv200 /usr/local/sbin/openser[577]: xl_get_from_attr: ERROR cannot parse
FROM header<BR>Apr 1 13:39:05 testsrv200 /usr/local/sbin/openser[577]:
Register authentication failed - M=REGISTER RURI=sip:server_public_ip_address
F=<null> T=sip:apo@server_public_ip_address IP=ua_public_ip_address
ID=NWYyZGNjMWRjYjFlNTk5YjlhMjE5ODA4MWQ0ZGFiNTY.<BR>Apr 1 13:39:05
testsrv200 /usr/local/sbin/openser[577]: build_auth_hf(): 'WWW-Authenticate:
Digest realm="server_public_ip_address", nonce '
60f8cf5a7a5eb40c26f914280272b51f58caaa7"<BR>Apr 1 13:39:05 testsrv200
/usr/local/sbin/openser[577]: parse_headers: flags=ffffffffffffffff<BR>Apr
1 13:39:05 testsrv200 /usr/local/sbin/openser[577]:
check_via_address(ua_public_ip_address, ua_public_ip_address, 0)<BR>Apr 1
13:39:05 testsrv200 /usr/local/sbin/openser[577]: DEBUG:destroy_avp_list:
destroying list (nil)<BR>Apr 1 13:39:05 testsrv200
/usr/local/sbin/openser[577]: receive_msg: cleaning up<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and sip msg received at the server
side</FONT></DIV>
<DIV><FONT face=Arial size=2>==============================</FONT></DIV>
<DIV><FONT face=Arial size=2>U ua_public_ip_address:28443 ->
192.168.200.2:5060<BR>REGISTER sip:server_public_ip_address SIP/2.0.<BR>Via:
SIP/2.0/UDP
ua_public_ip_address:28443;branch=z9hG4bK-d87543-08523511e5151c18-1--d87543-;rport.<BR>Max-Forwards:
70.<BR>Contact:
<sip:apo@ua_public_ip_address:28443;rinstance=1ff3024a97431241>.<BR>To:
"apo"<sip:apo@server_public_ip_address>.<BR>From:
"apo"<sip:apo@ua_public_ip_address;tag=5d692f7d.<BR>Call-ID:
NWYyZGNjMWRjYjFlNTk5YjlhMjE5ODA4MWQ0ZGFiNTY..<BR>CSeq: 1 REGISTER.<BR>Expires:
3600.<BR>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO.<BR>User-Agent: X-Lite release 1006e stamp
34025.<BR>Content-Length: 0.<BR>.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>#<BR>U 192.168.200.2:5060 ->
ua_public_ip_address:28443<BR>SIP/2.0 100 Trying.<BR>Via: SIP/2.0/UDP
ua_public_ip_address:28443;branch=z9hG4bK-d87543-08523511e5151c18-1--d87543-;rport=28443.<BR>To:
"apo"<sip:apo@server_public_ip_address>.<BR>From:
"apo"<sip:apo@ua_public_ip_address;tag=5d692f7d.<BR>Call-ID:
NWYyZGNjMWRjYjFlNTk5YjlhMjE5ODA4MWQ0ZGFiNTY..<BR>CSeq: 1 REGISTER.<BR>Server:
OpenSER (1.2.0-notls (x86_64/linux)).<BR>Content-Length: 0.<BR>.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>#<BR>U 192.168.200.2:5060 ->
ua_public_ip_address:28443<BR>SIP/2.0 401 Unauthorized.<BR>Via: SIP/2.0/UDP
ua_public_ip_address:28443;branch=z9hG4bK-d87543-08523511e5151c18-1--d87543-;rport=28443.<BR>To:
"apo"<sip:apo@server_public_ip_address>;tag=329cfeaa6ded039da25ff8cbb8668bd2.4f01.<BR>From:
"apo"<sip:apo@ua_public_ip_address;tag=5d692f7d.<BR>Call-ID:
NWYyZGNjMWRjYjFlNTk5YjlhMjE5ODA4MWQ0ZGFiNTY..<BR>CSeq: 1
REGISTER.<BR>WWW-Authenticate: Digest realm="server_public_ip_address",
nonce="460f8cf5a7a5eb40c26f914280272b51f58caaa7".<BR>Server: OpenSER
(1.2.0-notls (x86_64/linux)).<BR>Content-Length: 0.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>openser.cfg file register section</FONT></DIV>
<DIV><FONT face=Arial
size=2>=======================================</FONT></DIV>
<DIV><FONT face=Arial size=2># Request route
'base-route-register'<BR>########################################################################<BR>route[2]<BR>{<BR>
sl_send_reply("100", "Trying");<BR>
if(!www_authorize("server_public_ip_address",
"subscriber"))<BR> {</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>
xlog("L_INFO", "Register authentication failed - M=$rm RURI=$ru F=$fu T=$tu
IP=$si
ID=$ci\n");<BR>
www_challenge("server_public_ip_address",
"0");<BR>
exit;<BR>
}<BR>
if(!check_to())<BR> {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
xlog("L_INFO", "Spoofed To-URI detected - M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci\n");<BR>
sl_send_reply("403", "Spoofed To-URI
Detected");<BR>
exit;<BR>
}<BR>
consume_credentials();<BR>
if(!search("^Contact:[ ]*\*") &&
nat_uac_test("19"))<BR>
{<BR>
fix_nated_register();<BR>
setbflag(6);<BR>
}<BR>
if(!save("location"))<BR>
{</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
xlog("L_ERR", "Saving contact failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci\n");<BR>
sl_reply_error();<BR>
exit;<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
xlog("L_INFO", "Registration successful - M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci\n");<BR> exit;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>