[SR-Users] Issue with Dispatcher Failover algorithm

Cristi Constantin cristi.constantin at gmail.com
Wed Jun 7 07:50:28 CEST 2017


Hello Sebastian, Daniel,

Please excuse me for the late response, I had few days off.

You are right, Sebastian. After adding several log messages, I figured out
the messages were dispatched in other part of the routing code.
The problem is fixed now and the dispatcher failover mechanism is working
as expected.

Thank you very much,
Cristian

On Wed, May 31, 2017 at 5:20 PM, Sebastian Damm <damm at sipgate.de> wrote:

> Hi,
>
> On Thu, May 25, 2017 at 2:18 PM, Cristi Constantin
> <cristi.constantin at gmail.com> wrote:
> >       if (ds_is_from_list(7, 3, "$ru")) {
> >           remove_hf("Route");
> >           if(!ds_select_dst("7", "8")) {
> >             send_reply("404", "No destination");
> >             exit;
> >           }
> >       }
>
> I might be off, but what exactly is this line good for?
>
> >       if (ds_is_from_list(7, 3, "$ru")) {
>
> As I understand the documentation, you are checking whether the
> request URI of your packet is in the dispatcher set for group 7. But
> unless you modify $ru somewhere above this snippet to match one of the
> entries of your dispatcher set 7, this if statement should never
> evaluate to "true", so the ds_select_dst("7", "8") is never evaluated.
>
> Maybe your call gets dispatched by some other part of your main route?
>
> Regards,
> Sebastian
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170607/690ba2a8/attachment.html>


More information about the sr-users mailing list