Click on the "Connectivity" tab, then click on "Trunks" from the drop-down menu.
Add a new SIP (chan_pjsip) Trunk.
Change to the "Dialed Number Manipulation Rules" tab.
Match the rules below:
Change to "pjsip Settings" tab.
Set the following codecs in order:
Submit and apply the configuration.