[SR-Users] Doubs about using append_branch ...

Raúl Alexis Betancor Santana rabs at dimension-virtual.com
Mon Jul 26 11:36:29 CEST 2010


On Monday 26 July 2010 10:15:47 Iñaki Baz Castillo wrote:
> El día 26 de julio de 2010 08:14, Raúl Alexis Betancor Santana
>
> <rabs at dimension-virtual.com> escribió:
> >> It might be more helpful to think of it as: execution continues right
> >> where it was in the request route, but a branch route is also later
> >> called right before the message is forwarded on the given branch, not
> >> in parallel, where certain branch-specific parameters can be tweaked
> >> at the last moment, or certain branch-specific actions taken.
> >
> > I don't undestand ... so ... execution continues in the next line, just
> > after append_branch for BOTH branches, but wenever I call t_relay ...
> > BOTH branches will pass through on_branch_route BEFORE been forwarded?
>
> When you call append_branch() or loockup() (and various contacts are
> retrieved) the cfg script continues normally. At this point its not a
> good idea to inspect the $ru neither $du or bflags as you would find
> values for just *one* of the loaded contacts/destinations. Which one?
> maybe the last element retrieved from the DB, no idea...
>
> So the cfg script continues. Then at some point you call t_relay (and
> you set on_branch_route("N") before). So you get into branch_route[N]
> block in which you process each generated destination in an
> independent way, so into this block you can inspect $ru, %du, bflags
> per destination.

Thanks for the explanation Iñaki, that give me a clue about some "strange" 
things I have .. XDD

Well .. time to review all .. :-\

-- 
Raúl Alexis Betancor Santana
Dimensión Virtual



More information about the sr-users mailing list