RPM for g729 sound files

We are using g729 here between extensions and the PBX, as well as between the PBX and a SIP provider.

Everything works well, but in an effort to reduce the number of licenses in use at any moment, it would be nice to have the asterisk sound files encoded in g729 installed. I know that they can be downloaded from http://downloads.asterisk.org/pub/telephony/sounds/ and installed manually, but before I go that route, I would like to know if there is a better way to do that, namely through yum and an RPM, thus avoiding any issues with upgrades and such in the future.

“yum search asterisk-sounds” seems to indicate that the only optiona available are alaw, ulaw, and gsm, Is there any reason that the g729 format sounds are not made available as an RPM?

Many thanks,

Tom

Admin - Sound Languages - Language Packs?

You are really that limited in bandwidth to have to use G.729?

Good luck and have a nice day!

Nick

Thank you, I’ll take a look there.

As for bandwidth, we had 80+ channels of voice, plus inter-office traffic going over the circuit. Given the cost of additional fiber bandwidth, g729 is pretty darned cheap if you ask me.

I presume that the “Sound Languages” module is only available in FreePBX v13? I do not see it in our installation, our module admin, or anywhere else. If so, I guess it’ll have to wait until Spring.

Absent another response, I wanted to put some notes up here for the benefit of anyone searching the archives in the future. The point of my original question was to reduce the need for g729a licenses as much as possible to ensure that they are available when needed and reduce the number I need to purchase.

These transcoder licenses get used for lots of small things behind the scenes in the dialplan, such as playing back sounds, recording calls, recording voicemails, and playing back Music On Hold, among others. However, you can take some steps to make that less common, specifically by making g729 native versions of files available. For example, if a voicemail message is stored on disk as a WAV file, the system needs to transcode between that WAV voicemail message and the g729 channel. However, if the message is available in both WAV and g729, no transcoding is needed.

The “Sound Languages” module is not present in my FreePBX v.12 install, so I presume that this is a new feature in v.13. However, I was able to install g729 native sounds directly in the CLI:

[root@freepbx ~]# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en-g729-current.tar.gz [root@freepbx ~]# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-g729-current.tar.gz [root@vox sounds]# tar zxvf ~/asterisk-core-sounds-en-g729-current.tar.gz [root@vox sounds]# tar zxvf ~/asterisk-extra-sounds-en-g729-current.tar.gz

If you like the Digium supplied MOH, you can also install g729 versions of those files, too (though please delete “Robot Dity” in case I ever have to call you):
[root@freepbx sounds]# cd ~ [root@freepbx ~]# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-moh-opsound-g729-current.tar.gz [root@freepbx ~]# cd /var/lib/asterisk/moh/ [root@freepbx moh]# tar zxvf ~/asterisk-moh-opsound-g729-current.tar.gz

When you’re done, you can delete the downloaded files:
`[root@freepbx moh]# cd ~
[root@freepbx ~]# rm asterisk-core-sounds-en-g729-current.tar.gz
[root@freepbx ~]# rm asterisk-extra-sounds-en-g729-current.tar.gz
[root@freepbx ~]# rm asterisk-moh-opsound-g729-current.tar.gz’

Next, if you go into the Voicemail Admin module, you can add g729 to the list of supported formats, which will cause the voicemail app to save messages in g729 format, in addition to whichever other formats you specify. This will still require a transcoder license when recording if you specify other formats, but it will not require transcoding when playing back those messages.

Lastly, it is possible to convert all of your custom system recordings into g729 format, too. I haven’t gotten this far yet, but I have found a few tools, and there are others out there:

  1. Asterisk’s built-in file conversion.
  2. Digium’s web converter

I will take the time here to state that the Digium licenses are cheap and work well, and that anyone looking to use g729 should certainly buy however many they need for things like conferences and other situations where they are needed. Trying to set up a system to never transcode g729 by always just passing through the audio is technically possible, but you’re going to spend way more time trying to make it work than you will save, and you’re almost certain to have remaining small issues. However, the above steps are simple and should help reduce the number of licenses you need at any given time.

Here’s to hoping that someone finds this useful.

Tom

Sorry Tom, I missed your response and was quite busy the last couple of days…

You are right, I forgot this was new with FreePBX 13 and as you pointed out those files are available from the downloads.asterisk.org site…

Even though I have FreePBX 13 I recently had to download them manually to track down an issue I have and for which I opened an Asterisk ticket.

Once again sorry and have a nice day!

Nick