Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17577

403 error registering to SIP provider

$
0
0

Hi all,

I installed a new FreePBX server on a Raspberry Pi.
FreePBX 16.0.40.7 and Asterisk 20.7.0.

But this new one can’t register. I get error 403 Forbidden fatal response.

In the logs it says: Bad auth, invalid user/password. But I’m 100% sure my username and password are correct. I checked if there is a hidden space or anything.

I contacted my provider and they say everything is fine on their end.

I have and old FreePBX server on an SD card. This one can still register. But it uses chan_SIP. The new one uses PJSIP. But the old server is breaking because of security issues.

My new FreePBX can call outside btw. Only incoming calls are not working.

<--- Transmitting SIP request (769 bytes) to UDP:195.35.115.24:5060 --->

REGISTER sip:ha.voys.nl:5060 SIP/2.0

Via: SIP/2.0/UDP XXX.XXX.XXX.XXX:5060;rport;branch=a31a9-b11e-46b3-98f3-439736b

From: <sip:XXXXXXXXX@ha.voys.nl>;tag=3bfe9f-aedc-45cb-a780

To: <sip:XXXXXXXXX@ha.voys.nl>

Call-ID: 811-4e65-9e828a1474

CSeq: 61221 REGISTER

Contact: <sip:XXXXXXXXX@XXX.XXX.XXX.XXX:5060;line=ylkzd>

Expires: 3600

Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER

Max-Forwards: 70

User-Agent: FPBX-16.0.40.8(20.7.0)

Authorization: Digest username="XXXXXXXXX", realm="voipgrid.nl", nonce="B/1Qju3J4l99rls7NOcOPhBAxJt4zZlEA", uri="sip:ha.voys.nl:5060", response="9dea2567c7363031ce"

Content-Length: 0

<--- Received SIP response (452 bytes) from UDP:195.35.115.24:5060 --->

SIP/2.0 403 Forbidden

Via: SIP/2.0/UDP XXX.XXX.XXX.XXX:5060;received=XXX.XXX.XXX.XXX;rport=5060;branch=zbKPjc5da31a9-b11e-46b3-98f736b

To: <sip:XXXXXXXXX@ha.voys.nl>;tag=d720-ec1f15cc3bc8c3f2fda64a102fe

From: <sip:XXXXXXXXX@ha.voys.nl>;tag=3bf83e9f-aed-f6b32fc3d780

Call-ID: 818f2dd0-b6d75328a1474

CSeq: 61221 REGISTER

X-VG-Reason: BadAuth, invalid user/password

Server: VGPXY--OS

Content-Length: 0

[2024-06-07 12:25:16] **WARNING**[1255]: **res_pjsip_outbound_registration.c**:**1383** **handle_registration_response**: 403 Forbidden fatal response received from 'sip:ha.voys.nl:5060' on registration attempt to 'sip:XXXXXXXXX@ha.voys.nl:5060', retrying in '30' seconds

Also I found the following in the logs after I did a fwconsole restart:

42184	[2024-06-07 12:27:35] VERBOSE[14614] asterisk.c: Asterisk Ready.	
42185	[2024-06-07 12:27:42] WARNING[14665] res_pjsip_outbound_registration.c: 403 Forbidden fatal response received from 'sip:ha.voys.nl:5060' on registration attempt to 'sip:XXXXXXXXX@ha.voys.nl:5060', retrying in '30' seconds	
42186	[2024-06-07 12:28:04] VERBOSE[14665] res_pjsip/pjsip_configuration.c: Endpoint 401 is now Reachable	
42187	[2024-06-07 12:28:04] VERBOSE[14665] res_pjsip/pjsip_options.c: Contact 401/sip:401@192.168.XX.XX:5060 is now Reachable. RTT: 14.782 msec	
42188	[2024-06-07 12:28:11] VERBOSE[14665] res_pjsip/pjsip_configuration.c: Endpoint SIP_Trunk is now Reachable	
42189	[2024-06-07 12:28:11] VERBOSE[14665] res_pjsip/pjsip_options.c: Contact SIP_Trunk/sip:XXXXXXXXX@ha.voys.nl:5060 is now Reachable. RTT: 98.568 msec	
42190	[2024-06-07 12:28:12] WARNING[14665] res_pjsip_outbound_registration.c: 403 Forbidden fatal response received from 'sip:ha.voys.nl:5060' on registration attempt to 'sip:XXXXXXXXX@ha.voys.nl:5060', retrying in '30' seconds	
42191	[2024-06-07 12:28:20] VERBOSE[14665] res_pjsip/pjsip_configuration.c: Endpoint 409 is now Reachable	
42192	[2024-06-07 12:28:20] VERBOSE[14665] res_pjsip/pjsip_options.c: Contact 409/sip:409@192.168.XX.XX:63657;rinstance=b087907eb0eb648a is now Reachable. RTT: 5.750 msec

Does this mean it briefly connected to the provider?

Thanks in advance for any help.

Kind regards.

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 17577


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>