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

2010-07-26 Thread Iñaki Baz Castillo
El día 26 de julio de 2010 12:48, Raúl Alexis Betancor Santana escribió: >> To clarify: when you call t_on_branch("N") it means that *after* >> calling t_relay() the block branch_route[N] will be executed for >> *each* branch. >> So the position of t_on_branch() is not important (it must be before

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

2010-07-26 Thread Alex Balashov
On 07/26/2010 06:48 AM, Raúl Alexis Betancor Santana wrote: On Monday 26 July 2010 11:21:02 Iñaki Baz Castillo wrote: El día 26 de julio de 2010 07:20, Raúl Alexis Betancor Santana escribió: Umm ... again confused ... does the execution of the cfg continues AFTER the append_branch call,just

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

2010-07-26 Thread Raúl Alexis Betancor Santana
On Monday 26 July 2010 11:21:02 Iñaki Baz Castillo wrote: > El día 26 de julio de 2010 07:20, Raúl Alexis Betancor Santana > > escribió: > > Umm ... again confused ... does the execution of the cfg continues AFTER > > the append_branch call,just on the next line ... or it "begins" > > on "t_on_bra

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

2010-07-26 Thread Iñaki Baz Castillo
El día 26 de julio de 2010 07:20, Raúl Alexis Betancor Santana escribió: > Umm ... again confused ... does the execution of the cfg continues AFTER the > append_branch call,just on the next line ... or it "begins" > on "t_on_branch()"? To clarify: when you call t_on_branch("N") it means that *aft

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

2010-07-26 Thread Raúl Alexis Betancor Santana
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 > > 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 r

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

2010-07-26 Thread Iñaki Baz Castillo
El día 26 de julio de 2010 08:14, Raúl Alexis Betancor Santana 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 pa

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

2010-07-26 Thread Alex Balashov
On 07/26/2010 03:19 AM, Raúl Alexis Betancor Santana wrote: On Monday 26 July 2010 07:22:42 Alex Balashov wrote: On 07/26/2010 02:14 AM, Raúl Alexis Betancor Santana wrote: I don't undestand ... so ... execution continues in the next line, just after append_branch for BOTH branches, but wenever

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

2010-07-26 Thread Raúl Alexis Betancor Santana
On Monday 26 July 2010 07:22:42 Alex Balashov wrote: > On 07/26/2010 02:14 AM, Raúl Alexis Betancor Santana wrote: > > 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 throug

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

2010-07-25 Thread Alex Balashov
On 07/26/2010 02:14 AM, Raúl Alexis Betancor Santana wrote: 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? That's exactly correc

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

2010-07-25 Thread Raúl Alexis Betancor Santana
On Monday 26 July 2010 07:02:03 Alex Balashov wrote: > On 07/26/2010 01:59 AM, Raúl Alexis Betancor Santana wrote: > > On Monday 26 July 2010 06:21:56 Alex Balashov wrote: > >> On 07/26/2010 01:20 AM, Raúl Alexis Betancor Santana wrote: > >>> On Monday 26 July 2010 04:32:13 Iñaki Baz Castillo wrote

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

2010-07-25 Thread Alex Balashov
On 07/26/2010 01:59 AM, Raúl Alexis Betancor Santana wrote: On Monday 26 July 2010 06:21:56 Alex Balashov wrote: On 07/26/2010 01:20 AM, Raúl Alexis Betancor Santana wrote: On Monday 26 July 2010 04:32:13 Iñaki Baz Castillo wrote: El día 26 de julio de 2010 01:07, Raúl Alexis Betancor Santana

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

2010-07-25 Thread Raúl Alexis Betancor Santana
On Monday 26 July 2010 06:21:56 Alex Balashov wrote: > On 07/26/2010 01:20 AM, Raúl Alexis Betancor Santana wrote: > > On Monday 26 July 2010 04:32:13 Iñaki Baz Castillo wrote: > >> El día 26 de julio de 2010 01:07, Raúl Alexis Betancor Santana > >> > >> escribió: > >>> any clue or example about

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

2010-07-25 Thread Alex Balashov
On 07/26/2010 01:20 AM, Raúl Alexis Betancor Santana wrote: On Monday 26 July 2010 04:32:13 Iñaki Baz Castillo wrote: El día 26 de julio de 2010 01:07, Raúl Alexis Betancor Santana escribió: any clue or example about how to work with the new branch ONLY ? ... because branch 1 works ok, I nee

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

2010-07-25 Thread Raúl Alexis Betancor Santana
On Monday 26 July 2010 04:32:13 Iñaki Baz Castillo wrote: > El día 26 de julio de 2010 01:07, Raúl Alexis Betancor Santana > > escribió: > > any clue or example about how to work with the new branch ONLY ? ... > > because branch 1 works ok, I need to do changes only on branch 2 > > You must inspec

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

2010-07-25 Thread Alex Balashov
Yep, what I meant is what Iñaki said. -- Alex Balashov - Principal Evariste Systems LLC 1170 Peachtree Street 12th Floor, Suite 1200 Atlanta, GA 30309 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/ On Jul 25, 2010, at 11:32 PM, Iñaki Baz Castillo wrote: El día 26 d

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

2010-07-25 Thread Iñaki Baz Castillo
El día 26 de julio de 2010 01:07, Raúl Alexis Betancor Santana escribió: > any clue or example about how to work with the new branch ONLY ? ... because > branch 1 works ok, I need to do changes only on branch 2 You must inspect the $ru (or $du depending the case) in onbranch_route, and take the d

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

2010-07-25 Thread Alex Balashov
It sounds like what you need is to do branch-specific logic in a branch route: http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#branch_route Not all functions can be used in a branch route, but those that can be operate only on that branch. On 07/25/2010 07:07 PM, Raúl Alexis Bet