Re: [SR-Users] Implicit branch creation and private variables questions - (Second Post)

2020-01-24 Thread George Diamantopoulos
To anyone reading this in the future: Point 2 in my original post is completely misleading: > If there are two destinations in the destination group for first_provider, > and the first one fails, then the second destination will be tried out in > tm:branch-failure:DISPATCH_FIRST_PROV_FAILOVER.

Re: [SR-Users] Implicit branch creation and private variables questions - (Second Post)

2020-01-22 Thread George Diamantopoulos
Hello Daniel, Thanks for the input. That clears it up. @Ben Merrills: Glad to hear my rants are useful to other people as well :-). Branches are indeed among the more complicated concepts in kamailio scripting. I've always found resources that explain how things work much more useful than

Re: [SR-Users] Implicit branch creation and private variables questions - (Second Post)

2020-01-22 Thread Daniel-Constantin Mierla
Hello, a new branch is created every time a request is sent out to a new destination or resent to same destination after additional processing in a failure route. append_branch() should not be needed, unless you want to create more branches for parallel forking. Updating $ru or $du and doing

Re: [SR-Users] Implicit branch creation and private variables questions

2020-01-21 Thread Alex Balashov
I would put these in an $xavp array and iterate through them in a failure_route. On Tue, Jan 21, 2020 at 11:09:51PM +0200, George Diamantopoulos wrote: > Hello all, > > I'm trying to accomplish the following scenario, and some questions have > been raised during testing: I'd like to be able to

[SR-Users] Implicit branch creation and private variables questions

2020-01-21 Thread George Diamantopoulos
Hello all, I'm trying to accomplish the following scenario, and some questions have been raised during testing: I'd like to be able to fork serially to a number of downstream destinations in case of failure, but also try several hosts which are available per destination network before failing