<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Alex Balashov pravi:
<blockquote cite="mid:4A828962.9010201@evaristesys.com" type="cite">Ernest
Mavrel wrote:
  <br>
  <br>
  <blockquote type="cite">El Miércoles, 4 de Marzo de 2009, Alex
Balashov escribió:
    <br>
    <blockquote type="cite">/ Iñaki Baz Castillo wrote:
      <br>
    </blockquote>
/&gt;/ &gt; El Miércoles, 4 de Marzo de 2009, alexander merkulov
escribió:
    <br>
/&gt;/ &gt;&gt; is there any way to rewrite   To: field in kamailio
    <br>
/&gt;/ &gt;&gt; because now it nto work
    <br>
/&gt;/ &gt;
    <br>
/&gt;/ &gt; Could I know why you need to rewrite To header?
    <br>
/&gt;/ &gt; A proxy MUST NOT do it.
    <br>
/&gt;/
    <br>
/&gt;/ That was the question I was going to ask.  It violates proxy
behaviour.
    <br>
/
    <br>
Unfortunatelly a typical pathetic reply from a SIP carrier is "sorry
but the To is different than the request URI, so it cannot work...".
    <br>
  </blockquote>
  <br>
This is not a "pathetic" reply.  This is an RFC-compliant reply.  A
user agent reasonably expects the To and From header values to match
those in the initial request.
  <br>
  <br>
Why do you need to rewrite the To URI?  The RFC says you shouldn't
route on it, but on the Request URI.  If you need to rewrite the To
URI, chances are you are doing something wrong or there is a better way
to accomplish the goal.
  <br>
  <br>
-- Alex
  <br>
  <br>
</blockquote>
<br>
<br>
<div class="moz-signature">I need to rewrite the To URI because of my
provider. He expected all numbers in e.164 format. Unfortunately some
users start calls in international format, some in national. I changed
R-URI, but provider also check line "To" in header. So I need to change
that line to.
<pre class="style1"><a href="mailto:ernest.mavrel@novatel.si"
 target="_blank" title="Ernest Mavrel - Novatel d.o.o."></a> </pre>
</div>
</body>
</html>