<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I think that do_routing() returns false if no record was matched.
      Or do you have the empty prefix value that is matching everything.</p>
    <p>The keepalive feature was added in 5.1 (development version right
      now), so it should not be in the 5.0.x. If the docs say so, maybe
      it was a mistaken propagation with some other docs backports.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 20.06.17 22:39, Jean Cérien wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAL_ph0KZnyRWTMnpnZL5WAA88n5ZN4nbY9wWCb9t+G68ixd7Vw@mail.gmail.com">
      <div dir="ltr"><br>
        <div>Hello</div>
        <div>I am using Kamailio 5.0.2, with module drouting to do
          prefix based routing.</div>
        <div><br>
        </div>
        <div>1. When I call do_routing and the prefix is not known, the
          r-uri remains unchanged. Is there a way to detect that the
          prefix is unknown, other than r-uri remains unchanged ?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>2. I have the following parameters</div>
        <div>
          <div>modparam("drouting", "db_url",DBURL)</div>
          <div>modparam("drouting", "sort_order", 0)</div>
          <div>modparam("drouting", "use_domain", 0)</div>
          <div>modparam("drouting", "force_dns", 1)</div>
          <div># modparam("drouting", "enable_keepalive", 1)</div>
        </div>
        <div><br>
        </div>
        <div>If I enable keep alive, I get the following error: </div>
        <div>
          <div>Jun 20 22:37:17 kamailio1 kamailio: ERROR: <core>
            [core/modparam.c:141]: set_mod_param_regex(): parameter
            <enable_keepalive> of type <2> not found in
            module <drouting></div>
        </div>
        <div><br>
        </div>
        <div>yet, the documentation leads me to think that it should
          work:</div>
        <div><i>NOTE: this option is only compatible with <span
              style="color:red"><em>sort_order</em></span> 0
            currently. With sort_order value of 1 or 2, destinations
            status will simply be ignored.<br>
          </i></div>
        <div><br>
        </div>
        <div>Thanks for your help</div>
        <div><br>
        </div>
        <div>J.</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>