[SR-Users] Branches Routes

YASIN CANER caner_yaso at hotmail.com
Mon Feb 18 05:25:40 CET 2019


Hello Nicolas,

Why dont you use carrier route module to strip and add smth. you can choose your own routing logic depends on response code.

Best regards.

Yasin CANER

http://kamailio.org/docs/modules/5.2.x/modules/carrierroute.html

________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Nicolas Breuer <Nicolas.Breuer at belcenter.biz>
Sent: Sunday, February 17, 2019 1:00 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Branches Routes


Hi Ludovic,



Version of Kamailio is 5.1.7

Maybe with these few lines it can help ?





route[Out] {

## If first time in this route, go to first destination.



         $ru=$ru;

        route(RELAY);



}







failure_route[MANAGE_FAILURE] {

 if (t_branch_timeout () ){

                # Failure with that ID -> ID+1;

                route(Out);

                }

}





branch_route[MANAGE_BRANCH] {



###Get the IP-Address based on the ID of the next-hop and send the SIP message

$ru = "sip:" + $rU + "@" + $var(IpAddress) + ":5060";



}





De : sr-users <sr-users-bounces at lists.kamailio.org> De la part de Ludovic Gasc Lemaire
Envoyé : samedi 16 février 2019 23:35
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Objet : Re: [SR-Users] Branches Routes



Hi Nicolas,



What is the version of Kamailio you are using ?

Could you show us a piece of code to understand what are you doing ?



Kind regards.

--

Ludovic Gasc Lemaire (GMLudo)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190218/fe62a556/attachment.html>


More information about the sr-users mailing list