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

Provide equivalent of ${SIP_CODEC_INBOUND} with chan_pjsip #9

Open
mdu113 opened this issue Jul 6, 2023 · 0 comments
Open

Provide equivalent of ${SIP_CODEC_INBOUND} with chan_pjsip #9

mdu113 opened this issue Jul 6, 2023 · 0 comments

Comments

@mdu113
Copy link

mdu113 commented Jul 6, 2023

Currently there's no way to influence original/calling channel codec selection from dialplan. PJSIP_MEDIA_OFFER function only works for oubound/called channel.

Influencing original/calling channel codec selection is sometimes necessary to avoid transcoding. Please consider the following scenario:

  • internal extensions are set to talk to each other using g722. so their codec setting is "allow=!all,g722,ulaw"
  • carriers trunks support ulaw only (allow=!all,ulaw)
  • calls between internal extensions naturally happen over g722 as its their preferred codec
  • external calls result in g722-to-ulaw transcoding. With chan_sip it's possible to set SIP_CODEC_INBOUND=ulaw on calling channel to avoid transcoding. The same functionality is highly desirable with chan_pjsip.

I would imagine extending PJSIP_MEDIA_OFFER to work on original/calling channel as well would be the best way to do it

Thank you

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

No branches or pull requests

1 participant