<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial 
size=2>////////////////////////////////////////////////////////////////////////////////////////////////////////////////<BR>ser.cfg</FONT></DIV>
<DIV><FONT face=Arial 
size=2>/////////////////////////////////////////////////////////////////////////////<BR>debug=4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# debug level (cmd line: 
-dddddddddd)<BR>#fork=yes<BR>#log_stderror=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# (cmd line: -E)<BR>#memlog=5 # memory debug log 
level<BR>#log_facility=LOG_LOCAL0 # sets the facility used for logging (see 
syslog(3))</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#Uncomment these lines to enter debugging 
mode<BR>fork=no<BR>log_stderror=yes</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>check_via=no&nbsp;&nbsp;&nbsp; # (cmd. line: 
-v)<BR>dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
(cmd. line: -r)<BR>rev_dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: 
-R)<BR>port=5060<BR>children=4<BR>listen=sip.server.net<BR>listen=192.168.1.70<BR>fifo="/tmp/ser_fifo"<BR>#user=ser<BR>#group=ser<BR>#fifo_user=ser 
# owner of the ser fifo<BR>#fifo_group=ser<BR>#fifo_mode=0660 # fifo's 
permissions<BR>#disable_core=yes #disables core dumping<BR>#open_fd_limit=1024 # 
sets the open file descriptors limit<BR>#mhomed=yes&nbsp; # usefull for 
multihomed hosts, small performance 
penalty<BR>#disable_tcp=yes<BR>#tcp_accept_aliases=yes # accepts the tcp alias 
via option (see NEWS)</DIV>
<DIV>&nbsp;</DIV>
<DIV># ------------------ module loading 
----------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV># Uncomment this if you want to use SQL database<BR>loadmodule 
"/usr/local/lib/ser/modules/mysql.so"</DIV>
<DIV>&nbsp;</DIV>
<DIV>loadmodule "/usr/local/lib/ser/modules/sl.so"<BR>loadmodule 
"/usr/local/lib/ser/modules/tm.so"<BR>loadmodule 
"/usr/local/lib/ser/modules/rr.so"<BR>loadmodule 
"/usr/local/lib/ser/modules/maxfwd.so"<BR>loadmodule 
"/usr/local/lib/ser/modules/usrloc.so"<BR>loadmodule 
"/usr/local/lib/ser/modules/registrar.so"<BR>loadmodule 
"/usr/local/lib/ser/modules/textops.so"<BR>loadmodule 
"/usr/local/lib/ser/modules/pa.so"</DIV>
<DIV>&nbsp;</DIV>
<DIV># Uncomment this if you want digest authentication<BR># mysql.so must be 
loaded !<BR>#loadmodule "/usr/local/lib/ser/modules/auth.so"<BR>#loadmodule 
"/usr/local/lib/ser/modules/auth_db.so"</DIV>
<DIV>&nbsp;</DIV>
<DIV># ----------------- setting module-specific parameters 
---------------</DIV>
<DIV>&nbsp;</DIV>
<DIV># -- usrloc params --<BR>modparam("usrloc", "db_mode",&nbsp;&nbsp; 
0)<BR>modparam("usrloc", "use_domain", 1)<BR>modparam("registrar", "use_domain", 
1)</DIV>
<DIV>&nbsp;</DIV>
<DIV># Uncomment this if you want to use SQL database<BR># for persistent 
storage and comment the previous line<BR>#modparam("usrloc", "db_mode", 2)<BR># 
-- auth params --<BR># Uncomment if you are using auth 
module<BR>#<BR>#modparam("auth_db", "calculate_ha1", yes)<BR>#<BR># If you set 
"calculate_ha1" parameter to yes (which true in this config),<BR># uncomment 
also the following parameter)<BR>#<BR>#modparam("auth_db", "password_column", 
"password")</DIV>
<DIV>&nbsp;</DIV>
<DIV># -- rr params --<BR># add value to ;lr param to make some broken UAs 
happy<BR>modparam("rr", "enable_full_lr", 1)</DIV>
<DIV>&nbsp;</DIV>
<DIV>#-- pa params --<BR>modparam("pa", "pa_domain", 
"sip.server.net")<BR>modparam("pa", "db_url", 
"mysql://ser:heslo@localhost/ser")<BR>#modparam("pa", 
"default_expires",50)<BR>modparam("pa", "default_expires",3600)</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR># -------------------------&nbsp; request routing logic 
-------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV># main routing logic</DIV>
<DIV>&nbsp;</DIV>
<DIV>route{</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # initial sanity checks -- 
messages with<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # max_forwards==0, 
or excessively long requests<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!mf_process_maxfwd_header("10")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_send_reply("483","Too Many 
Hops");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (msg:len &gt;=&nbsp; max_len 

{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_send_reply("513", "Message too 
big");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # we record-route all messages 
-- to make sure that<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # subsequent 
messages will go through our proxy; 
that's<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # particularly good if 
upstream and downstream entities<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
use different transport protocol<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (!method=="REGISTER") record_route();</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # subsequent messages withing a 
dialog should take the<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # path 
determined by record-routing<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(loose_route()) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# mark routing logic in 
request<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
append_hf("P-hint: 
rr-enforced\r\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!uri==myself) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# mark routing logic in 
request<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
append_hf("P-hint: 
outbound\r\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };&nbsp; # if the request 
is for other domain use UsrLoc<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
(in case, it does not work, use the following 
command<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # with proper names and 
addresses in it)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #if (uri==myself) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (uri=~"^sip:(<A 
href="mailto:.+@)?(192\.168\.1\.70|(sip\.)?server\.net)([:;\?].*)?$">.+@)?(192\.168\.1\.70|(sip\.)?server\.net)([:;\?].*)?$</A>"){</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (method=="REGISTER") {</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
#log(1,"REGISTRAR BEGIN\n");<BR># Uncomment this if you want to use digest 
authentication<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (!www_authorize("iptel.org", "subscriber")) 
{<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
www_challenge("iptel.org", 
"0");<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# native SIP destinations are handled using our USRLOC 
DB<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (!lookup("location")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_send_reply("404", "Not 
Found");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_hf("P-hint: usrloc 
applied\r\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(1);<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>route[1]<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # send it out 
now; use stateful forwarding as it works 
reliably<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # even for 
UDP2TCP<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!t_relay()) 
{<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; };<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=mmouhiha@softiphone.net href="mailto:mmouhiha@softiphone.net">mma</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=serusers@lists.iptel.org 
  href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 09, 2005 10:10 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Serusers] parse_hfs(): Error 
  while parsing headers</DIV>
  <DIV><BR></DIV>
  <TABLE>
    <TBODY>
    <TR>
      <TD bgColor=#ffffff><FONT color=#000000>***********************<BR>Pas 
        de virus detecté dans l'attachement no filename<BR>Pas de virus detecté 
        dans l'attachement no filename<BR>Pas de virus detecté dans 
        l'attachement no filename<BR><BR>Votre Mail a été vérifié par 
        InterScan.<BR>***********-***********<BR><BR></FONT></TD></TR></TBODY></TABLE>
  <META content="MSHTML 6.00.2600.0" name=GENERATOR>
  <STYLE></STYLE>

  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>i 'm connecting to SER, which running on 
  192.168.1.70&nbsp; 'sip.server.net', using Windows Messenger </FONT></DIV>
  <DIV><FONT face=Arial size=2>i add user2 to my contact list</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV>
  <DIV><FONT face=Arial size=2>i have this errors in response to a SUBSCRIBE 
  request</FONT></DIV>
  <DIV><FONT size=2>
  <P><FONT face=Arial size=3>parse_hfs(): Error while parsing headers</FONT></P>
  <P></FONT><FONT face=Arial>handle_subscription(): Error while parsing message 
  header</FONT></P></DIV></DIV>
  <DIV><FONT face=Arial size=2>can somebody help me</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Regards</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial 
  size=2>////////////////////////////////////////////////////////////////////////////////</FONT></DIV>
  <DIV><FONT face=Arial size=2>0(2945) SIP Request:<BR>&nbsp;0(2945)&nbsp; 
  method:&nbsp; &lt;REGISTER&gt;<BR>&nbsp;0(2945)&nbsp; 
  uri:&nbsp;&nbsp;&nbsp;&nbsp; &lt;sip:sip.server.net&gt;<BR>&nbsp;0(2945)&nbsp; 
  version: &lt;SIP/2.0&gt;<BR>&nbsp;0(2945) parse_headers: 
  flags=2<BR>&nbsp;0(2945) end of header reached, state=5<BR>&nbsp;0(2945) 
  parse_headers: Via found, flags=2<BR>&nbsp;0(2945) parse_headers: this is the 
  first via<BR>&nbsp;0(2945) After parse_msg...<BR>&nbsp;0(2945) preparing to 
  run routing scripts...<BR>&nbsp;0(2945) parse_headers: 
  flags=100<BR>&nbsp;0(2945) DEBUG:maxfwd:is_maxfwd_present: value = 
  70<BR>&nbsp;0(2945) DBG:maxfwd:process_maxfwd_header: value 70 decreased to 
  16<BR>&nbsp;0(2945) parse_headers: flags=200<BR>&nbsp;0(2945) end of header 
  reached, state=9<BR>&nbsp;0(2945) DEBUG: get_hdr_field: &lt;To&gt; [34]; 
  uri=[sip:user1@sip.server.net]<BR>&nbsp;0(2945) DEBUG: to body 
  [&lt;sip:user1@sip.server.net&gt;^M<BR>]<BR>&nbsp;0(2945) get_hdr_field: cseq 
  &lt;CSeq&gt;: &lt;1&gt; &lt;REGISTER&gt;<BR>&nbsp;0(2945) DEBUG: get_hdr_body 
  : content_length=0<BR>&nbsp;0(2945) found end of header<BR>&nbsp;0(2945) 
  find_first_route: No Route headers found<BR>&nbsp;0(2945) loose_route: There 
  is no Route HF<BR>&nbsp;0(2945) grep_sock_info - checking if host==us: 18==18 
  &amp;&amp;&nbsp; [sip.server.net] == [sip.server.net]<BR>&nbsp;0(2945) 
  grep_sock_info - checking if port 5060 matches port 5060<BR>&nbsp;0(2945) 
  parse_headers: flags=ffffffffffffffff<BR>&nbsp;0(2945) parse_headers: 
  flags=4000000<BR>&nbsp;0(2945) build_contact(): Created Contact HF: Contact: 
  &lt;sip:192.168.1.118:14310&gt;;expires=3600^M<BR>0(2945) parse_headers: 
  flags=ffffffffffffffff<BR>&nbsp;0(2945) check_via_address(192.168.1.118, 
  192.168.1.118, 0)<BR>&nbsp;0(2945) DEBUG:destroy_avp_list: destroying list 
  (nil)<BR>&nbsp;0(2945) receive_msg: cleaning up<BR>&nbsp;0(2945) SIP 
  Request:<BR>&nbsp;0(2945)&nbsp; method:&nbsp; 
  &lt;SUBSCRIBE&gt;<BR>&nbsp;0(2945)&nbsp; uri:&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;sip:user2@sip.server.net&gt;<BR>&nbsp;0(2945)&nbsp; version: 
  &lt;SIP/2.0&gt;<BR>&nbsp;0(2945) parse_headers: flags=2<BR>&nbsp;0(2945) end 
  of header reached, state=5<BR>&nbsp;0(2945) parse_headers: Via found, 
  flags=2<BR>&nbsp;0(2945) parse_headers: this is the first via<BR>&nbsp;0(2945) 
  After parse_msg...<BR>&nbsp;0(2945) preparing to run routing 
  scripts...<BR>&nbsp;0(2945) parse_headers: flags=100<BR>&nbsp;0(2945) 
  DEBUG:maxfwd:is_maxfwd_present: value = 70<BR>&nbsp;0(2945) 
  DBG:maxfwd:process_maxfwd_header: value 70 decreased to 16<BR>&nbsp;0(2945) 
  parse_headers: flags=10<BR>&nbsp;0(2945) DEBUG: add_param: 
  tag=963f17727b404c5ca92bd1ad97491e13<BR>&nbsp;0(2945) DEBUG: add_param: 
  epid=db4638b430<BR>&nbsp;0(2945) end of header reached, 
  state=29<BR>&nbsp;0(2945) parse_headers: flags=200<BR>&nbsp;0(2945) end of 
  header reached, state=9<BR>&nbsp;0(2945) DEBUG: get_hdr_field: &lt;To&gt; 
  [33]; uri=[sip:user2@sip.server.net]<BR>&nbsp;0(2945) DEBUG: to body 
  [&lt;sip:user2@sip.server.net&gt;^M<BR>]<BR>&nbsp;0(2945) get_hdr_field: cseq 
  &lt;CSeq&gt;: &lt;1&gt; &lt;SUBSCRIBE&gt;<BR>&nbsp;0(2945) DEBUG: get_hdr_body 
  : content_length=0<BR>&nbsp;0(2945) found end of header<BR>&nbsp;0(2945) 
  find_first_route: No Route headers found<BR>&nbsp;0(2945) loose_route: There 
  is no Route HF<BR>&nbsp;0(2945) grep_sock_info - checking if host==us: 18==18 
  &amp;&amp;&nbsp; [sip.server.net] == [sip.server.net]<BR>&nbsp;0(2945) 
  grep_sock_info - checking if port 5060 matches port 5060<BR>&nbsp;0(2945) 
  DEBUG: t_newtran: msg id=2 , global msg id=0 , T on 
  entrance=0xffffffff<BR>&nbsp;0(2945) parse_headers: 
  flags=ffffffffffffffff<BR>&nbsp;0(2945) parse_headers: 
  flags=78<BR>&nbsp;0(2945) t_lookup_request: start searching: hash=53801, 
  isACK=0<BR>&nbsp;0(2945) DEBUG: proceeding to pre-RFC3261 transaction 
  matching<BR>&nbsp;0(2945) DEBUG: t_lookup_request: no transaction 
  found<BR>&nbsp;0(2945) handle_subscription() entered<BR>&nbsp;0(2945) 
  parse_headers: flags=304010<BR>&nbsp;0(2945) parse_hfs(): Error while parsing 
  headers<BR>&nbsp;0(2945) handle_subscription(): Error while parsing message 
  header<BR>&nbsp;0(2945) handle_subscription about to send_reply and return 
  -2<BR>&nbsp;0(2945) DEBUG: t_check: msg id=2 global id=2 T 
  start=0x422efda0<BR>&nbsp;0(2945) DEBUG: t_check: T already 
  found!<BR>&nbsp;0(2945) parse_headers: flags=ffffffffffffffff<BR>&nbsp;0(2945) 
  check_via_address(192.168.1.118, 192.168.1.118, 0)<BR>&nbsp;0(2945) DEBUG: 
  cleanup_uac_timers: RETR/FR timers reset<BR>&nbsp;0(2945) DEBUG: 
  add_to_tail_of_timer[2]: 0x422efde8<BR>&nbsp;0(2945) DEBUG: reply sent out. 
  buf=0x8138d64: SIP/2.0 4..., shmem=0x422f13d8: SIP/2.0 4<BR>&nbsp;0(2945) 
  DEBUG: _reply_light: finished<BR>&nbsp;0(2945) DEBUG:destroy_avp_list: 
  destroying list (nil)<BR>&nbsp;0(2945) receive_msg: cleaning 
  up<BR>&nbsp;0(2945) SIP Request:<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>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Serusers mailing 
  list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers<BR></BLOCKQUOTE></BODY></HTML>