Asterisk IVR
Posted by Ameya Pandit on June 12th, 2007 filed in Asterisk, linuxFor a recent requirement, I was working with Asterisk to create a different IVR for some particular number. We work for localised linux.. Utkarsh.. it is in Gujarati. I have created a Localized IVR for the same, i.e. Voicemail IVR in Gujarati for couple of extensions. Other extensions will play regular IVR. It was very easy. I just had to create a Macro to play this IVR for these particular extensions.
The challange was when I wanted to play the recorded WAV file. Asterisk supports mp3 and wav. But it requires codecs to play sound files with these extensions. And to install the appropriate codecs it might have taken some more time. So I planned to go for another option. Default sounds files are in *.gsm format. Now the question was to convert the regular WAV file into GSM files. But again Asterisk at it best provides everything to do all stuff. The SOX sound covert do it all.
This is the command:
sox /Myfile.wav -r 8000 -c 1 -s -w Myfile.gsm resample -ql
This work by Ameya Pandit is licensed under a Creative Commons Attribution 2.5 India License
Photo Album





Leave a Comment