Grandstream HT813 as PSTN Gateway

If i put these parameter like this :
username=03XXXXXXXX
type=friend
secret=xxxxxxxxxx
host=dynamic
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw&alaw
fromuser=03XXXXXXXX

The trunk won’t be up, and HT don’t register at all.

I see that on status page of HT :

|Port|Hook   |User ID   |Registration  |
|----|-------|----------|--------------|
|FXS |On Hook|          |Not Registered|
|FXO |Idle   |03XXXXXXXX|Not Registered|

OK, so we need to find out why it’s failing to register.

On the FXO page, confirm that you have
Account Active: Yes
Primary SIP Sever: 192.168.2.243:5160
(Replace 192.168.2.243 with the IP address of the PBX and 5160 with the value of Bind Port for chan_sip, if either of these have changed.)
Outbound Proxy: (leave blank)
SIP User ID: 03XXXXXXXX
Authenticate ID: 03XXXXXXXX
Authenticate Password: (match secret for the trunk)

If it still won’t register, use SIP debug to see registration attempts. If you don’t see any, they are possibly being blocked by FreePBX firewall; briefly turn it off as a test. You can use tcpdump to see if any REGISTER packets are coming in.

in the firewall all of my local lan was marked as trusted. I guess it’s not that the problem

all config described on top for the HT was identical…

TCPDUMP not seing further info

On a failed registration with 403, HT (by default) waits 20 minutes before trying again. With tcpdump capturing and sip debug also running, reboot the HT and wait for it to come ready. If you still don’t see any registration attempts, please post a screenshot of the FXO page – I’m pretty sure something is in error there.

I have some :

22	[2020-09-11 16:58:41] WARNING[5992][C-0000011c] Ext. s: "Rejecting unknown SIP connection from 192.168.2.14"	
23	[2020-09-11 23:26:13] WARNING[26282] res_pjsip_pubsub.c: Subscription request from endpoint anonymous rejected. Expiration of 0 is invalid	
24	[2020-09-11 23:26:13] WARNING[11020] res_pjsip_pubsub.c: Subscription request from endpoint anonymous rejected. Expiration of 0 is invalid	
25	[2020-09-11 23:26:14] WARNING[2904] res_pjsip_pubsub.c: Subscription request from endpoint anonymous rejected. Expiration of 0 is invalid	
26	[2020-09-11 23:26:16] WARNING[30649] res_pjsip_pubsub.c: Subscription request from endpoint anonymous rejected. Expiration of 0 is invalid

I’m so disapointed… if i take dynamic in host ht813 seem’s never register to freepbx. (i’ve yesterday update to FPBX 15)

Your log shows 6+ hours with no activity. That’s very strange if you have pjsip logger and sip debug both on. Note that these commands get canceled when you Apply Config or otherwise reload or restart Asterisk, so you need to give them again. After doing that, reboot the HT so it tries to register.

Please confirm that in Asterisk SIP settings, pjsip Port to Listen On is still 5060 (the default) and sip Bind Port is still 5160 (the default). Also, post a screenshot of the current FXO port settings.

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