Changeset 6162

Show
Ignore:
Timestamp:
07/23/08 19:47:28 (3 months ago)
Author:
p_lindheimer
Message:

don't pull up Agent Announce with compound recordings and make ivr breakout work with recording ids, this ci is a stepping stone towards #2068 to keep it working until that gets done

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/queues/page.queues.php

    r5949 r6162  
    242242<?php if(function_exists('recordings_list')) { //only include if recordings is enabled?> 
    243243        <tr> 
    244                 <td><a href="#" class="info"><?php echo _("Agent Announcement:")?><span><?php echo _("Announcement played to the Agent prior to bridging in the caller <br><br> Example: \"the Following call is from the Sales Queue\" or \"This call is from the Technical Support Queue\".<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 
     244                <td><a href="#" class="info"><?php echo _("Agent Announcement:")?><span><?php echo _("Announcement played to the Agent prior to bridging in the caller <br><br> Example: \"the Following call is from the Sales Queue\" or \"This call is from the Technical Support Queue\".<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left. Compound recordings composed of 2 or more sound files are not displayed as options since this feature can not accept such recordings.")?></span></a></td> 
    245245                <td> 
    246246                        <select name="agentannounce" tabindex="<?php echo ++$tabindex;?>"> 
    247247                        <?php 
    248                                 $tresults = recordings_list(); 
     248                                $tresults = recordings_list(false); 
    249249                                $default = (isset($agentannounce) ? $agentannounce : 'None'); 
    250  
    251                                 $compound_recordings = false; 
    252                                 $is_error = false; 
    253250 
    254251                                echo '<option value="None">'._("None").'</option>'; 
    255252                                if (isset($tresults[0])) { 
    256253                                        foreach ($tresults as $tresult) { 
    257                                                 if (strpos($tresult[2],"&") === false) { 
    258                                                         echo '<option value="'.$tresult[2].'"'.($tresult[2] == $default ? ' SELECTED' : '').'>'.$tresult[1]."</option>\n"; 
    259                                                 } else { 
    260                                                         $compound_recordings = true; 
    261                                                         echo '<option style="color:red" value="'.$tresult[2].'"'.($tresult[2] == $default ? ' SELECTED' : '').'>'.$tresult[1]." (**)</option>\n"; 
    262                                                         if ($tresult[2] == $default) { 
    263                                                                 $is_error = true; 
    264                                                         } 
    265                                                 } 
     254                                                echo '<option value="'.$tresult['id'].'"'.($tresult['id'] == $default ? ' SELECTED' : '').'>'.$tresult['displayname']."</option>\n"; 
    266255                                        } 
    267256                                } 
    268257                        ?>               
    269258                        </select>                
    270                         <?php 
    271                         if ($compound_recordings) { 
    272                         ?> 
    273                                 <small><a style="color:red"  href="#" class="info"><?php echo ($is_error ? _("(**) ERRORS") : _("(**) Warning Potential Errors"))?> 
    274                                         <span>  
    275                                                 <?php  
    276                                                         if ($is_error) { 
    277                                                                 echo _("ERROR: You have configured a compound annoucement in your selection. These are annoucements composed of multiple concatenated sound files. The Queue system is not able to play such sound files. Your announcement file will be concatentated and only the first sound file will be played."); 
    278                                                         } else { 
    279                                                                 echo _("There are compound annoucements in your selection. These are annoucements composed of multiple concatenated sound files. The Queue system is not able to play such sound files. If you choose one of these annoucements your announcement will be concatentated and only the first sound file will be played."); 
    280                                                         } 
    281                                                 ?> 
    282                                         </span></small> 
    283                                 </a> 
    284                         <?php 
    285                         } 
    286                         ?> 
    287                 </td> 
    288         </tr> 
    289  
     259                </td> 
     260        </tr> 
    290261<?php } else { ?> 
    291262        <tr> 
     
    596567                                        $menu_id = $unique_aa['ivr_id']; 
    597568                                        $menu_name = $unique_aa['displayname']; 
     569 
     570                                        $unique_aa['announcement'] = recordings_get_file($unique_aa['announcement_id']); 
    598571                                        if (strpos($unique_aa['announcement'],"&") === false) { 
    599572                                                echo '<option value="'.$menu_id.'" '.($default == $menu_id ? 'SELECTED' : '').'>'.($menu_name ? $menu_name : _("Menu ID ").$menu_id)."</option>\n"; 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads