[asterisk-users] set codec based on B side

Fabian Borot fborot at hotmail.com
Tue Jan 31 10:21:12 CST 2023


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230131/4cdd1ede/attachment.html>


More information about the asterisk-users mailing list