<!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&nbsp;see a strange parsing error in the logs.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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&nbsp; 1 13:39:04 testsrv200 
/usr/local/sbin/openser[577]: New request - M=REGISTER 
RURI=sip:server_public_ip_address F=&lt;null&gt; 
T=sip:apo@server_public_ip_address IP=ua_public_ip_address 
ID=NWYyZGNjMWRjYjFlNTk5YjlhMjE5ODA4MWQ0ZGFiNTY.<BR>Apr&nbsp; 1 13:39:04 
testsrv200 /usr/local/sbin/openser[577]: DEBUG:maxfwd:is_maxfwd_present: value = 
70<BR>Apr&nbsp; 1 13:39:04 testsrv200 /usr/local/sbin/openser[577]: 
parse_headers: flags=200<BR>Apr&nbsp; 1 13:39:04 testsrv200 
/usr/local/sbin/openser[577]: get_hdr_field: cseq &lt;CSeq&gt;: &lt;1&gt; 
&lt;REGISTER&gt;<BR>Apr&nbsp; 1 13:39:04 testsrv200 
/usr/local/sbin/openser[577]: DEBUG: get_hdr_body : 
content_length=0<BR>Apr&nbsp; 1 13:39:04 testsrv200 
/usr/local/sbin/openser[577]: found end of header<BR>Apr&nbsp; 1 13:39:04 
testsrv200 /usr/local/sbin/openser[577]: find_first_route: No Route headers 
found<BR>Apr&nbsp; 1 13:39:04 testsrv200 /usr/local/sbin/openser[577]: 
loose_route: There is no Route HF<BR>Apr&nbsp; 1 13:39:04 testsrv200 
/usr/local/sbin/openser[577]: parse_headers: flags=ffffffffffffffff<BR>Apr&nbsp; 
1 13:39:04 testsrv200 /usr/local/sbin/openser[577]: 
check_via_address(ua_public_ip_address, ua_public_ip_address, 0)<BR>Apr&nbsp; 1 
13:39:04 testsrv200 /usr/local/sbin/openser[577]: parse_headers: 
flags=4000<BR>Apr&nbsp; 1 13:39:04 testsrv200 /usr/local/sbin/openser[577]: 
pre_auth(): Credentials with given realm not found<BR>] in status 6: 
&lt;&lt;"apo"&lt;sip:apo@ua_public_ip_address;tag=5d692f7d&gt;&gt; . R: parse_to 
: unexpected char [<BR>Apr&nbsp; 1 13:39:05 testsrv200 
/usr/local/sbin/openser[577]: ERROR:parse_from_header: bad from 
header<BR>Apr&nbsp; 1 13:39:05 testsrv200 /usr/local/sbin/openser[577]: 
set_err_info: ec: 1, el: 3, ei: 'error parsing From'<BR>Apr&nbsp; 1 13:39:05 
testsrv200 /usr/local/sbin/openser[577]: xl_get_from_attr: ERROR cannot parse 
FROM header<BR>Apr&nbsp; 1 13:39:05 testsrv200 /usr/local/sbin/openser[577]: 
Register authentication failed - M=REGISTER RURI=sip:server_public_ip_address 
F=&lt;null&gt; T=sip:apo@server_public_ip_address IP=ua_public_ip_address 
ID=NWYyZGNjMWRjYjFlNTk5YjlhMjE5ODA4MWQ0ZGFiNTY.<BR>Apr&nbsp; 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&nbsp; 1 13:39:05 testsrv200 
/usr/local/sbin/openser[577]: parse_headers: flags=ffffffffffffffff<BR>Apr&nbsp; 
1 13:39:05 testsrv200 /usr/local/sbin/openser[577]: 
check_via_address(ua_public_ip_address, ua_public_ip_address, 0)<BR>Apr&nbsp; 1 
13:39:05 testsrv200 /usr/local/sbin/openser[577]: DEBUG:destroy_avp_list: 
destroying list (nil)<BR>Apr&nbsp; 1 13:39:05 testsrv200 
/usr/local/sbin/openser[577]: receive_msg: cleaning up<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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 -&gt; 
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: 
&lt;sip:apo@ua_public_ip_address:28443;rinstance=1ff3024a97431241&gt;.<BR>To: 
"apo"&lt;sip:apo@server_public_ip_address&gt;.<BR>From: 
"apo"&lt;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#<BR>U 192.168.200.2:5060 -&gt; 
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"&lt;sip:apo@server_public_ip_address&gt;.<BR>From: 
"apo"&lt;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#<BR>U 192.168.200.2:5060 -&gt; 
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"&lt;sip:apo@server_public_ip_address&gt;;tag=329cfeaa6ded039da25ff8cbb8668bd2.4f01.<BR>From: 
"apo"&lt;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_send_reply("100", "Trying");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(!www_authorize("server_public_ip_address", 
"subscriber"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
xlog("L_INFO", "Register authentication failed - M=$rm RURI=$ru F=$fu T=$tu 
IP=$si 
ID=$ci\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
www_challenge("server_public_ip_address", 
"0");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(!check_to())<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
xlog("L_INFO", "Spoofed To-URI detected - M=$rm RURI=$ru F=$fu T=$tu IP=$si 
ID=$ci\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_send_reply("403", "Spoofed To-URI 
Detected");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
consume_credentials();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(!search("^Contact:[ ]*\*") &amp;&amp; 
nat_uac_test("19"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
fix_nated_register();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
setbflag(6);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(!save("location"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
xlog("L_ERR", "Saving contact failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si 
ID=$ci\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_reply_error();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
xlog("L_INFO", "Registration successful - M=$rm RURI=$ru F=$fu T=$tu IP=$si 
ID=$ci\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></BODY></HTML>