El Wednesday 17 October 2007 14:24:46 Andreas Granig escribió:
> You want to avoid to copy&paste redundant code in your branch-route,
> right? So the following snipped should do the same as if you were able
> to execute branch_route[1] after branch_route[3]:
>
> route
> {
> if(/* initial invite */)
> t_on_branch("3");
> else
> t_on_branch("1");
>
> // ...
> }
>
> // your branch-route helper
> route[20]
> {
> // some code executed by both branch routes
> }
>
> // broute for common requests
> branch_route[1]
> {
> route(20);
> }
>
> // broute for initial invites
> branch_route[3]
> {
> // some branch-specific stuff here, then:
>
> route(20);
> }
Ok, thanks. Just lem me insist on a question to be sure:
If a "route[X]" is called from a "branch_route[Y]" then in that "route[X]" is
just processed each separate branch and not all together as in main route, is
it?
Thanks.
--
Iñaki Baz Castillo
[EMAIL PROTECTED]
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users