I have Cisco Router ISR4331 with UC IOS, A-Flex License License.
For Voice, i got the connection from ISP i.e. SIP TRUNK line and he provided these codecs , g711 ,g729/t.38 port 5060
Please find the below config:
voice service voipip address trusted ...