this post was submitted on 28 Nov 2023
1 points (100.0% liked)

VoIP

1 readers
1 users here now

Rules

founded 11 months ago
MODERATORS
 

I have no idea why this is happening, but I'm using FreePBX and i've setup Sangoma talk. It works perfectly fine over WiFi and 4G for some providers (Optus) but when i try to register the phone on 4G on another provider (Telstra), it can't authenticate. It only doesn't work on that network (Telstra).

From my understanding of SIP registration, it should go like:
CLIENT to SERVER: REGISTER
SERVER to CLIENT: 401 Unauthorized
CLIENT to SERVER: REGISTER (containing authentication information)
SERVER to CLIENT: 200 OK

I've setup a wireshark capture on my phone connecting from my Optus SIM and it authenticates without issue. I see in the SIP packet the Authorization, the digest username, the realm, the nonce and URI in the actual packet itself, it looks like the above.

However when i look at the Telstra packet, the authorization part of the packet just isn't there? It's as if it never responds with the Authentication, which is strange, it looks like:
CLIENT to SERVER: REGISTER
SERVER to CLIENT: 401 Unauthorized
CLIENT to SERVER: REGISTER
CLIENT to SERVER: REGISTER
SERVER to CLIENT: 401 Unauthorized
CLIENT to SERVER: REGISTER
CLIENT to SERVER: REGISTER
SERVER to CLIENT: 401 Unauthorized
(and continues)

Does anyone know where i should go for this? Why would my phone behave differently on the 2 networks?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] rat_blue@alien.top 1 points 9 months ago (1 children)

Yes sorry I should have specified. Telstra is on 4g. Works using Telstra broadband, just not 4g. Could it be a NAT issue?

[โ€“] AAAHeadsets@alien.top 1 points 9 months ago

My thought is NAT issue, though I'd have thought Sangoma Talk would use a STUN server to handle that.

The fact the phone keeps sending the REGISTER over and over, suggests it's not receiving the 401 response. I'd start by double checking the Telstra 4G IP address,
then making sure the REGISTER has the correct IP in the Contact header.

I'm not sure what logging you've setup on the phone, but are you able to see the 401 arrive on the phone?