asterisk / asterisk-feature-requests

A place to submit feature and improvement requests for the Asterisk project. Contains no code.
2 stars 1 forks source link

Provide equivalent of ${SIP_CODEC_INBOUND} with chan_pjsip #9

Open mdu113 opened 1 year ago

mdu113 commented 1 year ago

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:

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