Changeset 6604
- Timestamp:
- 09/07/08 21:32:35 (5 years ago)
- Files:
-
- modules/branches/2.5/queues/functions.inc.php (modified) (3 diffs)
- modules/branches/2.5/queues/page.queues.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/queues/functions.inc.php
r6603 r6604 78 78 case 'autofill': 79 79 break; 80 case 'retry': 81 if ($data == 'none') { 82 $data = 0; 83 } 84 // no break, fallthrough to default 80 85 default: 81 86 $output .= $keyword."=".$data."\n"; … … 95 100 case 'ringinuse': 96 101 break; 102 case 'retry': 103 if ($data == 'none') { 104 $data = 0; 105 } 106 // no break, fallthrough to default 97 107 default: 98 108 $output .= $keyword."=".$data."\n"; … … 299 309 } 300 310 $options = 't'; 301 if ($q['rtone'] == 1) 311 if ($q['rtone'] == 1) { 302 312 $options .= 'r'; 303 if ($q['retry'] == none){ 304 $options .= 'n'; 305 } 313 } 314 if ($q['retry'] == 'none'){ 315 $options .= 'n'; 316 } 306 317 if (isset($q['music'])) { 307 318 $ext->add('ext-queues', $exten, '', new ext_setvar('__MOHCLASS', $q['music'])); modules/branches/2.5/queues/page.queues.php
r6603 r6604 461 461 462 462 <tr> 463 <td><a href="#" class="info"><?php echo _("Retry:")?><span><?php echo _("The number of seconds we wait before trying all the phones again. Select none to dissable retying and to go straight to the fail over destination")?></span></a></td>463 <td><a href="#" class="info"><?php echo _("Retry:")?><span><?php echo _("The number of seconds we wait before trying all the phones again. Choosing \"No Retry\" will exit the Queue and go to the fail-over destination as soon as the first attempted agent times-out, additional agents will not be attempted.")?></span></a></td> 464 464 <td> 465 465 <select name="retry" tabindex="<?php echo ++$tabindex;?>"> 466 466 <?php 467 467 $default = (isset($retry) ? $retry : 5); 468 echo '<option value="none" '.($default == "none" ? 'SELECTED' : '').'>'._("No ne").'</option>';469 for ($i= 1; $i <= 20; $i++) {470 echo '<option value="'.$i.'" '.($i == $default ? 'SELECTED' : '').'>'.queues_timeString($i,true).'</option>';468 echo '<option value="none" '.($default == "none" ? 'SELECTED' : '').'>'._("No Retry").'</option>'; 469 for ($i=0; $i <= 20; $i++) { 470 echo '<option value="'.$i.'" '.($i === $default ? 'SELECTED' : '').'>'.queues_timeString($i,true).'</option>'; 471 471 } 472 472 ?>
