Hi Iņaki,<br><br>I know RFC3261, and I know that To header is only informative, but in my application I need to replace the value of the To Header, due some specific requirements.<br><br>So I really need to change the To Header, and this requirement is not related to routing the request, the routing is working perfectly.<br>
<br>Best regards,<br><br clear="all">Antonio Anderson Souza<br>Voice Technology<br><a href="http://www.antonioams.com">http://www.antonioams.com</a><br>
<br><br><div class="gmail_quote">On Fri, May 28, 2010 at 11:37 AM, Iņaki Baz Castillo <span dir="ltr">&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/5/28 Antonio Anderson Souza &lt;<a href="mailto:antonio@voicetechnology.com.br">antonio@voicetechnology.com.br</a>&gt;:<br>
<div class="im">&gt; Hi Bogdan,<br>
&gt;<br>
&gt; Which is the best way to check the dialplan output? Compare if input and<br>
&gt; output are equals after dp_translate [1], or dp_translate function returns<br>
&gt; something [2]?<br>
&gt;<br>
&gt; [1] -----------------------------------------<br>
&gt;   if ( $avp(s:pre_to_id) != null ) {<br>
&gt;     dp_translate(&quot;$avp(s:pre_to_id)&quot;, &quot;$tU/$var(pre_to_user)&quot;)<br>
&gt;     if ( $tU != $var(pre_to_user)) {<br>
<br>
</div>Please, review RFC 3261 as &quot;To&quot; header is not important at all (it&#39;s<br>
just documentation). Any OpenSIPS module changing the destination does<br>
it by:<br>
a) changing the request URI, so $ru $rU $rd $rp<br>
b) changing the real destination URI, so $du $dU $dd $dp.<br>
<br>
The &quot;To&quot; header is NOT modified as a proxy/gateway just takes into<br>
account the RURI.<br>
<font color="#888888"><br>
--<br>
Iņaki Baz Castillo<br>
&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>