Assuming that one has purchase a g729 license, can 2 trunks be opened, one running g711 and the other g729? And can the different codecs be set within Freepbx?
On each of the target trunk’s own TRUNK page
Under OUTGOING SETTINGS, PEER DETAILS,
[trunk-1]
type=friend
disallow=all
allow=g711
then on the next target trunk’s own page,
under OUTGOING SETTINGS, PEER DETAILS,
[trunk-2]
type=friend
disallow=all
allow=g729
Be advised that transcoding (translation) can be hard on the CPU, depending on the CODEC, the CPU, the CODEC-CPU instruction-set optimization (e.g. SSE3, or not), and the number of concurrent sessions.
Suggest using,
*CLI> core show translation recalc
Recalculating Codec Translation (number of sample seconds: 1)
This will show how “expensive” translations are on your machine and installed codecs.
/S