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)


Le sam. 16 févr. 2019 à 23:17, Nicolas Breuer <Nicolas.Breuer@belcenter.biz> a écrit :

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)

  • Adding 000 in main route

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

  • Strip “000” in main route
  • Timeout of first provider (going to main route again with an other branch)

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)

 

  • Call OK

 

 

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

 

  • Timeout

 

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 ?

 

 

 

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