I have 4 remote (e.g: 216,221,223) and 3 local extension (e.g: 200, 215)
It’s strange, but 1 out of 4 remote phones and 1 out of 3 local phones can connect, the others can’t. (SIP/2.0 401 Unauthorized)
My FreePBX server: 10.0.0.111/178.XXX.XXX.XXX
My Remote Extension’s IP: 86.XXX.XXX.XXX
What I checked:
-Router’s Port forward (5060 UDP and the range) - correct
-Extension’s password - correct
-FreePBX firewall OFF/whitlist our IP’S - no change
-Phones firmware (GrandSteram 1610/1628) - latest
-Voiper - connect from local/remote pc/CellPhone - Working
-Reboot VoIP Phones
What else should I check?
Thanks if you help
This is a small part of my pjsip log:
REGISTER sip:10.0.0.111:13666 SIP/2.0
Via: SIP/2.0/UDP 86.XXX.XXX.XXX:1104;branch=z9hG4bK997122619;rport
From: sip:[email protected]:13666;tag=1140668235
To: sip:[email protected]:13666
Call-ID: [email protected]
CSeq: 2000 REGISTER
Contact: sip:[email protected]:1104;reg-id=1;+sip.instance=“urn:uuid:00000000-0000-1000-8000-C074AD69C48B”
Max-Forwards: 70
User-Agent: Grandstream GXP1615 1.0.7.64
Supported: path
Expires: 3600
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2024-02-19 13:57:33] VERBOSE[3530] res_pjsip_logger.c: <— Transmitting SIP response (474 bytes) to UDP:86.XXX.XXX.XXX:1104 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 86.XXX.XXX.XXX:1104;rport=1104;received=86.XXX.XXX.XXX;branch=z9hG4bK997122619
Call-ID: [email protected]
From: sip:[email protected];tag=1140668235
To: sip:[email protected];tag=z9hG4bK997122619
CSeq: 2000 REGISTER
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1708347453/a2be10077fcc10f6955f4114d1562dfd”,opaque=“1c36ee1813b3879a”,algorithm=MD5,qop=“auth”
Server: FPBX-16.0.40.7(18.20.2)
Content-Length: 0
[2024-02-19 13:57:37] VERBOSE[3530] res_pjsip_logger.c: <— Transmitting SIP request (419 bytes) to UDP:86.XXX.XXX.XXX:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 178.XXX.XXX.XXX:5060;rport;branch=z9hG4bKPj8e0eef39-c1ab-4e1f-98f2-3dad43f2aa1d
From: sip:[email protected];tag=843964e2-e6f5-46cc-a9c7-c4738db4f642
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 7a718bbe-ae4e-4475-9eb1-cf68cfce86ec
CSeq: 4024 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.40.7(18.20.2)
Content-Length: 0
[2024-02-19 13:57:37] VERBOSE[3529] res_pjsip_logger.c: <— Received SIP response (491 bytes) from UDP:86.XXX.XXX.XXX:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.111:5060;rport=5060;branch=z9hG4bKPj8e0eef39-c1ab-4e1f-98f2-3dad43f2aa1d
From: sip:[email protected]:5060;tag=843964e2-e6f5-46cc-a9c7-c4738db4f642
To: sip:[email protected]:5060;tag=812217463
Call-ID: 7a718bbe-ae4e-4475-9eb1-cf68cfce86ec
CSeq: 4024 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP1610 1.0.7.64
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2024-02-19 13:57:40] VERBOSE[3529] res_pjsip_logger.c: <— Transmitting SIP request (418 bytes) to UDP:178.XXX.XXX.XXX:8128 —>
OPTIONS sip:[email protected]:8128 SIP/2.0
Via: SIP/2.0/UDP 178.XXX.XXX.XXX:5060;rport;branch=z9hG4bKPjd221c20f-350b-4f93-b947-222fd3e8468a
From: sip:[email protected];tag=8da4f929-c569-419b-b1f6-f120a72ac2e2
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: 8d74c352-e16e-467e-bae7-64ce2dff647c
CSeq: 45180 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.40.7(18.20.2)
Content-Length: 0