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

Daniel-Constantin Mierla miconda at gmail.com
Thu Aug 4 12:01:45 CEST 2011


Hello,

I committed a patch to master branch in order to skip setting the 
dst_uri to next hop address for branch route, link to commit:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fb4ecbf986f4af366e5be9cbad26ceba924c77fd

It would be great if you can give it a try and let me know if all is ok. 
Then it will be safe to backport to 3.1.

Thanks,
Daniel

On 8/2/11 10:37 AM, Daniel-Constantin Mierla wrote:
>
>
> On 8/1/11 7:23 PM, Alex Hermann wrote:
>> On Monday 01 August 2011 19:00:36 Daniel-Constantin Mierla wrote:
>>>> 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.
>> I think it is in t_fwd.c : prepare_new_uac() around line 294
> thanks, indeed seems to be the case of setting $du to next hop, which 
> is $ru if $du was not set before. I will prepare a patch and maybe you 
> can help testing it.
>
> Cheers,
> Daniel
>

-- 
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