SIP.js icon indicating copy to clipboard operation
SIP.js copied to clipboard

Register FreeSWITCH : SIP/2.0 403 Forbidden

Open mohbadar opened this issue 2 years ago • 1 comments

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:[email protected];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 !

mohbadar avatar Jun 22 '23 08:06 mohbadar

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.

RaddishIoW avatar Oct 17 '23 14:10 RaddishIoW