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 <[email protected]> on behalf of Nicolas 
Breuer <[email protected]>
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 <[email protected]> De la part de Ludovic Gasc 
Lemaire
Envoyé : samedi 16 février 2019 23:35
À : Kamailio (SER) - Users Mailing List <[email protected]>
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)


_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to