r/Asterisk • u/BlindKidsLife • 14h ago
JsSIP browser call connects but no audio — Asterisk 20 + coturn, relay refuses the browser's private address. What am I missing?
Hi everyone — I'm Hao, and I host a small podcast called Blind Kid's Life. I'm blind, and a lot of my listeners are too, so I built a free call-in line so people who can't use Spotify can just phone in and listen to episodes. It works when I test it in the Linphone app, but the browser link — the one a listener would simply tap, with no app to install — connects and then plays no sound at all. I've spent days on this and I'm stuck, so I'm hoping someone here can spot what I'm missing.
Here's the setup. The call page uses JsSIP 3.10.1 in Chrome, talking to Asterisk 20 (webrtc=yes) over secure WebSocket, with a coturn relay on the same cloud server. The call connects — the page says "Connected" — but there is no audio in either direction. The same Asterisk and coturn carry Linphone calls end to end with sound, so the server side can relay media; the failure is specific to the browser.
What the relay's own log shows: when the browser calls, Asterisk asks coturn for permission to send media to the browser's private home address, 10.10.10.172, and coturn refuses with 403 "Forbidden IP", because that address is in a denied private range. No media packets were relayed at all — the relay's usage counters stayed at zero. I then set the page to relay-only ICE (iceTransportPolicy: "relay" in the JsSIP pcConfig), confirmed it in the live page file, and loaded it fresh. On that relay-only call the browser allocated no TURN session at all and offered only its private address, and the call still connected in silence.
My three questions:
- Does JsSIP 3.10.1 actually pass the pcConfig — including iceTransportPolicy — through to the real RTCPeerConnection, or does it drop it? And if it drops it, is there a correct way to force relay-only through JsSIP?
- Is there an Asterisk-side setting that makes it use the browser's public relay address instead of asking the relay for permission to the browser's private address?
- Why would the browser allocate a TURN relay session on the very first call, but allocate none at all once relay-only is set?
Thank you for reading this far, and for any pointers at all. This line matters to my listeners, and I'd love to get it working for them.