Codec Priority
#1183
Replies: 1 comment 1 reply
-
You are correct, the codec selection logic is very unophisticated, it simply uses the first available compatible codec. It could defnitely do with some improvement. There is a way to specify you only want certain codecs as below but that's not really the same thing.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all, I'm quite new to SIP and am confused about SipSorcery's codec priority handling, as well as codec selection generally. For context, I have a very simple use case of sending audio to endpoints over a SIP call. Supporting G722 seemed like an obvious choice for its greater audio quality, as well as PCMU for low bandwidth usage and its wide amount of support. However, regardless of how the codecs are prioritized on the device and it's VoIP infrastructure, PCMU is always chosen over G722 for RTP. I've included G729 to test this and priority seems to go to G722 regardless of priority configuration on device, PBX, and Trunk.
Does this have to do with how codecs are negotiated with SDP? It seems like the codec listed first gets priority over subsequent codec offerings, but from what I understand the endpoint receiving the audio gets final say in what codec to use.
Beta Was this translation helpful? Give feedback.
All reactions