Pjsip migration - SIP_CODEC and SIP_CODEC_OUTBOUND

Your code looks right, and I also have the same issue where asterisk shows the wrong codec. I just assumed it was a bug or design and just left it as is. I am able to differentiate how g711 vs g722 sounds like, plus both endpoints are confirming that the in-use codec is g722, so I am confident that it what you are seeing in the CLI doesn’t even matter. I also noticed the same behavior in chan_sip btw, which is what eased my concerned even more so.