Changeset 13230 for contributed_modules
- Timestamp:
- 01/17/12 22:45:28 (4 months ago)
- Files:
-
- contributed_modules/modules/dahdiconfig/etc/chan_dahdi.conf (modified) (1 diff)
- contributed_modules/modules/dahdiconfig/functions.inc.php (modified) (9 diffs)
- contributed_modules/modules/dahdiconfig/i18n (copied) (copied from modules/branches/2.10/dahdiconfig/i18n)
- contributed_modules/modules/dahdiconfig/install.php (modified) (2 diffs)
- contributed_modules/modules/dahdiconfig/module.xml (modified) (3 diffs)
- contributed_modules/modules/dahdiconfig/page.dahdi.php (modified) (1 diff)
- contributed_modules/modules/dahdiconfig/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
contributed_modules/modules/dahdiconfig/etc/chan_dahdi.conf
r9981 r13230 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 contributed_modules/modules/dahdiconfig/functions.inc.php
r10004 r13230 1 1 <?php 2 if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } 2 3 3 4 /** … … 588 589 589 590 $hasaline = false; 590 for($i=0;$i<sizeof($lines);$i++) {591 foreach ($lines as $line) { 591 592 // its a comment, like this line 592 if (substr($line,0,1) == '#' ) {593 if (substr($line,0,1) == '#' || trim($line) == '') { 593 594 continue; 594 595 } 595 596 596 $hasaline = true; 597 break; 597 598 } 598 599 … … 765 766 766 767 /* If there is a DAHDI_Dummy then there is no hardware to parse */ 767 foreach ($cxts as $cxt) {768 if (isset($cxts)) foreach ($cxts as $cxt) { 768 769 if (strpos($cxt['description'],'DAHDI_DUMMY') === false) { 769 770 continue; … … 1418 1419 $digital_chan = array(); 1419 1420 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 1421 $dahdi_cards = new dahdi_cards(); 1438 1422 $analog_ports = $dahdi_cards->get_fxo_ports(); … … 1469 1453 } 1470 1454 } 1471 if ($ show_digital_chans) {1455 if ($amp_conf['DAHDISHOWDIGITALCHANS']) { 1472 1456 $basechan = $span['basechan']; 1473 1457 $definedchans = $span['definedchans']; … … 1480 1464 uksort($avail_group,'_dahdiconfig_gsort'); 1481 1465 ksort($analog_chan); 1482 if ($ show_digital_chans) {1466 if ($amp_conf['DAHDISHOWDIGITALCHANS']) { 1483 1467 ksort($digital_chan); 1484 1468 $avail_identifiers = $avail_group + $analog_chan + $digital_chan; … … 1507 1491 $extdisplay = ''; 1508 1492 } else { 1509 if ( isset($_REQUEST['extdisplay']) &&$_REQUEST['extdisplay'] == '') {1493 if (!isset($_REQUEST['extdisplay']) || $_REQUEST['extdisplay'] == '') { 1510 1494 return true; 1511 1495 } … … 1518 1502 1519 1503 $channel_select = dahdiconfig_get_unused_fxs_channels($extdisplay); 1504 $currentcomponent->addoptlistitem('dahdi_channel_select', '', _('==Choose==')); 1520 1505 foreach ($channel_select as $val) { 1521 1506 $currentcomponent->addoptlistitem('dahdi_channel_select', $val['channel'].':'.$val['signalling'], $val['channel']); … … 1632 1617 $(document).ready(function(){ 1633 1618 $("#dahdi_channel").val($("#devinfo_channel").val()+":"+$("#devinfo_signalling").val()); 1619 if ($("#dahdi_channel").val() == null) { 1620 $("#dahdi_channel").val(""); 1621 } 1634 1622 $("#devinfo_channel").parent().parent().hide(); 1635 1623 $("#devinfo_signalling").parent().parent().hide(); contributed_modules/modules/dahdiconfig/install.php
r9981 r13230 1 1 <?php 2 if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } 2 3 3 4 /** … … 154 155 unset($result); 155 156 157 $freepbx_conf =& freepbx_conf::create(); 158 159 // DAHDISHOWDIGITALCHANS 160 // 161 $set['value'] = false; 162 $set['defaultval'] =& $set['value']; 163 $set['readonly'] = 0; 164 $set['hidden'] = 0; 165 $set['level'] = 0; 166 $set['module'] = 'dahdiconfig'; 167 $set['category'] = 'DAHDi Configuration Module'; 168 $set['emptyok'] = 0; 169 $set['name'] = 'Allow PRI Discrete Channels'; 170 $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.'; 171 $set['type'] = CONF_TYPE_BOOL; 172 $freepbx_conf->define_conf_setting('DAHDISHOWDIGITALCHANS',$set,true); 173 156 174 //end of file contributed_modules/modules/dahdiconfig/module.xml
r9984 r13230 1 1 <module> 2 2 <rawname>dahdiconfig</rawname> 3 < type>setup</type>4 <category> Basic</category>3 <repo>unsupported</repo> 4 <category>Connectivity</category> 5 5 <name>DAHDi Config</name> 6 <version>2. 8.0.1</version>6 <version>2.10.0.0</version> 7 7 <publisher>Digium</publisher> 8 8 <license>GPLv2</license> … … 10 10 <canuninstall>yes</canuninstall> 11 11 <changelog> 12 *2.10.0.0* new version changes 13 *2.9.0.1* #4921 14 *2.9.0.0* #4914, #4915 12 15 *2.8.0.1* dependency set to 2.8 because of dahdi tables 13 16 *2.8.0.0* adds hooks into extensions and trunks pages and other fixes and tweaks … … 25 28 </requirements> 26 29 <menuitems> 27 <dahdi needsenginedb="yes" sort="-4">DAHDi</dahdi>30 <dahdi needsenginedb="yes">DAHDi</dahdi> 28 31 </menuitems> 29 <location> contributed_modules/release/dahdiconfig-2.8.0.1.tgz</location>30 <md5sum> a415741aec4aa93cceba58c29f3ea30e</md5sum>32 <location>release/2.10/dahdiconfig-2.10.0.0.tgz</location> 33 <md5sum>cd9ce04080bed2f9f89ffb25b6072ca5</md5sum> 31 34 </module> contributed_modules/modules/dahdiconfig/page.dahdi.php
r9982 r13230 1 1 <?php 2 if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } 2 3 3 4 /** contributed_modules/modules/dahdiconfig/uninstall.php
r9981 r13230 1 1 <?php 2 if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } 2 3 3 4 /**
