<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>El Miércoles, 4 de Marzo de 2009, Alex Balashov escribió:
&gt;<i> I&ntilde;aki Baz Castillo wrote:
</i>&gt;<i> &gt; El Miércoles, 4 de Marzo de 2009, alexander merkulov escribió:
</i>&gt;<i> &gt;&gt; is there any way to rewrite   To: field in kamailio
</i>&gt;<i> &gt;&gt; because now it nto work
</i>&gt;<i> &gt;
</i>&gt;<i> &gt; Could I know why you need to rewrite To header?
</i>&gt;<i> &gt; A proxy MUST NOT do it.
</i>&gt;<i>
</i>&gt;<i> That was the question I was going to ask.  It violates proxy behaviour.
</i>
Unfortunatelly a typical pathetic reply from a SIP carrier is "sorry but the 
To is different than the request URI, so it cannot work...".

-- 

I&ntilde;aki Baz Castillo
</pre>
<div class="moz-signature">-- <br>
<br>
I have same problem. When  kamailio recive INVITE , its change with
TEXTOPS header line "To". From "To:
<a class="moz-txt-link-rfc2396E" href="sip:034.........@aaa.bbb.ccc.ddd">&lt;sip:034.........@aaa.bbb.ccc.ddd&gt;</a>..." to "To:
<a class="moz-txt-link-rfc2396E" href="sip:38634.........@aaa.bbb.ccc.ddd">&lt;sip:38634.........@aaa.bbb.ccc.ddd&gt;</a>..." and send it to provider.<br>
When kamailio recive CANCEL, its send it without that changes and
provider send back "SIP/2.0 481 Call/Transaction Does Not Exist",
because header line "To" is not the same as was in message  "INVITE"<br>
<br>
BR<br>
<br>
Ernest<br>
<br>
<br>
<br>
</div>
</body>
</html>