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

Alex Hermann alex at speakup.nl
Tue Aug 9 17:41:28 CEST 2011


On Tuesday 09 August 2011, Iñaki Baz Castillo wrote:
> 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?

Flags are related to the whole transaction, so being able to see them on all 
branches is expected. Use branch_flags if you want to set them per branch.

$rU is related to the 'main' branch in request_route. There is no way to set 
the request uri for all branches in a transaction.
-- 
Greetings,

Alex Hermann




More information about the sr-users mailing list