[SR-Users] Issue with Dispatcher Failover algorithm
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jun 7 12:00:52 CEST 2017
Hello,
ok, good that it was sorted out and nothing broken inside dispatcher
module...
Cheers,
Daniel
On 07.06.17 07:50, Cristi Constantin wrote:
> 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
> <mailto:damm at sipgate.de>> wrote:
>
> Hi,
>
> On Thu, May 25, 2017 at 2:18 PM, Cristi Constantin
> <cristi.constantin at gmail.com <mailto: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 <mailto:sr-users at lists.kamailio.org>
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170607/c894c810/attachment.html>
More information about the sr-users
mailing list