phones will not register with new kazoo install

1,178 views
Skip to first unread message

Doug Mattingly

unread,
Nov 17, 2013, 11:17:45 PM11/17/13
to 2600h...@googlegroups.com
I have installed kazoo using the instructions for "How to Install Kazoo 3.0 via commands (WiP)". All services are installed on a single Centos 6.3 openvz server. I am trying to connect my existing phones and switchvox pbx that are installed on the same subnet as the new kazoo install but nothing is registering. The kamailio.log file error is as follows (this is for one of the registration attempts by a softphone):

Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|start|recieved UDP request REGISTER sip:192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|source 192.168.0.10:5060
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|originated from external sources
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|correcting NATed contact in registration
Nov 17 22:03:40 kazootest kamailio[576]: INFO: db_kazoo [dbase.c:939]: dbk_rmq_wait_for_data(): select: data received
Nov 17 22:03:40 kazootest kamailio[576]: ERROR: db_kazoo [dbase.c:262]: dbk_creds_build_result(): Json-c error - failed to extract password [{"Defer-Response":"true","Server-ID":"","Node":"whistl...@kazootest.stlcopythat.com","Msg-ID":"50a7fbe644...@192.168.0.85","App-Version":"0.4.2","App-Name":"registrar","Event-Name":"authn_err","Event-Category":"directory"}]
Nov 17 22:03:40 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|end|issued new auth challenge to failed registration attempt


Any help would be much appreciated.

Thank you,
Doug

Darren Schreiber

unread,
Nov 18, 2013, 12:31:15 AM11/18/13
to 2600h...@googlegroups.com
This basically indicates wrong username/password.

Do you have the SIP packets by chance from this? Can you do a tcpdump and
show the REGISTER packet?

--


Darren Schreiber
CEO / Co-Founder

visit: www.2600hz.com <http://www.2600hz.com/>
sip:dar...@2600hz.com


tel: 415-886-7901
2600hz launches platform for opening the mobile telco
<http://techcrunch.com/2013/09/09/2600hz-launches-platform-for-opening-the-
mobile-telco/>.

See what mobile integration can do for you.
<https://vimeo.com/74135636>








On 11/17/13, 8:17 PM, "Doug Mattingly" <doug.ma...@gmail.com> wrote:

>

Doug Mattingly

unread,
Nov 20, 2013, 1:03:07 AM11/20/13
to 2600h...@googlegroups.com
Thank you for the quick response.  I'm pretty certain I am not inputting the username/password incorrectly as I have tried several phones and multiple times.  I can easily register the phones with my existing server but cannot register anything with kazoo.  So I'm thinking there is either more to registering than I'm use to with my asterisk system or I have the installed botched up somehow.  Is there a mechanism inherent in kazoo to capture the sip packets or do a tcp dump?  I cannot mirror a port on my switch to capture the packets right now, but I will plan to install tcpdump on the kazoo server and get back to you with a dump.

Thank you,
doug


On Sunday, November 17, 2013 10:17:45 PM UTC-6, Doug Mattingly wrote:
I have installed kazoo using the instructions for "How to Install Kazoo 3.0 via commands (WiP)". All services are installed on a single Centos 6.3 openvz server. I am trying to connect my existing phones and switchvox pbx that are installed on the same subnet as the new kazoo install but nothing is registering. The kamailio.log file error is as follows (this is for one of the registration attempts by a softphone):

Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|start|recieved UDP request REGISTER sip:192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|source 192.168.0.10:5060
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|originated from external sources
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|correcting NATed contact in registration
Nov 17 22:03:40 kazootest kamailio[576]: INFO: db_kazoo [dbase.c:939]: dbk_rmq_wait_for_data(): select: data received
Nov 17 22:03:40 kazootest kamailio[576]: ERROR: db_kazoo [dbase.c:262]: dbk_creds_build_result(): Json-c error - failed to extract password [{"Defer-Response":"true","Server-ID":"","Node":"whistle_ap...@kazootest.stlcopythat.com","Msg-ID":"50a7fbe644b1399a-5...@192.168.0.85","App-Version":"0.4.2","App-Name":"registrar","Event-Name":"authn_err","Event-Category":"directory"}]

Doug Mattingly

unread,
Nov 20, 2013, 7:36:45 AM11/20/13
to 2600h...@googlegroups.com
Darren,
I uploaded the tcp dump showing the 401 unauthorized status on attempted registration.  Any thoughts on next step?

Thanks, 
doug

On Sunday, November 17, 2013 10:17:45 PM UTC-6, Doug Mattingly wrote:
I have installed kazoo using the instructions for "How to Install Kazoo 3.0 via commands (WiP)". All services are installed on a single Centos 6.3 openvz server. I am trying to connect my existing phones and switchvox pbx that are installed on the same subnet as the new kazoo install but nothing is registering. The kamailio.log file error is as follows (this is for one of the registration attempts by a softphone):

Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|start|recieved UDP request REGISTER sip:192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|source 192.168.0.10:5060
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|originated from external sources
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|correcting NATed contact in registration
Nov 17 22:03:40 kazootest kamailio[576]: INFO: db_kazoo [dbase.c:939]: dbk_rmq_wait_for_data(): select: data received
Nov 17 22:03:40 kazootest kamailio[576]: ERROR: db_kazoo [dbase.c:262]: dbk_creds_build_result(): Json-c error - failed to extract password [{"Defer-Response":"true","Server-ID":"","Node":"whistle_ap...@kazootest.stlcopythat.com","Msg-ID":"50a7fbe644b1399a-5...@192.168.0.85","App-Version":"0.4.2","App-Name":"registrar","Event-Name":"authn_err","Event-Category":"directory"}]
sip dump.pcap

Dave Singer

unread,
Nov 20, 2013, 1:48:03 AM11/20/13
to 2600hz-dev
Doug,

Check if all the services are running and connected to each other.
From the ssh bash shell, do  
    epmd -names

you should get something like assuming a single server install:

epmd: up and running on port 4369 with data:
name freeswitch at port 51324
name ecallmgr at port 11502
name whistle_apps at port 11501
name rabbit at port 57563
name bigcouch at port 11500

If any of them are missing you need to start or restart the service.
Stopping/restarting some of the services will kill some others.
So order of start/restart matters.

To do a clean start/restart I've done:
    killall beam beam.smp epmd ; epmd -daemon ; service bigcouch restart ; service rabbitmq-server restart ; service haproxy restart ; service kz-whistle_apps restart ; service kz-ecallmgr restart ; service kamailio restart ; service freeswitch restart

do epmd -names again to see if everything is there.
Also check Freeswitch to see if it thinks it is connected.
   fs_cli
       freeswitch@internal> erlang nodes list

if it shows an error message try reload mod_kazoo

If things are still not showing up you probably have a config problem somewhere.

The fs_cli is a good place to watch for the registrations to come in.
After registrations are working the sip messages can get in the way of other debugging. So you may want to turn them off:
     sofia profile sipinterface_1 siptrace off
and on when needed:
     sofia profile sipinterface_1 siptrace on
Turning on and off debug logging is simple function keys F8 and F7 respectively.

If it is still failing capture the logs during a registration. I use:
     tail -n 0 -f /var/log/freeswitch/debug.log | tee /tmp/freeswitch-debug.log
     tail -n 0 -f /var/log/2600hz-platform.log | tee /tmp/kazoo-debug.log
To do them both at the same time you will need to have two terminal session  open and do one in each.
I then pull them to my local computer with winscp and attach them to an email or copy the contents to a pastebin to get more help.
NOTE: If there is nothing in the kazoo log you are probably running versions from R16B. They have know logging issues.

I wasted a lot of time figuring and finding that stuff out.
Happy debugging. 

cando


--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Luis Azedo

unread,
Nov 20, 2013, 9:06:57 AM11/20/13
to 2600h...@googlegroups.com
Hi Doug,

you're not registering to a domain but a IP

Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:24...@192.168.0.85

shouldn't this be more like 
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:2415@youraccountdomain
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:2415@youraccountdomain




--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Luis Azedo


Doug Mattingly

unread,
Nov 20, 2013, 9:40:00 AM11/20/13
to 2600h...@googlegroups.com
Luis,
I have been starting to suspect the IP vs domain name might be the issue. My domain name points to my single public static ip which forwarded to my production asterisk system so I was trying to do this testing all on internal private network for now.  I suppose I could set up an internal DNS to point to this private ip if that is the issue.  I haven't done that yet because all of the asterisk systems I've worked with were able to register by IP address.  I'll plan on doing that in the next few days.

By the way, is there anything required besides username and password to authorize?  I have not entered the phone mac address into the kazoo interface.  Is that required?  

Thanks,
Doug 

On Sunday, November 17, 2013 10:17:45 PM UTC-6, Doug Mattingly wrote:
I have installed kazoo using the instructions for "How to Install Kazoo 3.0 via commands (WiP)". All services are installed on a single Centos 6.3 openvz server. I am trying to connect my existing phones and switchvox pbx that are installed on the same subnet as the new kazoo install but nothing is registering. The kamailio.log file error is as follows (this is for one of the registration attempts by a softphone):

Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|start|recieved UDP request REGISTER sip:192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|source 192.168.0.10:5060
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|originated from external sources
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|correcting NATed contact in registration
Nov 17 22:03:40 kazootest kamailio[576]: INFO: db_kazoo [dbase.c:939]: dbk_rmq_wait_for_data(): select: data received
Nov 17 22:03:40 kazootest kamailio[576]: ERROR: db_kazoo [dbase.c:262]: dbk_creds_build_result(): Json-c error - failed to extract password [{"Defer-Response":"true","Server-ID":"","Node":"whistle_ap...@kazootest.stlcopythat.com","Msg-ID":"50a7fbe644b1399a-5...@192.168.0.85","App-Version":"0.4.2","App-Name":"registrar","Event-Name":"authn_err","Event-Category":"directory"}]

Doug Mattingly

unread,
Nov 20, 2013, 9:52:38 AM11/20/13
to 2600h...@googlegroups.com
Dave,
epmd -names shows all services running and erlang nodes list in the FS CLI shows no error.  Nothing shows in the Freeswitch log related to registering the phone ( I think because the registration never gets past kamailio).  The freeswitch error log does show the following error at startup.

2013-11-20 00:13:46.718620 [ERR] switch_xml.c:1349 Couldnt open /etc/freeswitch/gateways/*.xml (No such file or directory)

I wonder if that could be related to issues registering phones?
The kazoo log just shows what looks to be a summary of the kamailio error.

Does the output of "sofia profile sipinterface_1 siptrace on" scroll right onto the freeswitch console or to a log file somewhere? I didn't see anything when I ran that command but wasn't sure what to expect.

I will try to post to freeswitch and kazoo logs tonight.

Thank you,
Doug

On Sunday, November 17, 2013 10:17:45 PM UTC-6, Doug Mattingly wrote:
I have installed kazoo using the instructions for "How to Install Kazoo 3.0 via commands (WiP)". All services are installed on a single Centos 6.3 openvz server. I am trying to connect my existing phones and switchvox pbx that are installed on the same subnet as the new kazoo install but nothing is registering. The kamailio.log file error is as follows (this is for one of the registration attempts by a softphone):

Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|start|recieved UDP request REGISTER sip:192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|source 192.168.0.10:5060
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|originated from external sources
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|correcting NATed contact in registration
Nov 17 22:03:40 kazootest kamailio[576]: INFO: db_kazoo [dbase.c:939]: dbk_rmq_wait_for_data(): select: data received
Nov 17 22:03:40 kazootest kamailio[576]: ERROR: db_kazoo [dbase.c:262]: dbk_creds_build_result(): Json-c error - failed to extract password [{"Defer-Response":"true","Server-ID":"","Node":"whistle_ap...@kazootest.stlcopythat.com","Msg-ID":"50a7fbe644b1399a-5...@192.168.0.85","App-Version":"0.4.2","App-Name":"registrar","Event-Name":"authn_err","Event-Category":"directory"}]

Luis Azedo

unread,
Nov 20, 2013, 10:10:54 AM11/20/13
to 2600h...@googlegroups.com
Hi,

you really need the domain to login. you don't need to setup dns to make it work if you use and outbound proxy usually available in sip clients and ip phones.
just send  valid "from" and to "headers"  in the form <sip:your_device_username@your_account_domain_name>

login by ip is also allowed in kazoo but requires proper setup (never use it).




--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Luis Azedo


James Aimonetti

unread,
Nov 20, 2013, 10:27:19 AM11/20/13
to 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

+1

In your SIP client, set the outbound-proxy or equivalent to your
Kamailio IP (or hostname), and set your realm/domain to your kazoo
account's realm.

Have a look at the manual provisioning wiki page, might help locate
the appropriate settings:

https://2600hz.atlassian.net/wiki/display/docs/Manual+Provisioning
- --
James Aimonetti
Lead Systems Architect
"I thought I fixed that"

2600Hz | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlKM1NcACgkQ54NxaUq7OmAOeQD/TtgqqdH3FO4JPF/4SUe9FHXP
hw+L8feRw8wxS4hnNNIA/Rm5L+Kew3VkWIhgKhcBpdPN9LwaT9R0iGSprT3ay+nR
=S7ro
-----END PGP SIGNATURE-----

Doug Mattingly

unread,
Nov 20, 2013, 8:40:17 PM11/20/13
to 2600h...@googlegroups.com
That was it!  I set the outbound proxy to the private IP of the kazoo server and the domain to my domain and it immediately registered.

Thanks to all for your help!

Doug


On Sunday, November 17, 2013 10:17:45 PM UTC-6, Doug Mattingly wrote:
I have installed kazoo using the instructions for "How to Install Kazoo 3.0 via commands (WiP)". All services are installed on a single Centos 6.3 openvz server. I am trying to connect my existing phones and switchvox pbx that are installed on the same subnet as the new kazoo install but nothing is registering. The kamailio.log file error is as follows (this is for one of the registration attempts by a softphone):

Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|start|recieved UDP request REGISTER sip:192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|source 192.168.0.10:5060
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:24...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|originated from external sources
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|correcting NATed contact in registration
Nov 17 22:03:40 kazootest kamailio[576]: INFO: db_kazoo [dbase.c:939]: dbk_rmq_wait_for_data(): select: data received
Nov 17 22:03:40 kazootest kamailio[576]: ERROR: db_kazoo [dbase.c:262]: dbk_creds_build_result(): Json-c error - failed to extract password [{"Defer-Response":"true","Server-ID":"","Node":"whistle_ap...@kazootest.stlcopythat.com","Msg-ID":"50a7fbe644b1399a-5...@192.168.0.85","App-Version":"0.4.2","App-Name":"registrar","Event-Name":"authn_err","Event-Category":"directory"}]

Yumminova Telecom

unread,
Sep 4, 2015, 6:20:33 PM9/4/15
to 2600hz-dev
Hi

If i do
From the ssh bash shell, do  
    epmd -names

you should get something like assuming a single server install:

epmd: up and running on port 4369 with data:
name freeswitch at port 51324
name ecallmgr at port 11502
name whistle_apps at port 11501
name rabbit at port 57563
name bigcouch at port 11500

I get

epmd: up and running on port 4369 with data:
name whistle_apps at port 11501
name ecallmgr at port 11500
name rabbit at port 25672

Call to the outside work, registrations work but kazoo does not know about them and cant deliver the calls to the endpoints


Op maandag 18 november 2013 05:17:45 UTC+1 schreef Doug Mattingly:
I have installed kazoo using the instructions for "How to Install Kazoo 3.0 via commands (WiP)". All services are installed on a single Centos 6.3 openvz server. I am trying to connect my existing phones and switchvox pbx that are installed on the same subnet as the new kazoo install but nothing is registering. The kamailio.log file error is as follows (this is for one of the registration attempts by a softphone):

Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|start|recieved UDP request REGISTER sip:192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|source 192.168.0.10:5060
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|from sip:...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|to sip:...@192.168.0.85
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|originated from external sources
Nov 17 22:03:39 kazootest kamailio[576]: INFO: <script>: 1384742016...@192.168.0.10|log|correcting NATed contact in registration
Nov 17 22:03:40 kazootest kamailio[576]: INFO: db_kazoo [dbase.c:939]: dbk_rmq_wait_for_data(): select: data received
Nov 17 22:03:40 kazootest kamailio[576]: ERROR: db_kazoo [dbase.c:262]: dbk_creds_build_result(): Json-c error - failed to extract password [{"Defer-Response":"true","Server-ID":"","Node":"whistle_ap...@kazootest.stlcopythat.com","Msg-ID":"50a7fbe644b1399a-5...@192.168.0.85","App-Version":"0.4.2","App-Name":"registrar","Event-Name":"authn_err","Event-Category":"directory"}]
Reply all
Reply to author
Forward
0 new messages