<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Everyone,<br>
    </p>
    <p>Some documentation is mismatching in auth and_db modules, can
      figure out what correct way <br>
    </p>
    <p><font face="Cantarell">[root@dev1-msg scripts]# opensips -c -f
        /etc/opensips/opensips.cfg<br>
        Mar 20 14:12:44 [25882] Traceback (last included file at the
        bottom):<br>
        Mar 20 14:12:44 [25882]  0. /etc/opensips/opensips.cfg<br>
        Mar 20 14:12:44 [25882] CRITICAL:core:yyerror: parse error in
        /etc/opensips/opensips.cfg:417:2-4: syntax error<br>
        Mar 20 14:12:44 [25882]     }<br>
        Mar 20 14:12:44 [25882] <br>
        Mar 20 14:12:44 [25882]     if(!db_is_to_authorized("uri")) {<br>
        Mar 20 14:12:44 [25882]     ^~~<br>
        Mar 20 14:12:44 [25882]         send_reply("403","Forbidden auth
        ID");<br>
        Mar 20 14:12:44 [25882]         exit;<br>
        Mar 20 14:12:44 [25882] CRITICAL:core:yyerror: parse error in
        /etc/opensips/opensips.cfg:417:2-4: <br>
        Mar 20 14:12:44 [25882] ERROR:core:parse_opensips_cfg: bad
        config file (2 errors)<br>
        Mar 20 14:12:44 [25882] ERROR:core:main: failed to parse config
        file /etc/opensips/opensips.cfg</font></p>
    <p><font face="Cantarell"><br>
      </font></p>
    <p><font face="Cantarell">route[HANDLE_REGISTER] {<br>
            # authenticate the REGISTER requests<br>
            if(!www_authorize("$rd", "subscriber")) <br>
                www_challenge("$rd", "auth");<br>
                exit;<br>
            }<br>
        <br>
            if(!db_is_to_authorized("uri")) {<br>
                send_reply("403","Forbidden auth ID");<br>
                exit;<br>
            }<br>
        <br>
            if(!save("location"))<br>
                sl_reply_error();<br>
            exit;<br>
        }<br>
        <br>
      </font></p>
    <p><font face="Cantarell"><br>
      </font></p>
    <p><font face="Cantarell"><br>
      </font></p>
    <p><font face="Cantarell">volga629</font><br>
    </p>
    <div class="moz-cite-prefix">On 3/20/20 9:11 AM, volga629 via Users
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:30d0972d-182c-4ea1-5aa1-aa35af1a0da7@skillsearch.ca">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><font face="Cantarell">Hello Everyone,</font></p>
      <p><font face="Cantarell">I am trying migrate to 3.0 and I want
          keep db_is_from_authorized("uri");, but can't understand where
          need set </font><strong style="color: rgb(102, 102, 102);
          font-family: "Trebuchet MS", sans-serif, Verdana,
          Arial; font-size: 13.008px; font-style: normal;
          font-variant-ligatures: normal; font-variant-caps: normal;
          letter-spacing: normal; orphans: 2; text-align: left;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
          background-color: rgb(255, 255, 255); text-decoration-style:
          initial; text-decoration-color: initial;">use_uri_table</strong></p>
      <p><br>
      </p>
      <p>based on migration doc</p>
      <p><span style="color: rgb(102, 102, 102); font-family:
          "Trebuchet MS", sans-serif, Verdana, Arial;
          font-size: 13.008px; font-style: normal;
          font-variant-ligatures: normal; font-variant-caps: normal;
          font-weight: 400; letter-spacing: normal; orphans: 2;
          text-align: left; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; background-color: rgb(255,
          255, 255); text-decoration-style: initial;
          text-decoration-color: initial; display: inline !important;
          float: none;">function<span> </span></span><a class="urllink"
href="http://www.opensips.org/html/docs/modules/2.4.x/uri.html#func_db_check_from"
          rel="nofollow" style="font-family: "Trebuchet MS",
          sans-serif, Verdana, Arial; color: rgb(24, 86, 98);
          font-weight: bold; text-decoration: none; width: 100px;
          font-size: 13.008px; font-style: normal;
          font-variant-ligatures: normal; font-variant-caps: normal;
          letter-spacing: normal; orphans: 2; text-align: left;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
          background-color: rgb(255, 255, 255);" moz-do-not-send="true">db_check_from()</a><span
          style="color: rgb(102, 102, 102); font-family: "Trebuchet
          MS", sans-serif, Verdana, Arial; font-size: 13.008px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; orphans: 2; text-align: left; text-indent: 0px;
          text-transform: none; white-space: normal; widows: 2;
          word-spacing: 0px; -webkit-text-stroke-width: 0px;
          background-color: rgb(255, 255, 255); text-decoration-style:
          initial; text-decoration-color: initial; display: inline
          !important; float: none;"><span> </span>was replaced by the
          AUTH_DB module with:</span></p>
      <ul style="margin-top: 0px; margin-bottom: 0px; color: rgb(102,
        102, 102); font-family: "Trebuchet MS", sans-serif,
        Verdana, Arial; font-size: 13.008px; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: left; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
        255); text-decoration-style: initial; text-decoration-color:
        initial;">
        <li>if<span> </span><strong>use_uri_table</strong><span> </span>was
          set, use<span> </span><a class="urllink"
href="http://www.opensips.org/html/docs/modules/3.0.x/auth_db.html#func_db_is_from_authorized"
            rel="nofollow" style="font-family: "Trebuchet MS",
            sans-serif, Verdana, Arial; color: rgb(24, 86, 98);
            font-weight: bold; text-decoration: none; width: 100px;"
            moz-do-not-send="true">db_is_from_authorized("uri")</a></li>
      </ul>
      <p><br>
      </p>
      <p><font face="Helvetica, Arial, sans-serif">volga629</font><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>