[Freeswitch-users] Choosing a Codec.

Vinuth Madinur vinuth.madinur at gmail.com
Tue Dec 22 14:28:03 PST 2009


Hi,

I am playing a file to a landline number.

the format of the file is as follows:

[root at static-host var]# file message.wav
message.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono
8000 Hz

In my vars.xml file I have used the following codec prefs:

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

However, when freeswitch plays it, it always chooses the L16 at 8000hz codec.
I'm not understanding why this is so.

EXECUTE sofia/external/5135692990 at 208.78.161.197 playback(/var/message.wav)
2009-12-22 17:16:57.357048 [DEBUG] switch_ivr_play_say.c:1135 Codec
Activated L16 at 8000hz 1 channels 20ms
2009-12-22 17:17:30.777182 [DEBUG] switch_ivr_play_say.c:1429 done playing
file


My basic intent is to avoid on-the-fly transcoding, while having a high
quality audio playing on PSTN.

Have I configured it wrong or does this transcoding always happen?

Thanks,
Vinuth.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091223/3d272e5d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list