Skip to content
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

support force opus pcmu transcode #175

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

xquanluu
Copy link
Contributor

@xquanluu xquanluu commented Nov 1, 2024

No description provided.

lib/utils.js Outdated
@@ -34,7 +34,8 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, teams = false) {
'call-id': req.get('Call-ID'),
'replace': ['origin', 'session-connection'],
'record call': process.env.JAMBONES_RECORD_ALL_CALLS ? 'yes' : 'no',
...(process.env.JAMBONES_ACCEPT_G729 && { codec: { mask: 'g729', transcode: 'pcmu' } })
...(process.env.JAMBONES_ACCEPT_G729 && { codec: { mask: 'g729', transcode: 'pcmu' } }),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about both JAMBONES_ACCEPT_G729 and JAMBONES_OPUS_PCMU_TRANSCODE enabled ????

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still need to support JAMBONES_ACCEPT_G729 for backwards compatibility. However, we should implement also a more general solution which is a list of codecs to accept, but to transcode to PCMU/PCMA if received, e.g. "JAMBONES_ACCEPT_AND_TRANSCODE: "opus, g722"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davehorton just for discussion like genesys once can choose codecs setting at carrier end , this would be more generic feature and specific to carrier based on customer needs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, tested on jambonz.me

@xquanluu xquanluu marked this pull request as ready for review November 4, 2024 10:58
@vdharashive
Copy link
Contributor

@davehorton we have tested this it can be merged

@davehorton
Copy link
Collaborator

@vdharashive have you tested with webrtc AC client, and with anchorMedia false?

@vdharashive
Copy link
Contributor

@davehorton anchorMedia false i have not tested since all our call have to be transcribe hence it needs to go to freeswitch

@davehorton
Copy link
Collaborator

for testing purposes, can you do such a test? We need to make sure the 'release media' still works with this change

@davehorton davehorton force-pushed the feat/opus_pcmu_transcode branch from baa146b to 033d4de Compare November 14, 2024 17:20
@davehorton davehorton merged commit 4add329 into main Nov 14, 2024
3 checks passed
@davehorton davehorton deleted the feat/opus_pcmu_transcode branch November 14, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants