Hi everyone,
I’m having a bit of trouble and I hope someone can explain if what I’m trying to do is possible.
I have a FreePBX system with PJSIP extensions.
One of my extensions (1001) works perfectly with a web application that connects through WebRTC (WSS / DTLS-SRTP).
Another extension (1004) works fine with Zoiper or Bria softphones (SIP over UDP/TLS).
What I’d like to do is use the same extension (for example 1001) with both:
- a WebRTC client in the browser
- and a normal SIP softphone like Zoiper or Bria
When I try to connect Zoiper or Bria to the WebRTC extension, the registration works, but when I make a call I get this error:
res_pjsip_session.c: Couldn't negotiate stream 0:audio-0:audio:sendrecv (nothing)
I guess it’s because of encryption or codec differences (DTLS vs RTP, Opus vs G711?), but I’m not sure.
My question is:
Is there any way to make a single FreePBX extension work for both WebRTC and classic SIP softphones, or do I really need to create two different extensions (one for WebRTC and one for SIP)?
I’d really appreciate a simple explanation or example setup if someone managed to make it work.
Thanks a lot in advance!