<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
When there is a space between sip: and the uri in the headers, I get a
core dump.<br>
I have patch my ser.cfg and it's ok now, but I think this is a bug,
even if the headers are incorrects.<br>
<br>
Olivier<br>
<br>
&nbsp;&nbsp;&nbsp; if (method =="REGISTER") <br>
&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp; &nbsp;&nbsp;&nbsp; if (search("^From: &lt;sip:[ ].*"))&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("L_NOTICE", "Bad From Header...Express Talk");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>
&nbsp;&nbsp;&nbsp; };<br>
solve the problem, but...<br>
<br>
<br>
<br>
REGISTER sip:brol.com SIP/2.0.<br>
Via: SIP/2.0/UDP xx.xx.148.109:63521;rport;branch=z9hG4bK422760.<br>
Max-Forwards: 20.<br>
To: &lt;<font color="#ff0000">sip: 990005180</font>@brol.com&gt;.<br>
From: &lt;sip: <a class="moz-txt-link-abbreviated" href="mailto:990005180@brol.com">990005180@brol.com</a>&gt;;tag=8312.<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:1151739691-2760-PHOTO@192.168.0.11">1151739691-2760-PHOTO@192.168.0.11</a>.<br>
CSeq: 39 REGISTER.<br>
Contact: &lt;sip: <a class="moz-txt-link-abbreviated" href="mailto:990005180@xx.xx.148.109:63521">990005180@xx.xx.148.109:63521</a>&gt;;expires=3600;q=0.90.<br>
User-Agent: Express Talk 1.04.<br>
Content-Length: 0.<br>
<br>
<br>
Jul&nbsp; 1 13:32:04 finalcut ser[44275]: ERROR: get_hdr_field: bad to header<br>
Jul&nbsp; 1 13:32:04 finalcut ser[44275]: find_first_route: Error while
parsing headers<br>
Jul&nbsp; 1 13:32:04 finalcut ser[44275]: ERROR: get_hdr_field: bad to header<br>
Jul&nbsp; 1 13:32:04 finalcut ser[44275]: ERROR:parse_from_header: bad msg
or missing FROM header<br>
Jul&nbsp; 1 13:32:05 finalcut kernel: pid 44275 (ser), uid 0: exited on
signal 11 (core dumped)<br>
<br>
</body>
</html>