Codec negotiation question

  1. Last I checked, it was not possible to use the first priority codec that is common between two endpoints. Does this change in Asterisk 13?

I want to use G.722, but only if both endpoints support it. Otherwise, I’ll use G.711 so that there is no transcoding.

Thanks to anyone who can answer my question!

Don’t everyone reply at once now.

I don’t believe Asterisk supports late offer SDP on INVITEs that it initiates, which limits the possibilites.

If you do know what party B supports, without actually calling them, there are channel variables you can set to force the choice of codecs.

NB you must not answer the call or generate early media, until you know party B’s capabilties.