<p dir="ltr"><br>
On 22 Feb 2016 6:48 am, "Daniel-Constantin Mierla" <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br>
><br>
><br>
> Hello,<br>
><br>
><br>
> for handling publish you have to enable presence services.<br>
></p>
<p dir="ltr">Currently I don't want to enable location services. I can drop the PUBLISH requests but first I'd like to under stand the reason for the loop.</p>
<p dir="ltr">> 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=<a href="http://kamailio.marrold.co.uk">kamailio.marrold.co.uk</a></p>
<p dir="ltr">This is already in the original configuration I posted.</p>
<p dir="ltr">Thanks for your assistance </p>
<p dir="ltr">><br>
> Restart kamailio and try again.<br>
><br>
> Cheers,<br>
> Daniel<br>
><br>
><br>
> On 21/02/16 00:55, Matthew Harrold wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I am new to Kamailio but have previous experience with Asterisk, Freeswitch and SIP.<br>
>><br>
>> 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.<br>
>><br>
>> Config here - <a href="http://pastebin.com/raw/CCgT0C78">http://pastebin.com/raw/CCgT0C78</a><br>
>><br>
>> 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. <br>
>><br>
>> Publish URI is PUBLISH <a href="mailto:sip%3A201@kamailio.marrold.co.uk">sip:201@kamailio.marrold.co.uk</a>;transport=UDP SIP/2.0<br>
>><br>
>> I have two questions, <br>
>><br>
>> 1) Why is this request being sent a 404, when the UAC is in the USRLOC table?<br>
>> 2) Why is the request looping until Max Forwards is exhausted?<br>
>><br>
>> Any help appreciated,<br>
>><br>
>> Marrold<br>
>><br>
>><br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
> -- <br>
> Daniel-Constantin Mierla<br>
> <a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><br>
> Book: SIP Routing With Kamailio - <a href="http://www.asipto.com">http://www.asipto.com</a><br>
> <a href="http://miconda.eu">http://miconda.eu</a><br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
</p>