Registration failed for Grandstream HT802 ATA

Hi,
I am relatively new to Asterisk/FreePBX, so I am probably missing something extremely basic here.

I am trying to register a Grandstream HT802 for use with FreePBX 13.0.190.19 (Asterisk version 13.12.1). I have already successfully registered three Cisco hardphones and a softphone with no issues, but when trying to register the 802 with similar settings, the registration process fails.

My environment is fairly simple. Everything is on the same local network, so no routing, proxies, or nat. The FreePBX firewall is disabled, so that shouldn’t be an issue. I’ve verified ping and hostname resolution between the PBX and ATA. I am using chan_sip with UDP with a server port of 5160. (The other phones I have enabled are on the same network and have no problem reaching this port.) The local sip ports on the 802 are 5060 and 5062, and I have verified that they match the ports in the extension settings.

The line shows as unregistered in the 802 interface and either shows Unreachable or Unmonitored in FreePBX, depending on whether Qualify is enabled or not. The Asterisk logfiles do not appear to have any related entries, even in debug mode, so it is as if packets are not even reaching the server.

Here is the tcpdump output during normal operation. This is with qualify turned off and only one extension enabled. 192.168.0.114 is the IP of the Grandstream HT802 ATA, and the FreePBX server is pbx.domain.local (192.168.0.174) It looks like the ATA is trying to register with the PBX but cannot reach the port or is not getting a response.

tcpdump -v host 192.168.0.114 -s 512

Part of the more verbose output of the same command saved to a text file is as follows

21:09:44.012799 IP (tos 0x68, ttl 64, id 2625, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT802 1.0.5.11
Supported: path[|sip]
21:09:44.012829 IP (tos 0xc8, ttl 64, id 51392, offset 0, flags [none], proto ICMP (1), length 576)
192.168.0.174 > 192.168.0.114: ICMP 192.168.0.174 udp port sip unreachable, length 556
IP (tos 0x68, ttl 64, id 2625, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT8[|sip]
21:09:48.016132 IP (tos 0x68, ttl 64, id 2626, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT802 1.0.5.11
Supported: path[|sip]
21:09:48.016174 IP (tos 0xc8, ttl 64, id 51393, offset 0, flags [none], proto ICMP (1), length 576)
192.168.0.174 > 192.168.0.114: ICMP 192.168.0.174 udp port sip unreachable, length 556
IP (tos 0x68, ttl 64, id 2626, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT8[|sip]
21:09:48.229994 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.114 tell 192.168.0.1, length 46
21:09:52.019721 IP (tos 0x68, ttl 64, id 2627, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT802 1.0.5.11
Supported: path[|sip]
21:09:52.019781 IP (tos 0xc8, ttl 64, id 51394, offset 0, flags [none], proto ICMP (1), length 576)
192.168.0.174 > 192.168.0.114: ICMP 192.168.0.174 udp port sip unreachable, length 556
IP (tos 0x68, ttl 64, id 2627, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT8[|sip]
21:09:56.022804 IP (tos 0x68, ttl 64, id 2628, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT802 1.0.5.11
Supported: path[|sip]
21:09:56.022839 IP (tos 0xc8, ttl 64, id 51395, offset 0, flags [none], proto ICMP (1), length 576)
192.168.0.174 > 192.168.0.114: ICMP 192.168.0.174 udp port sip unreachable, length 556
IP (tos 0x68, ttl 64, id 2628, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT8[|sip]
21:09:57.019685 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.114 tell 192.168.0.174, length 28
21:09:57.020064 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.0.114 is-at 00:0b:82:85:9f:12 (oui Unknown), length 46
21:09:58.435742 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.114 tell 192.168.0.1, length 46
21:10:00.026825 IP (tos 0x68, ttl 64, id 2629, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT802 1.0.5.11
Supported: path[|sip]
21:10:00.026898 IP (tos 0xc8, ttl 64, id 51396, offset 0, flags [none], proto ICMP (1), length 576)
192.168.0.174 > 192.168.0.114: ICMP 192.168.0.174 udp port sip unreachable, length 556
IP (tos 0x68, ttl 64, id 2629, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT8[|sip]
21:10:04.030534 IP (tos 0x68, ttl 64, id 2630, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT802 1.0.5.11
Supported: path[|sip]
21:10:04.030565 IP (tos 0xc8, ttl 64, id 51397, offset 0, flags [none], proto ICMP (1), length 576)
192.168.0.174 > 192.168.0.114: ICMP 192.168.0.174 udp port sip unreachable, length 556
IP (tos 0x68, ttl 64, id 2630, offset 0, flags [none], proto UDP (17), length 617)
192.168.0.114.na-localise > 192.168.0.174.sip: SIP, length: 589
REGISTER sip:pbx.domain.local SIP/2.0
Via: SIP/2.0/UDP 192.168.0.114:5062;branch=z9hG4bK453663537;rport
From: “analogue2” sip:[email protected];tag=610257285
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 2182 REGISTER
Contact: sip:[email protected]:5062;reg-id=2;+sip.instance=“urn:uuid:00000000-0000-1000-8000-000B82859F12
Max-Forwards: 70
User-Agent: Grandstream HT8[|sip]
21:10:08.650657 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.114 tell 192.168.0.1, length 46

Here is the list of chan_sip peers in Asterisk. 192 and 193 work but are powered off.

Name/username Host Dyn Forcerport ACL Port Status Description
161/161 192.168.0.114 No No A 5061 Unmonitored
162/162 192.168.0.114 No No A 5062 Unmonitored
191/191 192.168.0.27 No No A 5060 OK (196 ms)
192/192 192.168.0.28 No No A 5060 UNREACHABLE
193/193 192.168.0.29 No No A 5060 UNREACHABLE
194/194 192.168.0.251 D No A 59860 Unmonitored
7 sip peers [Monitored: 2 online, 2 offline Unmonitored: 3 online, 0 offline]

I would greatly appreciate any help or insight anyone can offer on this. I’ve been working on this in my free time for several days now and havn’t figured out what is going on. I am happy to provide more information if necessary.

EDIT: With a bit more troubleshooting I got it so that when I dial the new extensions from an existing phone they ring, but picking up the phone doesn’t establish the call, and it still goes to voicemail on the other end. As soon as you hang up the analogue phone it continues ringing as if you never picked it up in the first place. It seems like the PBX can reach the ATA, but the ATA can’t reach the PBX.

Here are the advanced settings of the extension in FreePBX. Everything else should be the same as my working phones and shouldn’t be causing any issues.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.