<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    Hello,<br>
    <br>
    <br>
    for handling publish you have to enable presence services.<br>
    <br>
    The looping happens when the domain in the R-URI is pointing to same
    server, but it is not listed as local domain for kamailio. You have
    to add it as alias or use it with domain module.<br>
    <br>
    For adding it as alias, add:<br>
    <br>
    alias=kamailio.marrold.co.uk<br>
    <br>
    Restart kamailio and try again.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 21/02/16 00:55, Matthew Harrold
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAC-Lcd-+5adeB2qbSSgmkYeT3idf_PmQCTTzqvBUHu1qjORosg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>I am new to Kamailio but have previous experience with
          Asterisk, Freeswitch and SIP.</div>
        <div><br>
        </div>
        <div>I am using a fairly default config file with some sections
          removed (E.G NAT) to simplify things, and some extra logging
          so I can see the way packets traverse the configuration.</div>
        <div><br>
        </div>
        <div>Config here - <a moz-do-not-send="true"
            href="http://pastebin.com/raw/CCgT0C78">http://pastebin.com/raw/CCgT0C78</a></div>
        <div><br>
        </div>
        <div>I have noticed that when a UAC sends a PUBLISH request,
          Kamailio immediately responds '404 Not Found' and more
          worryingly the logs and a packet capture running on the lo
          interface indicate it's sending the PUBLISH request to itself
          in a loop until it hits the Max-Forwards limit. </div>
        <div><br>
        </div>
        <div>Publish URI is PUBLISH <a moz-do-not-send="true"
            href="mailto:sip%3A201@kamailio.marrold.co.uk">sip:201@kamailio.marrold.co.uk</a>;transport=UDP
          SIP/2.0</div>
        <div><br>
        </div>
        <div>I have two questions, </div>
        <div><br>
        </div>
        <div>1) Why is this request being sent a 404, when the UAC is in
          the USRLOC table?</div>
        <div>2) Why is the request looping until Max Forwards is
          exhausted?</div>
        <div><br>
        </div>
        <div>Any help appreciated,</div>
        <div><br>
        </div>
        <div>Marrold</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>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
  </body>
</html>