<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    if you want to handle the domain.com on the SIP server but the IP of
    that domain is pointing elsewhere, just add in kamailio.cfg:<br>
    <br>
    alias=domain.com<br>
    <br>
    An alternative is to use domain module (suitable when you have many
    domains and you want to store them in database).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 21/08/14 19:06, Mihai Marin wrote:<br>
    </div>
    <blockquote
cite="mid:CACKuv4W2ii5DyqOCij3Lt6+hTXgvNkYmsbfAwKAvGwQUJjwNiA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Sirs,
        <div>The RLS module is eating my life. I just managed to make it
          work 2 months ago and now is not working anymore after I tried
          to put the kamailio under domain (until now it was simple ip).</div>
        <div>I don't understand why is not working but I saw a big
          difference that I don't understand:</div>
        <div>My environment:</div>
        <div>- the domain "<a moz-do-not-send="true"
            href="http://domain.com">domain.com</a>" is pointing to the
          web server</div>
        <div>- kamailio is hosted under <a moz-do-not-send="true"
            href="http://sip.domain.com">sip.domain.com</a></div>
        <div>- DNS has <a moz-do-not-send="true"
            href="http://domain.com">domain.com</a> A record for web
          server's ip, <a moz-do-not-send="true"
            href="http://sip.domain.com">sip.domain.com</a> A record for
          kamailio's ip and SRV record for _sip._<a
            moz-do-not-send="true" href="http://tcp.domain.com">tcp.domain.com</a>
          poting to sip.domain.dom</div>
        <div>Problem:</div>
        <div>kamailio presence is not working anymore and I think, the
          error is:</div>
        <div>grep_sock_info - checking if host==us: 11==14 && [<a
            moz-do-not-send="true" href="http://domain.com">domain.com</a>]
          == [xx.xx.xx.xx witch is the <a moz-do-not-send="true"
            href="http://sip.domain.com">sip.domain.com</a> IP]</div>
        <div><br>
        </div>
        <div>If, I change <a moz-do-not-send="true"
            href="http://domain.com">domain.com</a> in DNS to point on
          the same ip as <a moz-do-not-send="true"
            href="http://sip.domain.com">sip.domain.com</a> RLS is
          working. This, I can't understand. Can anyone explain me why
          is not working using this configuration? Also, the RLS is
          working if i change my domain to be <a moz-do-not-send="true"
            href="http://sip.domain.com">sip.domain.com</a> (ex: <a
            moz-do-not-send="true"
            href="mailto:sip%3Auser@sip.domain.com">sip:user@sip.domain.com</a>).</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thank you.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div>Mihai M</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.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-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre>
  </body>
</html>