Changeset 12263
- Timestamp:
- 06/23/11 16:44:21 (2 years ago)
- Files:
-
- modules/branches/2.10/queues/functions.inc.php (modified) (1 diff)
- modules/branches/2.10/queues/page.queues.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/queues/functions.inc.php
r11823 r12263 924 924 $results = sql($sql, "getAll",DB_FETCHMODE_ASSOC); 925 925 926 if (function_exists('ivr_ list')) {927 $ivr_details = ivr_ list();926 if (function_exists('ivr_get_details')) { 927 $ivr_details = ivr_get_details(); 928 928 foreach ($ivr_details as $item) { 929 $ivr_hash[$item['i vr_id']] = $item;929 $ivr_hash[$item['id']] = $item; 930 930 } 931 931 $check_ivr = true; modules/branches/2.10/queues/page.queues.php
r11957 r12263 974 974 <tr><td colspan="2"><br><h5><?php echo _("Periodic Announcements")?><hr></h5></td></tr> 975 975 976 <?php if(function_exists('ivr_ list')) { //only include if IVR module is enabled ?>976 <?php if(function_exists('ivr_get_details')) { //only include if IVR module is enabled ?> 977 977 <tr> 978 978 <td><a href="#" class="info"><?php echo _("IVR Break Out Menu:")?><span> <?php echo _("You can optionally present an existing IVR as a 'break out' menu.<br><br>This IVR must only contain single-digit 'dialed options'. The Recording set for the IVR will be played at intervals specified in 'Repeat Frequency', below.")?></span></a></td> … … 987 987 // 988 988 // If a previous bogus IVR was listed, we will leave it in with an error but will no longer show such IVRs as valid options. 989 $unique_aas = ivr_ list();989 $unique_aas = ivr_get_details(); 990 990 991 991 $compound_recordings = false; … … 993 993 if (isset($unique_aas)) { 994 994 foreach ($unique_aas as $unique_aa) { 995 $menu_id = $unique_aa['i vr_id'];996 $menu_name = $unique_aa[' displayname'];997 998 $unique_aa['announcement'] = recordings_get_file($unique_aa['announcement _id']);995 $menu_id = $unique_aa['id']; 996 $menu_name = $unique_aa['name'] ? $unique_aa['name'] : 'IVR ' . $unique_aa['id']; 997 998 $unique_aa['announcement'] = recordings_get_file($unique_aa['announcement']); 999 999 if (strpos($unique_aa['announcement'],"&") === false) { 1000 1000 echo '<option value="'.$menu_id.'" '.($default == $menu_id ? 'SELECTED' : '').'>'.($menu_name ? $menu_name : _("Menu ID ").$menu_id)."</option>\n";
