Re: [OpenSIPS-Users] Creating branches inside a while loop

2022-10-11 Thread mayamatakeshi
Hi Bogdan, yes. It works. I am using it like this: *$var(idx) = 0;$var(aor) = $(var(aors){s.select,$var(idx),,});while($var(aor) != null) {if($var(idx) > 0) { append_branch();} seturi("sip:$var(aor)

Re: [OpenSIPS-Users] Creating branches inside a while loop

2022-10-11 Thread Bogdan-Andrei Iancu
Hi, and it works now, right? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 27-30 Sept 2022, Athens https://www.opensips.org/events/Summit-2022Athens/ On 10/11/22 10:29 AM, mayamatakeshi wrote: Hi Bogdan, indeed, I think I re

Re: [OpenSIPS-Users] Creating branches inside a while loop

2022-10-11 Thread mayamatakeshi
Hi Bogdan, indeed, I think I removed the append_branch() line by mistake when removing some debug lines I added to check function return code etc. Thanks, Takeshi On Mon, Oct 10, 2022 at 9:39 PM Bogdan-Andrei Iancu wrote: > Hi Takeshi, > > Aren't you missing the "seturi()" + "append_branch()" in

Re: [OpenSIPS-Users] Creating branches inside a while loop

2022-10-10 Thread Bogdan-Andrei Iancu
Hi Takeshi, Aren't you missing the "seturi()" + "append_branch()" in the loop ?? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 27-30 Sept 2022, Athens https://www.opensips.org/events/Summit-2022Athens/ On 9/28/22 4:26 PM, ma

[OpenSIPS-Users] Creating branches inside a while loop

2022-09-28 Thread mayamatakeshi
On Wed, Sep 28, 2022 at 2:21 PM mayamatakeshi wrote: > Hi, > I'm testing latest commit b243666098be44226ade6a7df2b62851efcb5de8 of > opensips-3.2. > > I tested adding branches to an INVITE for a fixed size list of AORs this > way: > > $var(aors) = "sip:us...@test1.com,sip:us...@test1.