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@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