[SR-Users] PUBLISH request receives 404 response, and loops on loopback interface

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 22 07:47:28 CET 2016


for handling publish you have to enable presence services.

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.

For adding it as alias, add:


Restart kamailio and try again.


On 21/02/16 00:55, Matthew Harrold wrote:
> Hi all,
> I am new to Kamailio but have previous experience with Asterisk,
> Freeswitch and SIP.
> 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.
> Config here - http://pastebin.com/raw/CCgT0C78
> 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. 
> Publish URI is PUBLISH sip:201 at kamailio.marrold.co.uk
> <mailto:sip%3A201 at kamailio.marrold.co.uk>;transport=UDP SIP/2.0
> I have two questions, 
> 1) Why is this request being sent a 404, when the UAC is in the USRLOC
> table?
> 2) Why is the request looping until Max Forwards is exhausted?
> Any help appreciated,
> Marrold
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160222/d50cb2d6/attachment.html>

More information about the sr-users mailing list