[SR-Users] Branches Routes

Nicolas Breuer Nicolas.Breuer at belcenter.biz
Sat Feb 16 23:16:06 CET 2019


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 at 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 at 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 ?



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


More information about the sr-users mailing list