<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks for the feedback.<br>
      <br>
      On 14/10/14 02:13, Alberto Llamas wrote:<br>
    </div>
    <blockquote
cite="mid:CAHH1jkNtWvsxF5x=Do4xAJVZeNkF7yjt7Sptzjo+mpzfGp43BA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello Paul,<br>
          <br>
        </div>
        That was amazing. Thanks a lot !<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Oct 13, 2014 at 3:42 AM, Paul
          Smith <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:paul.smith@claritytele.com" target="_blank">paul.smith@claritytele.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Hi Alberto<br>
                The magic you are looking for is in the "domain"
                module.  The example configuration files in the
                distribution have it set up and ready to use if you add
                the line "#!define WITH_MULTIDOMAIN"<br>
                <br>
                The important bit for your scenario is in the example
                config:<br>
                <blockquote>
                  <pre># ----- domain params -----
#!ifdef WITH_MULTIDOMAIN
modparam("domain", "db_url", DBURL)
# register callback to match myself condition with domains list
modparam("domain", "register_myself", 1)
#!endif

</pre>
                </blockquote>
                That section tells the domain module to use the
                database, and to include the domains loaded from there
                when matching the special keyword "myself".  The example
                config files also set up other modules (like user
                location module) to be domain aware as well.<br>
                <br>
                In this setup you do not need to restart kamailio when
                you add or remove domains.... but you do need to tell it
                to reload the domains from database as Kamailio holds a
                cached copy of the list in memory.... so when you make a
                database change then do "kamctl domain reload".  You can
                also run "kamctl domain show" to see what domains are
                currently listed in memory.
                <div>
                  <div class="h5"><br>
                    <br>
                    <br>
                    On 12/10/14 21:38, Alberto Llamas wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <p dir="ltr">Hello kamailio gurus,</p>
                    <p dir="ltr">Thanks if somebody can help me
                      answering nex question:</p>
                    <p dir="ltr">I have a kamailio server as registrar
                      server with asterisk behind. For register porpouse
                      the UA are using subdomain like:</p>
                    <p dir="ltr"><a moz-do-not-send="true"
                        href="mailto:100@test.mydomain.com"
                        target="_blank">100@test.mydomain.com</a><br>
                      <a moz-do-not-send="true"
                        href="mailto:200@test2.mydomain.com"
                        target="_blank">200@test2.mydomain.com</a></p>
                    <p dir="ltr">I have to add each alias in the
                      kamailio.cfg file an restart the sevice.</p>
                    <p dir="ltr">Alias="<a moz-do-not-send="true"
                        href="http://test.mydomain.com" target="_blank">test.mydomain.com</a>"<br>
                      Alias="<a moz-do-not-send="true"
                        href="http://test2.mydomain.com" target="_blank">test2.mydomain.com</a>"</p>
                    <p dir="ltr">Is there some option to add it in the
                      database? Then i don't have to restart the server
                      each time i have to add/edit/delete each
                      subdomain.<br>
                    </p>
                    <p dir="ltr">Thanks a lot,</p>
                    <p dir="ltr">Albert</p>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div dir="ltr">
          <div>Alberto Llamas<br>
            <div dir="ltr">
              <div name="div[0]"><span>Telecommunications</span><span> </span><span>Engineer</span></div>
            </div>
            Digium Certified Asterisk Professional (dCap)<br>
          </div>
          Linux Administrator<br>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>