[SR-Users] Modifying $rU after lookup()

Iñaki Baz Castillo ibc at aliax.net
Tue Aug 9 17:30:03 CEST 2011


2011/8/9 Klaus Darilion <klaus.mailinglists at pernau.at>:
> I wouldn't call it a bug. It is a limitation of how sip-router works,
> probably a design decision from early SER days. To overcome this
> limitation and allow manipulation of all branches (not only the main
> branch), features like the branch route were added.
>
> Any maybe I only want to manipulate a single branch. IMO manipulating
> all branches is as buggy as manipulating just a single branch - it
> depends on what the user needs.

The behaviour is unexpected. Imagine you do lookup (which fetchs 2
contacts) and after that, still in route block, do setflag(1). Such
flag is set in branch_route for both generated branches. Why setting
the $rU in same circumstances should behave different?

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-users mailing list