<!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
# debug level (cmd line:
-dddddddddd)<BR>#fork=yes<BR>#log_stderror=no
# (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> </DIV>
<DIV><FONT face=Arial size=2>#Uncomment these lines to enter debugging
mode<BR>fork=no<BR>log_stderror=yes</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>check_via=no # (cmd. line:
-v)<BR>dns=no #
(cmd. line: -r)<BR>rev_dns=no # (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 # 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> </DIV>
<DIV># ------------------ module loading
----------------------------------</DIV>
<DIV> </DIV>
<DIV># Uncomment this if you want to use SQL database<BR>loadmodule
"/usr/local/lib/ser/modules/mysql.so"</DIV>
<DIV> </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> </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> </DIV>
<DIV># ----------------- setting module-specific parameters
---------------</DIV>
<DIV> </DIV>
<DIV># -- usrloc params --<BR>modparam("usrloc", "db_mode",
0)<BR>modparam("usrloc", "use_domain", 1)<BR>modparam("registrar", "use_domain",
1)</DIV>
<DIV> </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> </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> </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> </DIV>
<DIV><BR># ------------------------- request routing logic
-------------------</DIV>
<DIV> </DIV>
<DIV># main routing logic</DIV>
<DIV> </DIV>
<DIV>route{</DIV>
<DIV> </DIV>
<DIV> # initial sanity checks --
messages with<BR> # max_forwards==0,
or excessively long requests<BR> if
(!mf_process_maxfwd_header("10"))
{<BR>
sl_send_reply("483","Too Many
Hops");<BR>
break;<BR>
};<BR> if (msg:len >= max_len
)
{<BR>
sl_send_reply("513", "Message too
big");<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> # we record-route all messages
-- to make sure that<BR> # subsequent
messages will go through our proxy;
that's<BR> # particularly good if
upstream and downstream entities<BR> #
use different transport protocol<BR>
if (!method=="REGISTER") record_route();</DIV>
<DIV> </DIV>
<DIV> # subsequent messages withing a
dialog should take the<BR> # path
determined by record-routing<BR> if
(loose_route())
{<BR>
# mark routing logic in
request<BR>
append_hf("P-hint:
rr-enforced\r\n");<BR>
route(1);<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> if (!uri==myself)
{<BR>
# mark routing logic in
request<BR>
append_hf("P-hint:
outbound\r\n");<BR>
route(1);<BR>
break;<BR> }; # if the request
is for other domain use UsrLoc<BR> #
(in case, it does not work, use the following
command<BR> # with proper names and
addresses in it)<BR> #if (uri==myself)
{<BR> if (uri=~"^sip:(<A
href="mailto:.+@)?(192\.168\.1\.70|(sip\.)?server\.net)([:;\?].*)?$">.+@)?(192\.168\.1\.70|(sip\.)?server\.net)([:;\?].*)?$</A>"){</DIV>
<DIV> </DIV>
<DIV><BR>
if (method=="REGISTER") {</DIV>
<DIV> </DIV>
<DIV>
#log(1,"REGISTRAR BEGIN\n");<BR># Uncomment this if you want to use digest
authentication<BR>#
if (!www_authorize("iptel.org", "subscriber"))
{<BR>#
www_challenge("iptel.org",
"0");<BR>#
break;<BR>#
};<BR>
save("location");<BR>
#log(1,"REGISTRAR
END\n");<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV><BR>
if
(method=="SUBSCRIBE")<BR>
{</DIV>
<DIV> </DIV>
<DIV>
#log(1,"SUBSCRIBE
BEGIN\n");<BR>
if
(!t_newtran())<BR>
{<BR>
log(1, "newtran
error\n");<BR>
sl_reply_error();<BR>
};<BR>
handle_subscription("registrar");<BR>
#log(1,"SUBSCRIBE
END\n");<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV><BR>
lookup("aliases");<BR>
if (!uri==myself)
{<BR>
append_hf("P-hint: outbound
alias\r\n");<BR>
route(1);<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV>
# native SIP destinations are handled using our USRLOC
DB<BR>
if (!lookup("location"))
{<BR>
sl_send_reply("404", "Not
Found");<BR>
break;<BR>
};<BR>
};<BR> append_hf("P-hint: usrloc
applied\r\n");<BR>
route(1);<BR>}</DIV>
<DIV> </DIV>
<DIV>route[1]<BR>{<BR> # send it out
now; use stateful forwarding as it works
reliably<BR> # even for
UDP2TCP<BR> if (!t_relay())
{<BR>
sl_reply_error();<BR> };<BR>}</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2>i 'm connecting to SER, which running on
192.168.1.70 '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> </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> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>////////////////////////////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT face=Arial size=2>0(2945) SIP Request:<BR> 0(2945)
method: <REGISTER><BR> 0(2945)
uri: <sip:sip.server.net><BR> 0(2945)
version: <SIP/2.0><BR> 0(2945) parse_headers:
flags=2<BR> 0(2945) end of header reached, state=5<BR> 0(2945)
parse_headers: Via found, flags=2<BR> 0(2945) parse_headers: this is the
first via<BR> 0(2945) After parse_msg...<BR> 0(2945) preparing to
run routing scripts...<BR> 0(2945) parse_headers:
flags=100<BR> 0(2945) DEBUG:maxfwd:is_maxfwd_present: value =
70<BR> 0(2945) DBG:maxfwd:process_maxfwd_header: value 70 decreased to
16<BR> 0(2945) parse_headers: flags=200<BR> 0(2945) end of header
reached, state=9<BR> 0(2945) DEBUG: get_hdr_field: <To> [34];
uri=[sip:user1@sip.server.net]<BR> 0(2945) DEBUG: to body
[<sip:user1@sip.server.net>^M<BR>]<BR> 0(2945) get_hdr_field: cseq
<CSeq>: <1> <REGISTER><BR> 0(2945) DEBUG: get_hdr_body
: content_length=0<BR> 0(2945) found end of header<BR> 0(2945)
find_first_route: No Route headers found<BR> 0(2945) loose_route: There
is no Route HF<BR> 0(2945) grep_sock_info - checking if host==us: 18==18
&& [sip.server.net] == [sip.server.net]<BR> 0(2945)
grep_sock_info - checking if port 5060 matches port 5060<BR> 0(2945)
parse_headers: flags=ffffffffffffffff<BR> 0(2945) parse_headers:
flags=4000000<BR> 0(2945) build_contact(): Created Contact HF: Contact:
<sip:192.168.1.118:14310>;expires=3600^M<BR>0(2945) parse_headers:
flags=ffffffffffffffff<BR> 0(2945) check_via_address(192.168.1.118,
192.168.1.118, 0)<BR> 0(2945) DEBUG:destroy_avp_list: destroying list
(nil)<BR> 0(2945) receive_msg: cleaning up<BR> 0(2945) SIP
Request:<BR> 0(2945) method:
<SUBSCRIBE><BR> 0(2945) uri:
<sip:user2@sip.server.net><BR> 0(2945) version:
<SIP/2.0><BR> 0(2945) parse_headers: flags=2<BR> 0(2945) end
of header reached, state=5<BR> 0(2945) parse_headers: Via found,
flags=2<BR> 0(2945) parse_headers: this is the first via<BR> 0(2945)
After parse_msg...<BR> 0(2945) preparing to run routing
scripts...<BR> 0(2945) parse_headers: flags=100<BR> 0(2945)
DEBUG:maxfwd:is_maxfwd_present: value = 70<BR> 0(2945)
DBG:maxfwd:process_maxfwd_header: value 70 decreased to 16<BR> 0(2945)
parse_headers: flags=10<BR> 0(2945) DEBUG: add_param:
tag=963f17727b404c5ca92bd1ad97491e13<BR> 0(2945) DEBUG: add_param:
epid=db4638b430<BR> 0(2945) end of header reached,
state=29<BR> 0(2945) parse_headers: flags=200<BR> 0(2945) end of
header reached, state=9<BR> 0(2945) DEBUG: get_hdr_field: <To>
[33]; uri=[sip:user2@sip.server.net]<BR> 0(2945) DEBUG: to body
[<sip:user2@sip.server.net>^M<BR>]<BR> 0(2945) get_hdr_field: cseq
<CSeq>: <1> <SUBSCRIBE><BR> 0(2945) DEBUG: get_hdr_body
: content_length=0<BR> 0(2945) found end of header<BR> 0(2945)
find_first_route: No Route headers found<BR> 0(2945) loose_route: There
is no Route HF<BR> 0(2945) grep_sock_info - checking if host==us: 18==18
&& [sip.server.net] == [sip.server.net]<BR> 0(2945)
grep_sock_info - checking if port 5060 matches port 5060<BR> 0(2945)
DEBUG: t_newtran: msg id=2 , global msg id=0 , T on
entrance=0xffffffff<BR> 0(2945) parse_headers:
flags=ffffffffffffffff<BR> 0(2945) parse_headers:
flags=78<BR> 0(2945) t_lookup_request: start searching: hash=53801,
isACK=0<BR> 0(2945) DEBUG: proceeding to pre-RFC3261 transaction
matching<BR> 0(2945) DEBUG: t_lookup_request: no transaction
found<BR> 0(2945) handle_subscription() entered<BR> 0(2945)
parse_headers: flags=304010<BR> 0(2945) parse_hfs(): Error while parsing
headers<BR> 0(2945) handle_subscription(): Error while parsing message
header<BR> 0(2945) handle_subscription about to send_reply and return
-2<BR> 0(2945) DEBUG: t_check: msg id=2 global id=2 T
start=0x422efda0<BR> 0(2945) DEBUG: t_check: T already
found!<BR> 0(2945) parse_headers: flags=ffffffffffffffff<BR> 0(2945)
check_via_address(192.168.1.118, 192.168.1.118, 0)<BR> 0(2945) DEBUG:
cleanup_uac_timers: RETR/FR timers reset<BR> 0(2945) DEBUG:
add_to_tail_of_timer[2]: 0x422efde8<BR> 0(2945) DEBUG: reply sent out.
buf=0x8138d64: SIP/2.0 4..., shmem=0x422f13d8: SIP/2.0 4<BR> 0(2945)
DEBUG: _reply_light: finished<BR> 0(2945) DEBUG:destroy_avp_list:
destroying list (nil)<BR> 0(2945) receive_msg: cleaning
up<BR> 0(2945) SIP Request:<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>
<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>