Changeset 11677
- Timestamp:
- 03/04/11 18:35:30 (2 years ago)
- Files:
-
- modules/branches/2.9/dahdiconfig/etc/chan_dahdi.conf (modified) (1 diff)
- modules/branches/2.9/dahdiconfig/functions.inc.php (modified) (3 diffs)
- modules/branches/2.9/dahdiconfig/install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/dahdiconfig/etc/chan_dahdi.conf
r9981 r11677 3 3 [general] 4 4 5 ; generated by module 5 6 #include chan_dahdi_general.conf 6 7 8 ; for user additions not provided by module 9 #include chan_dahdi_general_custom.conf 10 7 11 [channels] 12 13 ; for user additions not provided by module 14 #include chan_dahdi_channels_custom.conf 8 15 9 16 ; include dahdi groups defined by DAHDI module of FreePBX modules/branches/2.9/dahdiconfig/functions.inc.php
r11676 r11677 1418 1418 $digital_chan = array(); 1419 1419 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 1437 1420 $dahdi_cards = new dahdi_cards(); 1438 1421 $analog_ports = $dahdi_cards->get_fxo_ports(); … … 1469 1452 } 1470 1453 } 1471 if ($ show_digital_chans) {1454 if ($amp_conf['DAHDISHOWDIGITALCHANS']) { 1472 1455 $basechan = $span['basechan']; 1473 1456 $definedchans = $span['definedchans']; … … 1480 1463 uksort($avail_group,'_dahdiconfig_gsort'); 1481 1464 ksort($analog_chan); 1482 if ($ show_digital_chans) {1465 if ($amp_conf['DAHDISHOWDIGITALCHANS']) { 1483 1466 ksort($digital_chan); 1484 1467 $avail_identifiers = $avail_group + $analog_chan + $digital_chan; modules/branches/2.9/dahdiconfig/install.php
r9981 r11677 154 154 unset($result); 155 155 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 156 173 //end of file
