when using chan_sip, I can use set SIP_CODEC in dialplan to change the codec of endpoint. this method didn’t work with pjsip in asterisk
I found asterisk 12/13 has a new function PJSIP_MEDIA_OFFER. according to the description, it seems can set codec, but the document didn’t offer any example. i try to use something like PJSIP_MEDIA_OFFER(alaw) but didn’t work.
can someone give an example for the function? thanks for the help.