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:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda