<div class="gmail_quote">2009/11/2 Iñaki Baz Castillo <span dir="ltr"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">El Lunes, 2 de Noviembre de 2009, Alexander escribió:<br>
</div><div class="im">> > That's right. However I don't know why a proxy should remove the From<br>
> > display name. If you are routing the request to a PSTN gateway and you<br>
> > have UDP size issues then it's ok, but if not...<br>
><br>
> Yes, because of our gateway. For example, X-Lite inserts name to<br>
> "From", if number presents in address book and we get something<br>
> like "From: "person" <<a href="mailto:sip%3Axxx@domain.com">sip:xxx@domain.com</a>>". So, because of two reasons (we<br>
> are not interested in such info, and UDP size issue is critical) we<br>
> can chop it (in our case, but for somebody else it may be unacceptable).<br>
<br>
</div>It makes sense :)<br>
<div class="im"><br>
<br>
> > I didn't mean that. Instead I meant that your regular expression would<br>
> > work for the following From headers:<br>
> ><br>
> > subst("/^From: \".+\" (<sip: *[a-zA-Z0-9_\.-]+@.*>)/From: \1/ig");<br>
> ><br>
> > a) From: <a href="mailto:sip%3Aalice@domain.org">sip:alice@domain.org</a>;tag=qweqwe<br>
> > b) From:<<a href="mailto:sip%3Aalice@domain.org">sip:alice@domain.org</a>>;tag=qweqwe<br>
> > c) From: <sip:user;aaa=<a href="mailto:bbb@domain.org">bbb@domain.org</a>>;tag=qweqwe<br>
> > d) From: <tel:+12345678>;tag=qweqwe<br>
> ><br>
> > a) fails because it doesn't use < >.<br>
><br>
> It's ok, it doesn't contain person's name in quotation marks, which<br>
> should stand before "<". Nothing to chop.<br>
<br>
</div>Right. My fault.<br>
<div class="im"><br>
<br>
> > b) fails because there is no space between "From:" and SIP URI.<br>
><br>
> Almost as a) By the way, our gateway doesn't accept such "From"<br>
> headers. It doesn't like "<" and ">" signs, when there is no person name.<br>
<br>
</div>Doesn't it accept a correct header like "From:<br>
<<a href="mailto:sip%3Aalice@domain.org">sip:alice@domain.org</a>>;tag=qwe"?? It's widely even if it doesn't contain<br>
person name!<br></blockquote></div><br> Yes, it doesn't like that. If it sees angle braces and no person name in quotation marks - oops... :)<br> If we get something like:<br><br> From: <a href="mailto:sip%3Axxx@domain.com">sip:xxx@domain.com</a>;tag=1111<br>
<br> - it's ok, but in case of:<br><br> From: <<a href="mailto:sip%3Axxx@domain.com">sip:xxx@domain.com</a>>;tag=1111<br><br> - "no way, I can't handle that". Well, after we've figured out that it can't handle IP fragmentation it's not such a surprise :) Maybe, firmware update will be available soon, but for now there're some strange things :(<br>