Show
Ignore:
Timestamp:
08/06/06 01:13:50 (7 years ago)
Author:
p_lindheimer
Message:

oops accidentally copied 2.1 versions over 2.2 version. reverted back one rev and proper update applied

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/ringgroups/module.xml

    r2229 r2231  
    22  <rawname>ringgroups</rawname> 
    33  <name>Ring Groups</name> 
    4   <version>2.1.3</version> 
     4  <version>2.1.4</version> 
    55  <type>setup</type> 
    66  <category>Basic</category> 
  • modules/branches/2.2/ringgroups/page.ringgroups.php

    r2228 r2231  
    2424isset($_REQUEST['description'])?$description = $_REQUEST['description']:$description=''; 
    2525isset($_REQUEST['alertinfo'])?$alertinfo = $_REQUEST['alertinfo']:$alertinfo=''; 
     26isset($_REQUEST['needsconf'])?$needsconf = $_REQUEST['needsconf']:$needsconf=''; 
     27isset($_REQUEST['remotealert'])?$remotealert = $_REQUEST['remotealert']:$remotealert=''; 
     28isset($_REQUEST['toolate'])?$toolate = $_REQUEST['toolate']:$toolate=''; 
     29isset($_REQUEST['ringing'])?$ringing = $_REQUEST['ringing']:$ringing=''; 
    2630 
    2731if (isset($_REQUEST['goto0']) && isset($_REQUEST[$_REQUEST['goto0']."0"])) { 
     
    6367    if ($action == 'addGRP') { 
    6468      //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); 
    6670      needreload(); 
    6771    } 
     
    7680    if ($action == 'edtGRP') { 
    7781      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); 
    7983      needreload(); 
    8084    } 
     
    115119    $description = $thisgrp['description']; 
    116120    $alertinfo = $thisgrp['alertinfo']; 
     121    $remotealert = $thisgrp['remotealert']; 
     122    $needsconf = $thisgrp['needsconf']; 
     123    $toolate = $thisgrp['toolate']; 
     124    $ringing = $thisgrp['ringing']; 
    117125    unset($grpliststr); 
    118126    unset($thisgrp); 
     
    136144    $annmsg = ''; 
    137145    $alertinfo = ''; 
     146    $remotealert = ''; 
     147    $needsconf = ''; 
     148    $toolate = ''; 
     149    $ringing = ''; 
    138150 
    139151    echo "<h2>"._("Add Ring Group")."</h2>"; 
     
    166178          <b><?php echo _("hunt")?></b>: <?php echo _("take turns ringing each available extension")?><br> 
    167179          <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> 
    169181        </span> 
    170182        </a></td> 
    171183        <td> 
    172           <select name="strategy"/> 
     184          &nbsp;&nbsp;<select name="strategy"/> 
    173185          <?php 
    174186            $default = (isset($strategy) ? $strategy : 'ringall'); 
     
    207219    <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> 
    208220    <td> 
    209       <select name="annmsg"/> 
     221      &nbsp;&nbsp;<select name="annmsg"/> 
    210222      <?php 
    211223        $tresults = recordings_list(); 
     
    231243    </td> 
    232244  </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      &nbsp;&nbsp;<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> 
    233263<?php } ?> 
    234264       
     
    237267    <td><input type="text" name="alertinfo" size="10" value="<?php echo ($alertinfo)?$alertinfo:'' ?>"></td> 
    238268  </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      &nbsp;&nbsp;<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      &nbsp;&nbsp;<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 } ?> 
    239311      <tr><td colspan="2"><br><h5><?php echo _("Destination if no answer")?>:<hr></h5></td></tr> 
    240312