[SR-Users] $du gets set automatically before branch_route

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 1 19:00:36 CEST 2011


Hello,

On 8/1/11 5:57 PM, Alex Hermann wrote:
> Hello,
>
>
> while trying to upgrade from 1.5 to 3.1 i noticed that between t_relay() and
> branch_route, $du gets automatically set to $ru if it has not been set before.

have you spotted the code that does it? It should not happen like that, 
I see no reason for it, but it would be good to review it. Pointing in 
the sources will save some time of blind search here.


Cheers,
Daniel

>
>
> This is a change from 1.5 i could not find documentation for, so it might have
> been unintened.
>
> Can someone enlighten me on the purpose of this change and if there is a way
> to determine if $du is (was) unset other than comparing $ru to $du, wich seems
> a bit inefficient?
>
> Is it even guaranteed that $du gets set to $ru in every possible scenario?

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list