Set Codec Based On B Side

Home » Asterisk Users » Set Codec Based On B Side
Asterisk Users 1 Comment

Using Asterisk 18.12.0, a little confused on how to configure my pjsip.conf file to determine the codec to use for a call

I have 2 endpoints:
[Alice]
disallow:all allow:ulaw,alaw,g729

[Bob]
disallow:all allow:ulaw,alaw,g729

Alice calls into Asterisk on ext 100 and then we dial Bob I want to wait until Bod side codec is chosen to answer Alice and have each channel use the codec chose on Bob side.

I see these options on this link, https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Configuration_res_pjsip

codec_prefs_incoming_offer codec_prefs_outgoing_offer codec_prefs_incoming_answer codec_prefs_outgoing_answer

but I dont see them on my pjsip.conf file. I only see these tow:
incoming_call_offer_pref outgoing_call_offer_pref

Do I have to use the 4 of them on each endoint Alice and Bob? Or just one side should be enough?

One thought on - Set Codec Based On B Side