im using dns failover with tm module. i set parameter reparse_on_dns_failover to 0 so that branch_route is called .
but when trying next peer of dns failover initial transaction branch_route is not called.
do i missing something ?
for the first peer branch_route is called and the peer timeout so kamailio tries next peer but branch_route is not called !.
do i need again to set branch_route in failure_route ?
Thanks for help.
On Jul 1, 2022, at 10:23 AM, Patrick Karton patrickarton@hotmail.com wrote:
do i need again to set branch_route in failure_route ?
Short answer: yes.
Thanks for reply but its not possible to set branch_route in failover_route for dns failover.
the branch is sent before the failure_route.
i will keep reparse_on_dns_failover to 1 that solves partially . ________________________________ De : sr-users sr-users-bounces@lists.kamailio.org de la part de Alex Balashov abalashov@evaristesys.com Envoyé : vendredi 1 juillet 2022 20:01 À : Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Objet : Re: [SR-Users] branch_route not called on DNS failover
On Jul 1, 2022, at 10:23 AM, Patrick Karton patrickarton@hotmail.com wrote:
do i need again to set branch_route in failure_route ?
Short answer: yes.
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
From config processing point of view, there is only one branch set for
going out to the target domain.
If the dns query returns more than one address, that's not due to config operations adding the branches, thus branch route is not executed. Logically, it is a single target, it is supposed to be the "same" system from kamailio routing point of view.
Obviously, it is open source and one can code new feature and add an option to execute config routing blocks on various cases, including on dns-based re-routing. But as it was designed in the past, branch_route is executed only on branches resulted from config processing, not from dns query.
As you could notice, in the branch route the r-uri has the domain in its value, the dns is done later, when about to send to the network.
But then, there is onsend_route executed after dns is done, but there is no option to change the message anymore.
Cheers, Daniel
On 02.07.22 00:03, Patrick Karton wrote:
Thanks for reply but its not possible to set branch_route in failover_route for dns failover.
the branch is sent before the failure_route.
i will keep reparse_on_dns_failover to 1 that solves partially .
*De :* sr-users sr-users-bounces@lists.kamailio.org de la part de Alex Balashov abalashov@evaristesys.com *Envoyé :* vendredi 1 juillet 2022 20:01 *À :* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Objet :* Re: [SR-Users] branch_route not called on DNS failover
On Jul 1, 2022, at 10:23 AM, Patrick Karton
patrickarton@hotmail.com wrote:
do i need again to set branch_route in failure_route ?
Short answer: yes.
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
On Jul 5, 2022, at 7:44 AM, Daniel-Constantin Mierla miconda@gmail.com wrote:
As you could notice, in the branch route the r-uri has the domain in its value, the dns is done later, when about to send to the network.
Ahhh. This is insightful. Thank you for clarifying this behaviour.