<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>you can try to leverage on socket field from location table in
      order to route first to the sip server that received the REGISTER.</p>
    <p>There is also an alternative to insert a PATH header +
      msg_apply_changes() before doing save location, then deal with a
      local loop or do some tests in kamailio.cfg to avoid that.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09.08.17 10:58, Sadeesh
      Radhakrishnan wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACZDAxLM8OBAe_WXw_u6Dbtd7EJ9tuzQ2eMR-EfYK4Jo4iwrRA@mail.gmail.com">
      <div dir="ltr">We have kamailio servers that do DNS-Geo-Location
        on different locations, using same domain name.
        <div>So the users from a country will be preferred to his nearby
          server by DNS routing.</div>
        <div>Similarly users from different countries will be
          registering to their nearby kamailio sip servers.</div>
        <div>All the servers share a common user location table on
          database.</div>
        <div>Now the users are getting registered fine, with no issue.</div>
        <div>We want the users at one location should be able to call
          user@other-location using the user location contact
          information.</div>
        <div>When we tried, the INVITE is sent on common domain name and
          that reverse resolves dns to same server and gets a 404 not
          found.</div>
        <div>I need some suggestion / ideas in order to make it happen.</div>
        <div><br>
        </div>
        <div>Thanks</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>