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
Hello,
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:
alias=kamailio.marrold.co.uk
Restart kamailio and try again.
Cheers, Daniel
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@kamailio.marrold.co.uk mailto:sip%3A201@kamailio.marrold.co.uk;transport=UDP SIP/2.0
I have two questions,
- 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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 22 Feb 2016 6:48 am, "Daniel-Constantin Mierla" miconda@gmail.com wrote:
Hello,
for handling publish you have to enable presence services.
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.
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:
alias=kamailio.marrold.co.uk
This is already in the original configuration I posted.
Thanks for your assistance
Restart kamailio and try again.
Cheers, Daniel
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@kamailio.marrold.co.uk;transport=UDP
SIP/2.0
I have two questions,
- Why is this request being sent a 404, when the UAC is in the USRLOC
table?
- 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@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 http://miconda.eu
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
On 22/02/16 07:54, Marrold wrote:
On 22 Feb 2016 6:48 am, "Daniel-Constantin Mierla" <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello,
for handling publish you have to enable presence services.
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.
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:
alias=kamailio.marrold.co.uk http://kamailio.marrold.co.uk
This is already in the original configuration I posted.
The capture the traffic on the server and paste it to the mailing list to see routing addresses:
ngrep -d any -qt -W byline "sip" port 5060
Cheers, Daniel
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.
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:
alias=kamailio.marrold.co.uk
This is already in the original configuration I posted.
The capture the traffic on the server and paste it to the mailing list to see routing addresses:
ngrep -d any -qt -W byline "sip" port 5060
Cheers, Daniel
Looks like I had a mistake in my config, thanks for taking the time to reply though.
On 23/02/16 01:29, Matthew Harrold wrote:
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. > 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: > > alias=kamailio.marrold.co.uk <http://kamailio.marrold.co.uk> This is already in the original configuration I posted.
The capture the traffic on the server and paste it to the mailing list to see routing addresses: ngrep -d any -qt -W byline "sip" port 5060 Cheers, Daniel
Looks like I had a mistake in my config, thanks for taking the time to reply though.
Welcome, good it was sorted out.
Cheers, Daniel