st6
October 4, 2022, 1:01pm
1
Hello Guys,
Can I force asterisk to follow which codec priority order it should offer to my carrier ? I have in my pjsip.conf:
disallow = all
allow = alaw,g729,ulaw
then when I make a call I have this order in my invite:
I would like to have in my SDP the same order as I configured in pjsip.conf.
My asterisk version is: 18.14.0
Thank you in advanced.
; order.
; remote_first - Include only the first codec in
; the remote list that is also in the local list.
;outgoing_call_offer_pref= ; Based on this setting, a joint list of
; preferred codecs between those received from the
; Asterisk core (remote), and those specified in
; the endpoint's "allow" parameter (local) is
; created and is used to create the outgoing SDP
; offer.
;
; local - Include all codecs in the local list that
; are also in the remote list preserving the local
; order.
; local_merge - Include all codecs in the local list
; preserving the local order.
; local_first - Include only the first codec in the
; local list.
; remote - Include all codecs in the remote list that
; are also in the local list preserving remote list
; order.
; remote_merge - Include all codecs in the local list
As it says, the default is to use the A side order, to minimise the need for Asterisk to transcode.
If you are in an A-law country, you should make sure all your local devices prefer A-law, otherwise you will end up with a, very slightly lossy, unnecessary transcode.
st6
October 4, 2022, 2:12pm
3
Worked very well ! Thanks !
system
Closed
November 3, 2022, 2:13pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.