Skip to content

Support Opus on SIP Trunks #281

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

Open
ruhnet opened this issue Feb 12, 2025 · 1 comment
Open

Support Opus on SIP Trunks #281

ruhnet opened this issue Feb 12, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ruhnet
Copy link

ruhnet commented Feb 12, 2025

When trying to enable OPUS with "OPUS/48000/2": true in the config file, SIP invites still don't offer the Opus codec over the trunk.

According to the contents of sip/pkg/sip
/media_codecs.go

the only codecs supported on the SIP side of things are G711 and G722.

I looked at the pkg/media/opus/opus.go file and compared it to pkg/media/g722/g722.go and I see that some functions are similar, but the opus.go file is missing the init() function and doesn't register itself.

Many SIP trunks (particularly when connecting to a PBX of some sort) support the Opus codec, so it would be very useful to have it available for use on the SIP side.

@dennwc dennwc self-assigned this Feb 24, 2025
@dennwc dennwc added the enhancement New feature or request label Feb 24, 2025
@dennwc
Copy link
Contributor

dennwc commented Feb 24, 2025

It's definitely on our roadmap, especially because LiveKit uses OPUS internally.

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

No branches or pull requests

2 participants