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

Reply via email to