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

Iñaki Baz Castillo ibc at aliax.net
Fri May 28 16:37:41 CEST 2010


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>



More information about the Users mailing list