Hi Iñaki, 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.
So I really need to change the To Header, and this requirement is not related to routing the request, the routing is working perfectly. Best regards, Antonio Anderson Souza Voice Technology http://www.antonioams.com On Fri, May 28, 2010 at 11:37 AM, Iñaki Baz Castillo <i...@aliax.net> wrote: > 2010/5/28 Antonio Anderson Souza <anto...@voicetechnology.com.br>: > > Hi Bogdan, > > > > Which is the best way to check the dialplan output? Compare if input and > > output are equals after dp_translate [1], or dp_translate function > returns > > something [2]? > > > > [1] ----------------------------------------- > > if ( $avp(s:pre_to_id) != null ) { > > dp_translate("$avp(s:pre_to_id)", "$tU/$var(pre_to_user)") > > if ( $tU != $var(pre_to_user)) { > > Please, review RFC 3261 as "To" header is not important at all (it's > just documentation). Any OpenSIPS module changing the destination does > it by: > a) changing the request URI, so $ru $rU $rd $rp > b) changing the real destination URI, so $du $dU $dd $dp. > > The "To" header is NOT modified as a proxy/gateway just takes into > account the RURI. > > -- > Iñaki Baz Castillo > <i...@aliax.net> > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users