<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hello, Khalil!<br>
      <br>
      If you check the documentation of the do_routing function[1], you
      will see that the group is not mandatory. If it exists, then it
      will use the route set within that group. If it does not exist,
      the group is determined from the dr_group table in the database -
      this is just a simple mapping between user and group. If you would
      like to have a more flexible approach, where you determine the
      route set using a more complex logic than a simple matching, then
      you will have to implement that logic in the script to find the
      group, and provide it to the do_routing() function.<br>
      I hope I answered you question now.<br>
      <br>
      [1]
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/drouting.html#id295067">http://www.opensips.org/html/docs/modules/2.2.x/drouting.html#id295067</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 01/08/2017 08:23 PM, Khalil
      Khamlichi wrote:<br>
    </div>
    <blockquote
cite="mid:CAEK98Wa38=vHyLoFGFuQ4O_FKJHf-rCpV8rf+1t1N97pGRWV0g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Well you get to my point, shouldn't it be in the
        database then ? whats the point in having it hard coded inside
        the config file ? </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sun, Jan 8, 2017 at 1:24 PM, Johan
          De Clercq <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:johan@democon.be" target="_blank">johan@democon.be</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="auto">I think that's route set id.</div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">
                <div>
                  <div class="h5">On 08 Jan 2017 12:12 PM, "Khalil
                    Khamlichi" <<a moz-do-not-send="true"
                      href="mailto:khamlichi.khalil@gmail.com"
                      target="_blank">khamlichi.khalil@gmail.com</a>>
                    wrote:<br type="attribution">
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div class="h5">
                      <div dir="ltr">Hi eveyone,
                        <div><br>
                        </div>
                        <div>I have been trying to understand the first
                          argument to the d<span
                            style="color:rgb(0,0,0);font-family:monospace">o_routing("1","",,"$var(rule_<wbr>attrs)")</span></div>
                        <div><span
                            style="color:rgb(0,0,0);font-family:monospace"><br>
                          </span></div>
                        <div><span
                            style="color:rgb(0,0,0);font-family:monospace">Can
                            anyone please give some explanation of the
                            first argument to this function ? what does
                            the "1" stands for and where does it fit in
                            the logic back in the database setup (in my
                            scenario it's mostly drouting tables)</span></div>
                        <div><span
                            style="color:rgb(0,0,0);font-family:monospace"><br>
                          </span></div>
                        <div><span
                            style="color:rgb(0,0,0);font-family:monospace">Thanks
                            in advance.</span></div>
                        <div><br>
                        </div>
                        <span style="font-family:monospace"><br>
                        </span></div>
                      <br>
                    </div>
                  </div>
                  ______________________________<wbr>_________________<br>
                  Users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Users@lists.opensips.org"
                    target="_blank">Users@lists.opensips.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                    rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
                  <br>
                </blockquote>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <br>
  </body>
</html>