Setting codec on originating (calling) channel with chan_pjsip (SIP_CODEC_INBOUND equivalent)

Michael Ulitskiy <[email protected]> Fri, 30 Jun 2023 09:30:07 -0400
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Organization Ace Innovative Networks, Inc
Message-ID <[email protected]>
Hello,

I finally got to look at chan_sip to chan_pjsip migration again. This 
time I’m having problems with influencing codec selection on originating 
(calling) channel. It looks like PJSIP_MEDIA_OFFER only works on 
outbound (called) channel and has no affect on calling channel. My 
experiments and function documentation (which says “Media and codec 
offerings to be set on an outbound SIP channel prior to dialing.”) seem 
to confirm it.
So PJSIP_MEDIA_OFFER is supposed to be (and it works) chan_pjsip’s 
equivalent of ${SIP_CODEC_OUTBOUND}, but what is chan_pjsip’s equivalent 
of ${SIP_CODEC_INBOUND}? Or, in other words, what are we supposed to do 
to influence /calling/ channel codec selection from dialplan?
I’m working with asterisk 20.3.0.

Thank you,
Michael

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users