Dear All I have tried a lot and looks getting Kamailio IMS setup is very difficult and no proper documentation available. Though I have setup all CSCFs and FHoSS , still REGISTRATION fails with 483 response.
I have setup DNS properly as shown below.
*root@necs04:/etc/kamailio/pcscf# root@necs04:/etc/kamailio/pcscf# ping pcscf.group1-imslab11.in http://pcscf.group1-imslab11.inPING pcscf.group1-imslab11.in http://pcscf.group1-imslab11.in (192.168.1.100) 56(84) bytes of data.64 bytes from localhost (192.168.1.100): icmp_req=1 ttl=64 time=0.037 ms64 bytes from localhost (192.168.1.100): icmp_req=2 ttl=64 time=0.028 ms^C--- pcscf.group1-imslab11.in http://pcscf.group1-imslab11.in ping statistics ---2 packets transmitted, 2 received, 0% packet loss, time 1000msrtt min/avg/max/mdev = 0.028/0.032/0.037/0.007 msroot@necs04:/etc/kamailio/pcscf# root@necs04:/etc/kamailio/pcscf# root@necs04:/etc/kamailio/pcscf# root@necs04:/etc/kamailio/pcscf# ping icscf.group1-imslab11.in http://icscf.group1-imslab11.inPING icscf.group1-imslab11.in http://icscf.group1-imslab11.in (192.168.1.100) 56(84) bytes of data.64 bytes from localhost (192.168.1.100): icmp_req=1 ttl=64 time=0.023 ms64 bytes from localhost (192.168.1.100): icmp_req=2 ttl=64 time=0.029 ms64 bytes from localhost (192.168.1.100): icmp_req=3 ttl=64 time=0.024 ms^C--- icscf.group1-imslab11.in http://icscf.group1-imslab11.in ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 1999msrtt min/avg/max/mdev = 0.023/0.025/0.029/0.004 msroot@necs04:/etc/kamailio/pcscf# root@necs04:/etc/kamailio/pcscf# ping scscf.group1-imslab11.in http://scscf.group1-imslab11.inPING scscf.group1-imslab11.in http://scscf.group1-imslab11.in (192.168.1.100) 56(84) bytes of data.64 bytes from localhost (192.168.1.100): icmp_req=1 ttl=64 time=0.022 ms64 bytes from localhost (192.168.1.100): icmp_req=2 ttl=64 time=0.022 ms64 bytes from localhost (192.168.1.100): icmp_req=3 ttl=64 time=0.021 ms^C--- scscf.group1-imslab11.in http://scscf.group1-imslab11.in ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 1998msrtt min/avg/max/mdev = 0.021/0.021/0.022/0.005 msroot@necs04:/etc/kamailio/pcscf# *
Also dig result is as shown below.
*root@necs04:/etc/kamailio/pcscf# root@necs04:/etc/kamailio/pcscf# dig naptr group1-imslab11.in http://group1-imslab11.in; <<>> DiG 9.8.1-P1 <<>> naptr group1-imslab11.in http://group1-imslab11.in;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10919;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 3;; QUESTION SECTION:;group1-imslab11.in http://group1-imslab11.in. IN NAPTR;; ANSWER SECTION:group1-imslab11.in http://group1-imslab11.in. 86400 IN NAPTR 10 50 "s" "SIP+D2T" "" _sip._tcp.pcscf.group1-imslab11.in http://tcp.pcscf.group1-imslab11.in.group1-imslab11.in http://group1-imslab11.in. 86400 IN NAPTR 10 50 "s" "SIP+D2U" "" _sip._udp.pcscf.group1-imslab11.in http://udp.pcscf.group1-imslab11.in.;; AUTHORITY SECTION:group1-imslab11.in http://group1-imslab11.in. 86400 IN NS necs04.group1-imslab11.in http://necs04.group1-imslab11.in.;; ADDITIONAL SECTION:pcscf.group1-imslab11.in http://pcscf.group1-imslab11.in. 86400 IN A 192.168.1.100necs04.group1-imslab11.in http://necs04.group1-imslab11.in. 86400 IN A 192.168.1.100_sip._udp.pcscf.group1-imslab11.in http://udp.pcscf.group1-imslab11.in. 86400 IN SRV 0 0 4060 pcscf.group1-imslab11.in http://pcscf.group1-imslab11.in.;; Query time: 0 msec;; SERVER: 192.168.1.100#53(192.168.1.100);; WHEN: Fri Oct 17 17:34:22 2014;; MSG SIZE rcvd: 259root@necs04:/etc/kamailio/pcscf# *
When I send a REGISTER message from a sip client, I get 483 Too Many Hops.
I am totally clueless whats going wrong.
Can somebody guide me , where is the fault.
On thing I do not understand is dispatcher.list stuff.
So I have kept empty disptacher.list file for PCSCF and SCSCF. Can that be an issue.
The REGISTER and 483 response looks as below.
*REGISTER sip:pcscf.group1-imslab11.in http://pcscf.group1-imslab11.in SIP/2.0Via: SIP/2.0/TCP 192.168.1.114:49732;branch=z9hG4bK457115572From: <sip:necs_0@group1-imslab11.in sip%3Anecs_0@group1-imslab11.in>;tag=1068512852To: <sip:necs_0@group1-imslab11.in sip%3Anecs_0@group1-imslab11.in>Call-ID: 1874336526CSeq: 16 REGISTERContact: sip:necs_0@192.168.1.114:49732;transport=TCP;line=a126427bb8e82c9;+sip.instance="urn:uuid:2dab9970-55f5-11e4-ae19-41032d8f6492"Authorization: Digest username="necs_0@group1-imslab11.in necs_0@group1-imslab11.in", realm="pcscf.group1-imslab11.in http://pcscf.group1-imslab11.in", nonce=" ", uri="sip:pcscf.group1-imslab11.in http://pcscf.group1-imslab11.in", response=" "Max-Forwards: 70User-Agent: NECS IMS client v1.01Expires: 600000Supported: pathSupported: gruuContent-Length: 0*
*SIP/2.0 483 Too Many HopsVia: SIP/2.0/TCP 192.168.1.114:49732;branch=z9hG4bK457115572From: <sip:necs_0@group1-imslab11.in sip%3Anecs_0@group1-imslab11.in>;tag=1068512852To: <sip:necs_0@group1-imslab11.in sip%3Anecs_0@group1-imslab11.in>;tag=68c95b6520b8472128534dfbca9fcb81.d739Call-ID: 1874336526CSeq: 16 REGISTERServer: Kamailio P-CSCFContent-Length: 0* Kindly somebody help me how I can troubleshoot and fix it.
Many thanks Kamal
Hi Kamal,
where is group1-imslab11.in pointing to? Especially the SRV-records for that domain?
Thanks, Carsten
2014-10-17 14:09 GMT+02:00 Kamal Palei palei.kamal@gmail.com:
Dear Carsten group1-imslab11.in points to same machine where all CSCFs are running. In this case it is 192.168.1.100.
From machine, where I run sip client, I pinged to group1-imslab11.in
*192:~$ ping group1-imslab11.in http://group1-imslab11.inPING group1-imslab11.in http://group1-imslab11.in (127.0.0.1) 56(84) bytes of data.64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.025 ms64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.033 ms* What is painful is, I am not getting the way out..., how do I debug or troubleshoot?
Please guide me where I need to concentrate...,
I doubt either DNS or dispatcher.list file....
Many thanks Kamal
On Fri, Oct 17, 2014 at 6:07 PM, Carsten Bock carsten@ng-voice.com wrote:
Hi,
try the following: host -t SRV _sip._udp.group1-imslab11.i
Thanks, Carsten
2014-10-17 14:50 GMT+02:00 Kamal Palei palei.kamal@gmail.com:
Dear Carsten
I tried suggested command. Output as below.
*192:~$ host -t SRV _sip._udp.group1-imslab11.in http://udp.group1-imslab11.in_sip._udp.group1-imslab11.in http://udp.group1-imslab11.in has SRV record 0 0 5060 icscf.group1-imslab11.in http://icscf.group1-imslab11.in.192:~$* Many thanks Kamal
On Fri, Oct 17, 2014 at 6:25 PM, Carsten Bock carsten@ng-voice.com wrote:
Hi Carsten Is this above result correct?
What other things I need to check and conclude if configuration is fine...
Best Regards Kamal
On Fri, Oct 17, 2014 at 6:31 PM, Kamal Palei palei.kamal@gmail.com wrote:
Hi Kamal,
where did you retrieve the config? At some point i made the mistake of putting "dns_try_naptr=yes" (which should be "no") in the config, which could lead to the issue your seeing... can you check this?
Kind regards, Carsten
P.S.: The dispatcher.list file is used as a "Whitelisting" for the DDOS-Check on the Proxy-CSCF, so the IMS-Core components are not beeing blocked by the pike-check. On the Serving-CSCF it contains the PSTN-Gateways.
2014-10-17 15:28 GMT+02:00 Kamal Palei palei.kamal@gmail.com:
Hi Carsten, There is not entry for dns_try_naptr in any of my config file.
Regarding dispatch list, I do not have PSTN gateways.., what shall I put in dispatcher.list file for SCSCF.
I tried to comment loading of dispatcher module, but endup getting error in kamailio.cfg (looks some functions are referred from dispatcher module in kamailio.cfg).
Totally clueless.., Not sure how to proceed.
many thanks kamal
On Fri, Oct 17, 2014 at 7:13 PM, Carsten Bock carsten@ng-voice.com wrote: