[OpenSIPS-Users] UAC and Dialplan mixing Informations between transactions

Antonio Anderson Souza antonio at voicetechnology.com.br
Fri May 28 16:47:14 CEST 2010


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 <ibc at aliax.net> wrote:

> 2010/5/28 Antonio Anderson Souza <antonio at 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
> <ibc at aliax.net>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100528/b65e2faa/attachment-0001.htm 


More information about the Users mailing list