Changeset 11677

Show
Ignore:
Timestamp:
03/04/11 18:35:30 (2 years ago)
Author:
p_lindheimer
Message:

closes #4915 adds DAHDISHOWDIGITALCHANS and some custom includes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/dahdiconfig/etc/chan_dahdi.conf

    r9981 r11677  
    33[general] 
    44 
     5; generated by module 
    56#include chan_dahdi_general.conf 
    67 
     8; for user additions not provided by module 
     9#include chan_dahdi_general_custom.conf 
     10 
    711[channels] 
     12 
     13; for user additions not provided by module 
     14#include chan_dahdi_channels_custom.conf 
    815 
    916; include dahdi groups defined by DAHDI module of FreePBX 
  • modules/branches/2.9/dahdiconfig/functions.inc.php

    r11676 r11677  
    14181418  $digital_chan = array(); 
    14191419 
    1420   if (isset($amp_conf['DAHDISHOWDIGITALCHANS'])) { 
    1421     $chan_setting = strtolower($amp_conf['DAHDISHOWDIGITALCHANS']); 
    1422     switch ($chan_setting) { 
    1423     case 'true': 
    1424     case 'yes': 
    1425     case 'on': 
    1426     case '1': 
    1427       $show_digital_chans = true; 
    1428     break; 
    1429     default: 
    1430       $show_digital_chans = false; 
    1431     break; 
    1432     } 
    1433   } else { 
    1434     $show_digital_chans = false; 
    1435   } 
    1436  
    14371420  $dahdi_cards = new dahdi_cards(); 
    14381421  $analog_ports = $dahdi_cards->get_fxo_ports(); 
     
    14691452      } 
    14701453    } 
    1471     if ($show_digital_chans) { 
     1454    if ($amp_conf['DAHDISHOWDIGITALCHANS']) { 
    14721455      $basechan = $span['basechan']; 
    14731456      $definedchans = $span['definedchans']; 
     
    14801463  uksort($avail_group,'_dahdiconfig_gsort'); 
    14811464  ksort($analog_chan); 
    1482   if ($show_digital_chans) { 
     1465  if ($amp_conf['DAHDISHOWDIGITALCHANS']) { 
    14831466    ksort($digital_chan); 
    14841467    $avail_identifiers = $avail_group + $analog_chan + $digital_chan; 
  • modules/branches/2.9/dahdiconfig/install.php

    r9981 r11677  
    154154unset($result); 
    155155 
     156$freepbx_conf =& freepbx_conf::create(); 
     157 
     158// DAHDISHOWDIGITALCHANS 
     159// 
     160$set['value'] = false; 
     161$set['defaultval'] =& $set['value']; 
     162$set['readonly'] = 0; 
     163$set['hidden'] = 0; 
     164$set['level'] = 0; 
     165$set['module'] = 'dahdiconfig'; 
     166$set['category'] = 'DAHDi Configuration Module'; 
     167$set['emptyok'] = 0; 
     168$set['name'] = 'Allow PRI Discrete Channels'; 
     169$set['description'] = 'DAHDi trunk configuration is normally done using groups for PRI configuration. If there is a need to configure trunks to specific channels, setting this to true will allow each channel to be configured. This can be useful when troubleshooting a PRI and trying to isolate a bad B Channel.'; 
     170$set['type'] = CONF_TYPE_BOOL; 
     171$freepbx_conf->define_conf_setting('DAHDISHOWDIGITALCHANS',$set,true); 
     172 
    156173//end of file