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"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>></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 <<a href="mailto:antonio@voicetechnology.com.br">antonio@voicetechnology.com.br</a>>:<br>
<div class="im">> Hi Bogdan,<br>
><br>
> Which is the best way to check the dialplan output? Compare if input and<br>
> output are equals after dp_translate [1], or dp_translate function returns<br>
> something [2]?<br>
><br>
> [1] -----------------------------------------<br>
> if ( $avp(s:pre_to_id) != null ) {<br>
> dp_translate("$avp(s:pre_to_id)", "$tU/$var(pre_to_user)")<br>
> if ( $tU != $var(pre_to_user)) {<br>
<br>
</div>Please, review RFC 3261 as "To" header is not important at all (it'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 "To" 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>
<<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>><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>