From c32cec28360e451f2f72e88aabf2639c6b42d389 Mon Sep 17 00:00:00 2001
From: Russell Bryant <rbryant@redhat.com>
Date: Thu, 18 Jul 2013 15:52:05 +0000
Subject: [PATCH] Install additional sound prompts

Telephone calls are generally 8 kHz.  With VoIP, higher sample rates
are possible.  G.722 is the most common, which is 16 kHz.  Conferencing
supports these higher sample rates, as well.  Make sure we have the
higher quality sound prompts installed as well in case we can make use
of them.

While we're at it, install the gsm prompts, as well.  That is the low
bandwidth codec currently allowed.

Change-Id: I34921fa6a00720d05113a848bc9f1f94f2200c8b
---
 modules/asterisk/manifests/init.pp | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/modules/asterisk/manifests/init.pp b/modules/asterisk/manifests/init.pp
index cfcdf69f46..12c1f613e2 100644
--- a/modules/asterisk/manifests/init.pp
+++ b/modules/asterisk/manifests/init.pp
@@ -53,17 +53,18 @@ class asterisk (
     ],
   }
 
-  package { 'asterisk-sounds-moh-opsound-ulaw' :
-    ensure  => present,
-    require => Yumrepo['asteriskcurrent'],
-  }
+  $sounds = [
+    'asterisk-sounds-core-en-g722',
+    'asterisk-sounds-core-en-ulaw',
+    'asterisk-sounds-core-en-gsm',
+    'asterisk-sounds-extra-en-g722',
+    'asterisk-sounds-extra-en-ulaw',
+    'asterisk-sounds-extra-en-gsm',
+    'asterisk-sounds-moh-opsound-wav',
+    'asterisk-sounds-moh-opsound-ulaw',
+  ]
 
-  package { 'asterisk-sounds-core-en-ulaw' :
-    ensure  => present,
-    require => Yumrepo['asteriskcurrent'],
-  }
-
-  package { 'asterisk-sounds-extra-en-ulaw' :
+  package { $sounds :
     ensure  => present,
     require => Yumrepo['asteriskcurrent'],
   }