Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register FreeSWITCH : SIP/2.0 403 Forbidden #1048

Open
mohbadar opened this issue Jun 22, 2023 · 1 comment
Open

Register FreeSWITCH : SIP/2.0 403 Forbidden #1048

mohbadar opened this issue Jun 22, 2023 · 1 comment

Comments

@mohbadar
Copy link

mohbadar commented Jun 22, 2023

I want to sign up with FreeSWITCH. The websocket connection works fine. But I get 403 Forbidden when I attempt to register.

Request :

REGISTER sip:XXX SIP/2.0
Via: SIP/2.0/WSS 192.0.2.167;branch=z9hG4bK8523223;rport
To: <sip:XXX@XXX>
From: "221" <sip:XXX@XXX>;tag=bv0o1mu9ai
CSeq: 3 REGISTER
Call-ID: odv3kkvcr07nf677m4na
Max-Forwards: 70
Authorization: Digest algorithm=MD5, username="XXX", realm="XXX", nonce="dfd0aad1-7fcf-4a6c-afb8-01344b15ff2a", uri="sip:XXX", response="f38b7d9994f57e1e37ae19907999be63", qop=auth, cnonce="g3vp3mpr4m0m", nc=00000001
Contact: <sip:h3si0vvb@192.0.2.167;transport=ws>;expires=600
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound, path, gruu
User-Agent: 221
Content-Length: 0

Error Response:

SIP/2.0 403 Forbidden
Via: SIP/2.0/WSS 192.0.2.167;branch=z9hG4bK603240;rport=54454;received=xx.xx.xx.xx
From: "221" <sip:XXX@XXX>;tag=qqr8mq6jsk
To: <sip:XXX@XXX>;tag=5XKFQZ37yQ5vB
Call-ID: odv3kkvcr07nf677m4na
CSeq: 3 REGISTER
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Length: 0

Note: the credentials are already checked with other SIP apps and they work fine.

Support please !

@RaddishIoW
Copy link

Check the logs on FreeSWTICH, as there's probably more information there on why this failed.

It might, for instance, tell you that the user is not allowed to login from WSS connections, or something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants