[SR-Users] $rU isn't used in t_relay() in failure_route

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 21 16:59:28 CET 2011


Hello,

for the question of this thread it is important to know the version of 
kamailio used. In older versions, append_branch was called on purpose 
upon changes in failure route, in latest one, changes to routing URIs 
will be detected and a new branch is created by t_relay().

I do not know if latest lcr does internally append_branch(), but if it 
does and you change afterwards r-uri, then you will get two branches.


On 3/18/11 7:00 PM, Klaus Darilion wrote:
>
> Am 16.03.2011 21:09, schrieb Steven Wheeler:
>>   $rd=$dd;
>>   $rp=$dp;
>>   $du=$ru;
> This one I do not understand. Also I do not see the code where you
> change $dU?

$dX - is the pseudo-variable for internal destination uri field (or 
outbound proxy address) -- this will not be shown in the sip message at 
all. Since user part of a SIP URI has no relevance in the IP routing, 
$dU (which you may think it is the user part of dst uri) is not exported 
as PV.

Cheers,
Daniel

> Anyway, it seems that 2 branches are added: maybe one by lcr module
> internally via next_gw and one manually? You can try to change $dU
> before calling next_gw and omit the append_branch() call.
>
> regards
> klaus
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the sr-users mailing list