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. Now

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 "how-to

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

2020-01-22 Thread Ben Merrills
-users On Behalf Of Daniel-Constantin Mierla Sent: 22 January 2020 08:35 To: Kamailio (SER) - Users Mailing List ; George Diamantopoulos Subject: Re: [SR-Users] Implicit branch creation and private variables questions - (Second Post) Hello, a new branch is created every time a request is

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 t_rel

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

2020-01-21 Thread George Diamantopoulos
Hello all, Some keyboard shortcut resulted in gmail previously sending the message out before I had finished writing it, sorry about that. This is the complete message. I'm trying to accomplish the following scenario, and some questions have arisen during testing: I'd like to be able to fork seri

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 f

[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 over