Changeset 2231 for modules/branches/2.2/ringgroups
- Timestamp:
- 08/06/06 01:13:50 (7 years ago)
- Files:
-
- modules/branches/2.2/ringgroups/module.xml (modified) (1 diff)
- modules/branches/2.2/ringgroups/page.ringgroups.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.2/ringgroups/module.xml
r2229 r2231 2 2 <rawname>ringgroups</rawname> 3 3 <name>Ring Groups</name> 4 <version>2.1. 3</version>4 <version>2.1.4</version> 5 5 <type>setup</type> 6 6 <category>Basic</category> modules/branches/2.2/ringgroups/page.ringgroups.php
r2228 r2231 24 24 isset($_REQUEST['description'])?$description = $_REQUEST['description']:$description=''; 25 25 isset($_REQUEST['alertinfo'])?$alertinfo = $_REQUEST['alertinfo']:$alertinfo=''; 26 isset($_REQUEST['needsconf'])?$needsconf = $_REQUEST['needsconf']:$needsconf=''; 27 isset($_REQUEST['remotealert'])?$remotealert = $_REQUEST['remotealert']:$remotealert=''; 28 isset($_REQUEST['toolate'])?$toolate = $_REQUEST['toolate']:$toolate=''; 29 isset($_REQUEST['ringing'])?$ringing = $_REQUEST['ringing']:$ringing=''; 26 30 27 31 if (isset($_REQUEST['goto0']) && isset($_REQUEST[$_REQUEST['goto0']."0"])) { … … 63 67 if ($action == 'addGRP') { 64 68 //ringgroups_add($account,implode("-",$grplist),$strategy,$grptime,$grppre,$goto); 65 ringgroups_add($account,$strategy,$grptime,implode("-",$grplist),$goto,$description,$grppre,$annmsg,$alertinfo );69 ringgroups_add($account,$strategy,$grptime,implode("-",$grplist),$goto,$description,$grppre,$annmsg,$alertinfo,$needsconf,$remotealert,$toolate,$ringing); 66 70 needreload(); 67 71 } … … 76 80 if ($action == 'edtGRP') { 77 81 ringgroups_del($account); 78 ringgroups_add($account,$strategy,$grptime,implode("-",$grplist),$goto,$description,$grppre,$annmsg,$alertinfo );82 ringgroups_add($account,$strategy,$grptime,implode("-",$grplist),$goto,$description,$grppre,$annmsg,$alertinfo,$needsconf,$remotealert,$toolate,$ringing); 79 83 needreload(); 80 84 } … … 115 119 $description = $thisgrp['description']; 116 120 $alertinfo = $thisgrp['alertinfo']; 121 $remotealert = $thisgrp['remotealert']; 122 $needsconf = $thisgrp['needsconf']; 123 $toolate = $thisgrp['toolate']; 124 $ringing = $thisgrp['ringing']; 117 125 unset($grpliststr); 118 126 unset($thisgrp); … … 136 144 $annmsg = ''; 137 145 $alertinfo = ''; 146 $remotealert = ''; 147 $needsconf = ''; 148 $toolate = ''; 149 $ringing = ''; 138 150 139 151 echo "<h2>"._("Add Ring Group")."</h2>"; … … 166 178 <b><?php echo _("hunt")?></b>: <?php echo _("take turns ringing each available extension")?><br> 167 179 <b><?php echo _("memoryhunt")?></b>: <?php echo _("ring first extension in the list, then ring the 1st and 2nd extension, then ring 1st 2nd and 3rd extension in the list.... etc.")?><br> 168 <b><?php echo _("*-prim")?></b>: <?php echo _("these modes act as described above. However, if the primary extension (first in list) is occupied, the other extensions will not be rung. If the primary is freepbx DND, it won't be run. If the primary is freepbx CF unconditional, then all will be rung")?><br>180 <b><?php echo _("*-prim")?></b>: <?php echo _("these modes act as described above. However, if the primary extension (first in list) is occupied, the other extensions will not be rung. If the primary is freepbx DND, it won't be run. If the primary is freepbx CF unconditional, then all will be rung")?><br> 169 181 </span> 170 182 </a></td> 171 183 <td> 172 <select name="strategy"/>184 <select name="strategy"/> 173 185 <?php 174 186 $default = (isset($strategy) ? $strategy : 'ringall'); … … 207 219 <td><a href="#" class="info"><?php echo _("announcement:")?><span><?php echo _("Message to be played to the caller before dialing this group.<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 208 220 <td> 209 <select name="annmsg"/>221 <select name="annmsg"/> 210 222 <?php 211 223 $tresults = recordings_list(); … … 231 243 </td> 232 244 </tr> 245 <?php } if (function_exists('music_list')) { ?> 246 <tr> 247 <td><a href="#" class="info"><?php echo _("Play Music On Hold?")?><span><?php echo _("If you select a Music on Hold class to play, instead of 'Ring', they will hear that instead of Ringing while they are waiting for someone to pick up. Note this DOES NOT WORK with call confirmation, due to limitations of Asterisk")?></span></a></td> 248 <td> 249 <select name="ringing"/> 250 <?php 251 $tresults = music_list("/var/lib/asterisk/mohmp3"); 252 $cur = (isset($ringing) ? $ringing : 'Ring'); 253 echo '<option value="Ring">'._("Ring")."</option>"; 254 if (isset($tresults[0])) { 255 foreach ($tresults as $tresult) { 256 echo '<option value="'.$tresult.'"'.($tresult == $cur ? ' SELECTED' : '').'>'.$tresult."</option>\n"; 257 } 258 } 259 ?> 260 </select> 261 </td> 262 </tr> 233 263 <?php } ?> 234 264 … … 237 267 <td><input type="text" name="alertinfo" size="10" value="<?php echo ($alertinfo)?$alertinfo:'' ?>"></td> 238 268 </tr> 269 <tr> 270 <td><a href="#" class="info"><?php echo _("Confirm Calls")?><span><?php echo _('Enable this if you\'re calling external numbers that need confirmation - eg, a mobile phone may go to voicemail which will pick up the call. Enabling this requires the remote side push 1 on their phone before the call is put through.')?></span></a>:</td> 271 <td> <?php if (!function_exists('recordings_list')) { echo _("System Recordings not installed. Option Disabled"); } else { ?> 272 <input type="checkbox" name="needsconf" value="CHECKED" <?php echo $needsconf ?> /></td> 273 <?php } ?> 274 </tr> 275 <?php if(function_exists('recordings_list')) { //only include if recordings is enabled?> 276 <tr> 277 <td><a href="#" class="info"><?php echo _("Remote Announce:")?><span><?php echo _("Message to be played to the person RECEIVING the call, if 'Confirm Calls' is enabled.<br><br>To add additional recordings use the \"System Recordings\" MENU to the left")?></span></a></td> 278 <td> 279 <select name="remotealert"/> 280 <?php 281 $tresults = recordings_list(); 282 $default = (isset($remotealert) ? $remotealert : ''); 283 echo '<option value="">'._("None")."</option>"; 284 if (isset($tresults[0])) { 285 foreach ($tresults as $tresult) { 286 echo '<option value="'.$tresult[2].'"'.($tresult[2] == $default ? ' SELECTED' : '').'>'.$tresult[1]."</option>\n"; 287 } 288 } 289 ?> 290 </select> 291 </td> 292 </tr> 293 <tr> 294 <td><a href="#" class="info"><?php echo _("Too-Late Announce:")?><span><?php echo _("Message to be played to the person RECEIVING the call, if the call has already been accepted before they push 1.<br><br>To add additional recordings use the \"System Recordings\" MENU to the left")?></span></a></td> 295 <td> 296 <select name="toolate"/> 297 <?php 298 $tresults = recordings_list(); 299 $default = (isset($toolate) ? $toolate : ''); 300 echo '<option value="">'._("None")."</option>"; 301 if (isset($tresults[0])) { 302 foreach ($tresults as $tresult) { 303 echo '<option value="'.$tresult[2].'"'.($tresult[2] == $default ? ' SELECTED' : '').'>'.$tresult[1]."</option>\n"; 304 } 305 } 306 ?> 307 </select> 308 </td> 309 </tr> 310 <?php } ?> 239 311 <tr><td colspan="2"><br><h5><?php echo _("Destination if no answer")?>:<hr></h5></td></tr> 240 312
