Converting from wav or ulaw/alaw to g726-32

Hi all,

I am having trouble converting sound and music files from the original wav or PCM codec direct to g726-32.

I am tryig to use the CLI file convert as per:

The error I get is [quote]Unable to open output file: /var/lib/asterisk/sounds/tucson.g726-32[/quote]However I can convert from gsm to g726-32 without trouble:

[quote]# /usr/sbin/rasterisk -x "file convert /var/lib/asterisk/sounds/tucson.gsm /var/lib/asterisk/sounds/tucson.g726-32"
Converted /var/lib/asterisk/sounds/tucson.gsm to /var/lib/asterisk/sounds/tucson.g726-32 in 7ms[/quote]
Go figure

While it is a work around I would prefer to convert from WAV as the quality of g726-32 is better than GSM which is a little rude for music on hold.

Any suggestions or comments appreciated :smile: