[Freeswitch-users] Cannot force transcoding between PCMU and PCMA

Kliment Toshkov, Netfinity JSC kliment.toshkov at netfinity.bg
Thu Jan 23 15:14:29 UTC 2020


I have to force transcoding between PCMU and PCMA in the following scenario:

Customer [PCMA, PCMU, G729] > Kamailio > Freeswitch 1..N > termination gateway [PCMA]

I need transcoding from PCMU and G729 to take place on Freeswitch boxes. Currently it works for G729 but for PCMU calls they are originated with PCMU.

Inbound profile:
<param name="inbound-codec-prefs" value="$${global_codec_prefs}”/>
<param name="disable-transcoding" value="false"/>

Outbound profile:
<param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>
<param name="disable-transcoding" value="false"/>

  <X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMA,PCMU,G729"/>
  <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMA"/>

In xml dial plan:
              <action application="set" data="inherit_codec=false"/>
              <action application="set" data="media_mix_inbound_outbound_codecs=true"/>

But the calls are still not transcoded between PCMU and PCMA.

Only one thing worked - forcing the codec in bridge app:
                <action application="bridge" data="{absolute_codec_string='PCMA'} ..."/>

But I really need to know what I am missing and how to fix it using config files only. Brute force is not preferred.

Thank you!

Kliment Toshkov
Key Accounts

24/7: 0700 30000 w: www.netfinity.bg <http://www.netfinity.bg/>
t: +359 2 4918888 f: +359 2 4815555


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200123/f6eafcff/attachment-0001.html>

More information about the FreeSWITCH-users mailing list