i have a case that
freeswitch receive calls from different sip phones supporting different codecs
i want to trans code and then pass to leg b in a way that
every codec is trans code to PCMA / PCMU
like
iLBC -> PCMU
Speex -> PCMA
Silk -> PCMU

but if leg A offer G729 then it passes to leg B with out trans coding

what is the best way to do that

regards

Shahzad Bhatti