Need insights on Endpoint issue w/ my Grandstream GXP2100 VOIP phone

greetings to all,

am still new to Asterisk & i am now able to utilize my isp’s VOIP using OpenWRT & Asterisk, can do basic calls via MicroSIP/Zoiper, so far so good.

i have recently was able to get a Grandstream GXP2100 but i am not able to get pass ‘register’ for this device/unit, it would say on the logs like: ‘No matching endpooint found‘ & “Failed to authenticate“

9000 is used by MicroSIP on Windows 10 (no issues)
9001 is used by Zoiper on my ancient android phone (also good)
9002 is used by Grandstream GXP2100 (problem registering…)
172.31.20.190 is GXP2100
172.31.20.254 is Asterisk server

my pjsip.conf (partial)
[global]
type=global
user_agent="HUAWEI-OptiXstar HG8145X6-10/V5R022C00S319"
debug=yes

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060

[9000]
type=endpoint
context=internal
disallow=all
allow=ulaw,alaw
auth=9000
aors=9000

[9000]
type=auth
auth_type=userpass
password=dD@b1aN0
username=9000

[9000]
type=aor
max_contacts=1

[9001]
type=endpoint
context=internal
disallow=all
allow=ulaw,alaw
auth=9001
aors=9001

[9001]
type=auth
auth_type=userpass
password=pass9001
username=9001

[9001]
type=aor
max_contacts=1

[9002_endpoint]
type=endpoint
context=internal
disallow=all
allow=ulaw,alaw
auth=9002_auth
aors=9002_aor
rewrite_contact=yes
dtmf_mode=rfc4733

[9002_auth]
type=auth
auth_type=userpass
password=dabpass9876
username=9002

[9002_aor]
type=aor
contact=sip:*@172.31.20.254:5060
max_contacts=1

[9002_identify]
type=identify
endpoint=9002_endpoint
match=172.31.20.254

GXP2100 settings/screenshot

diagnostic logs
[Aug 24 19:50:24] <--- Received SIP request (848 bytes) from UDP:172.31.20.190:5060 --->
[Aug 24 19:50:24] REGISTER sip:172.31.20.254 SIP/2.0
[Aug 24 19:50:24] Via: SIP/2.0/UDP 172.31.20.190:5060;branch=z9hG4bK608439452;rport
[Aug 24 19:50:24] From: <sip:9002@172.31.20.254>;tag=749147715
[Aug 24 19:50:24] To: <sip:9002@172.31.20.254>
[Aug 24 19:50:24] Call-ID: 1322698042-5060-1@BHC.DB.CA.BJA
[Aug 24 19:50:24] CSeq: 2140 REGISTER
[Aug 24 19:50:24] Contact: <sip:9002@172.31.20.190:5060>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-1000-8000-000B8240EFB4>"
[Aug 24 19:50:24] Authorization: Digest username="9002", realm="asterisk", nonce="1756065003/eb229cc47bb63305534a94997c8bc8fe", uri="sip:172.31.20.254", response="b060cad5a7c66236538b0c9037bdbf1d", algorithm=MD5, cnonce="00970483", opaque="6573f1e02d5541c4", qop=auth, nc=0000008c
[Aug 24 19:50:24] X-Grandstream-PBX: true
[Aug 24 19:50:24] Max-Forwards: 70
[Aug 24 19:50:24] User-Agent: Grandstream GXP2100 1.0.5.23
[Aug 24 19:50:24] Supported: path
[Aug 24 19:50:24] Expires: 3600
[Aug 24 19:50:24] Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
[Aug 24 19:50:24] Content-Length: 0
[Aug 24 19:50:24]
[Aug 24 19:50:24]
[Aug 24 19:50:24] NOTICE[3012]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'REGISTER' from '<sip:9002@172.31.20.254>' failed for '172.31.20.190:5060' (callid: 1322698042-5060-1@BHC.DB.CA.BJA) - No matching endpoint found
[Aug 24 19:50:24] NOTICE[3012]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'REGISTER' from '<sip:9002@172.31.20.254>' failed for '172.31.20.190:5060' (callid: 1322698042-5060-1@BHC.DB.CA.BJA) - Failed to authenticate
[Aug 24 19:50:24] <--- Transmitting SIP response (503 bytes) to UDP:172.31.20.190:5060 --->
[Aug 24 19:50:24] SIP/2.0 401 Unauthorized
[Aug 24 19:50:24] Via: SIP/2.0/UDP 172.31.20.190:5060;rport=5060;received=172.31.20.190;branch=z9hG4bK608439452
[Aug 24 19:50:24] Call-ID: 1322698042-5060-1@BHC.DB.CA.BJA
[Aug 24 19:50:24] From: <sip:9002@172.31.20.254>;tag=749147715
[Aug 24 19:50:24] To: <sip:9002@172.31.20.254>;tag=z9hG4bK608439452
[Aug 24 19:50:24] CSeq: 2140 REGISTER
[Aug 24 19:50:24] WWW-Authenticate: Digest realm="asterisk",nonce="1756065024/145a1abebbbff5d2ec5986f230838c69",opaque="1d45618008e2da56",algorithm=MD5,qop="auth"
[Aug 24 19:50:24] Server: "HUAWEI-OptiXstar HG8145X6-10/V5R022C00S319"
[Aug 24 19:50:24] Content-Length:  0

my configuration for 9002 is a mess right now as i am trying anything i can find on the interwebs to make it work.

any insights is appreciated & thanks for taking time reading my post.

To user should be 9002_aor, or aor name should be 9002.

Also * is not a good choice of AOR user, although might work.

thank you for replying David,
anyways, if you meant about pjsip.conf, ‘sections’ for “9002” was originally just ‘9002’

i changed it now like below but still no go…

[9002]
type=endpoint
context=internal
disallow=all
allow=ulaw,alaw
auth=9002
aors=9002
rewrite_contact=yes
dtmf_mode=rfc4733

[9002]
type=auth
auth_type=userpass
password=1234
username=9002

[9002]
type=aor
contact=sip:9002@172.31.20.254:5060
max_contacts=1

[9002_identify]
type=identify
endpoint=9002
match=172.31.20.254

update:

for some reason, i was editing a non-existing pjsip.conf file via WinSCP (it did not synced thru to the OpenWRT/asterisk server)

i have updated below & it works

[9002]
type=endpoint
context=internal
disallow=all
allow=ulaw,alaw
auth=9002
aors=9002

[9002]
type=auth
auth_type=userpass
password=1234
username=9002

[9002]
type=aor
max_contacts=1

thanks to all!

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