[OpenSIPS-Users] identify branch by name in minor_branch_flag
xaled
xaled at web.de
Mon May 22 11:15:54 EDT 2017
Hello Bogdan,
thanks!
Following question – are the branch indexes and settings shared between the route? Wont the minor branch setting in route[a] for branch alice affect the bob’s branch setting in route[b]
modparam("tm", "minor_branch_flag", 1)
route[a] {
append_branch("sip:alice at test.com");
setbflag(1,1);
}
route[b] {
append_branch("sip:bob at test.com");
append_branch("sip:carol at test.com");
setbflag(2,1);
}
Thanks,
xaled
From: Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
Sent: Montag, 22. Mai 2017 16:43
To: OpenSIPS users mailling list <users at lists.opensips.org>; xaled <xaled at web.de>
Subject: Re: [OpenSIPS-Users] identify branch by name in minor_branch_flag
Hello Xaled,
Any branch can be a minor branch, you just have to properly mark it via the branch flag you configured (via the minor_branch_flag param - see http://www.opensips.org/html/docs/modules/2.3.x/tm.html#idp5618944 )
You can set the corresponding branch flag via setbflag( www.opensips.org/Documentation/Script-CoreFunctions-2-3 <http://www.opensips.org/Documentation/Script-CoreFunctions-2-3> ) and check it via isbflagset(http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc22)
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Summit May 2017 Amsterdam
http://www.opensips.org/events/Summit-2017Amsterdam.html
On 05/20/2017 03:32 AM, xaled wrote:
Hi,
did I get it right that it is only possible to identify minor branches by index?
Using index I cannot have first branch to be minor in some scenarios and not minor in other.
It would be good to be able to identify multiple minor branches by names. Ether URI, or additional specific name parameter could be used for it.
Instead of:
modparam("tm", "minor_branch_flag", 1)
something like:
modparam("tm", "minor_branch_flag", “sip:alice at test.com”)
route[1]{
append_branch( <sip:alice at test.com> "sip:alice at test.com");
append_branch( <sip:bob at test.com> "sip:bob at test.com");
}
route[2]{
append_branch( <sip:bob at test.com> "sip:bob at test.com");
append_branch( <sip:alice at test.com> "sip:alice at test.com");
}
$T_branch_idx could be extended to $T_branch_name.
Thanks,
xaled
_______________________________________________
Users mailing list
Users at lists.opensips.org <mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170522/f4bc6ace/attachment.html>
More information about the Users
mailing list