Hello,

 

$ru=$ru; instead of add & strip solved the issue.

 

I suppose we have to “write” the Request URI to load or execute the routing branch.

 

 

De : Nicolas Breuer
Envoyé : samedi 16 février 2019 10:33
À : 'Kamailio (SER) - Users Mailing List' <sr-users@lists.kamailio.org>
Objet : Branches Routes

 

Hello,

 

We have a main route where we try multiple destinations (SIP Providers) one by one in case of failure.

We modify the $ru in branch routes.

 

I have to manipulate the $rU in the main route (adding 000 and strip 000) to create the second branch.

 

Otherwise I have an error in Kamailio , is it expected ??

 

 

Feb 16 10:29:13 proxy2 /usr/sbin/kamailio[3837]: NOTICE: RU => 0003280033800 (Branch 0)

Feb 16 10:29:13 proxy2 /usr/sbin/kamailio[3837]: NOTICE: RU => 3280033800 (Branch 0)

Feb 16 10:29:15 proxy2 /usr/sbin/kamailio[3840]: NOTICE: RU => 0003280033800 (Branch 1)

Feb 16 10:29:15 proxy2 /usr/sbin/kamailio[3840]: NOTICE: RU => 3280033800 (Branch 1)

 

 

 

I will now remove the prefix & strip command in main route

 

Feb 16 10:32:11 proxy2 /usr/sbin/kamailio[3951]: NOTICE: RU => 3280033800 (Branch 0)

Feb 16 10:32:11 proxy2 /usr/sbin/kamailio[3951]: NOTICE: RU => 3280033800 (Branch 0)

Feb 16 10:32:11 proxy2 /usr/sbin/kamailio[3951]: NOTICE: Branch to sip:3280033800@XXXXXXXXXXX

 

 

Feb 16 10:32:13 proxy2 /usr/sbin/kamailio[3955]: NOTICE: RU => 3280033800 (Branch 1)

Feb 16 10:32:13 proxy2 /usr/sbin/kamailio[3955]: NOTICE: RU => 3280033800 (Branch 1)

Feb 16 10:32:13 proxy2 /usr/sbin/kamailio[3955]: ERROR: tm [t_fwd.c:1728]: t_forward_nonack(): no branches for forwarding

Feb 16 10:32:13 proxy2 /usr/sbin/kamailio[3955]: ERROR: tm [tm.c:1548]: _w_t_relay_to(): t_forward_noack failed

Feb 16 10:32:13 proxy2 /usr/sbin/kamailio[3955]: ERROR: sl [sl_funcs.c:362]: sl_reply_error(): stateless error reply used: I'm terribly sorry, server error occurred (6/SL)

 

Any suggestions ?