Hi!
Does $branch(name) also handle the "main branch" ($ru, $du) as a branch, or will it handle only the additional branches?
thanks klaus
Main branch is handled as well. Every call is a "branch" even without forking.
-- Sent from mobile device
On Jul 15, 2009, at 9:17 AM, Klaus Darilion <klaus.mailinglists@pernau.at
wrote:
Hi!
Does $branch(name) also handle the "main branch" ($ru, $du) as a branch, or will it handle only the additional branches?
thanks klaus
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 15.07.2009 15:24 Uhr, Alex Balashov wrote:
Main branch is handled as well. Every call is a "branch" even without forking.
this is tm branch terminology, but the $branch uses the core destination set structures, which are filled when new branches are added. It is a bit confusing and not consistent, but it is the way was built in the first place - main branch spreads across couple of fields in sip_msg structure while additional ones are stored in an array of dedicated structure in core, until tm creates the transaction and builds its branches.
Cheers, Daniel
-- Sent from mobile device
On Jul 15, 2009, at 9:17 AM, Klaus Darilion klaus.mailinglists@pernau.at wrote:
Hi!
Does $branch(name) also handle the "main branch" ($ru, $du) as a branch, or will it handle only the additional branches?
thanks klaus
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hello,
On 15.07.2009 15:17 Uhr, Klaus Darilion wrote:
Hi!
Does $branch(name) also handle the "main branch" ($ru, $du) as a branch, or will it handle only the additional branches?
only additional branches.
Cheers, Daniel
Really? Then why does a branch route get executed (if armed) even if no branches are appended?
-- Sent from mobile device
On Jul 15, 2009, at 9:24 AM, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 15.07.2009 15:17 Uhr, Klaus Darilion wrote:
Hi!
Does $branch(name) also handle the "main branch" ($ru, $du) as a branch, or will it handle only the additional branches?
only additional branches.
Cheers, Daniel
-- Daniel-Constantin Mierla http://www.asipto.com/
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 15.07.2009 15:25 Uhr, Alex Balashov wrote:
Really? Then why does a branch route get executed (if armed) even if no branches are appended?
see my previous email, there is a terminology conflict between the branches in core and tm. $branch PV provides access to the core array of destinations (branches), while you refer to TM branches and the branch route which is also tm specific.
So yes, branch route is called for each TM branch, which includes as first branch the r-uri, dst-uri, etc. from main route.
Cheers, Daniel
-- Sent from mobile device
On Jul 15, 2009, at 9:24 AM, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 15.07.2009 15:17 Uhr, Klaus Darilion wrote:
Hi!
Does $branch(name) also handle the "main branch" ($ru, $du) as a branch, or will it handle only the additional branches?
only additional branches.
Cheers, Daniel
-- Daniel-Constantin Mierla http://www.asipto.com/
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Thanks, I added it to sr and K docu-wiki
klaus
Daniel-Constantin Mierla schrieb:
On 15.07.2009 15:25 Uhr, Alex Balashov wrote:
Really? Then why does a branch route get executed (if armed) even if no branches are appended?
see my previous email, there is a terminology conflict between the branches in core and tm. $branch PV provides access to the core array of destinations (branches), while you refer to TM branches and the branch route which is also tm specific.
So yes, branch route is called for each TM branch, which includes as first branch the r-uri, dst-uri, etc. from main route.
Cheers, Daniel
-- Sent from mobile device
On Jul 15, 2009, at 9:24 AM, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 15.07.2009 15:17 Uhr, Klaus Darilion wrote:
Hi!
Does $branch(name) also handle the "main branch" ($ru, $du) as a branch, or will it handle only the additional branches?
only additional branches.
Cheers, Daniel
-- Daniel-Constantin Mierla http://www.asipto.com/
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users