Show
Ignore:
Timestamp:
01/17/12 22:45:28 (4 months ago)
Author:
p_lindheimer
Message:

updated module from 2.10 prior to removing from 2.10 repo given lack of maintenance

Files:

Legend:

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

    r9981 r13230  
    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 
  • contributed_modules/modules/dahdiconfig/functions.inc.php

    r10004 r13230  
    11<?php 
     2if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } 
    23 
    34/** 
     
    588589 
    589590      $hasaline = false; 
    590      for($i=0;$i<sizeof($lines);$i++) { 
     591      foreach ($lines as $line) { 
    591592        // its a comment, like this line 
    592         if (substr($line,0,1) == '#') { 
     593        if (substr($line,0,1) == '#' || trim($line) == '') { 
    593594          continue; 
    594595        } 
    595  
    596596        $hasaline = true; 
     597        break; 
    597598      } 
    598599 
     
    765766 
    766767    /* 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) { 
    768769      if (strpos($cxt['description'],'DAHDI_DUMMY') === false) { 
    769770        continue; 
     
    14181419  $digital_chan = array(); 
    14191420 
    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  
    14371421  $dahdi_cards = new dahdi_cards(); 
    14381422  $analog_ports = $dahdi_cards->get_fxo_ports(); 
     
    14691453      } 
    14701454    } 
    1471     if ($show_digital_chans) { 
     1455    if ($amp_conf['DAHDISHOWDIGITALCHANS']) { 
    14721456      $basechan = $span['basechan']; 
    14731457      $definedchans = $span['definedchans']; 
     
    14801464  uksort($avail_group,'_dahdiconfig_gsort'); 
    14811465  ksort($analog_chan); 
    1482   if ($show_digital_chans) { 
     1466  if ($amp_conf['DAHDISHOWDIGITALCHANS']) { 
    14831467    ksort($digital_chan); 
    14841468    $avail_identifiers = $avail_group + $analog_chan + $digital_chan; 
     
    15071491      $extdisplay = ''; 
    15081492    } else { 
    1509       if (isset($_REQUEST['extdisplay']) && $_REQUEST['extdisplay'] == '') { 
     1493      if (!isset($_REQUEST['extdisplay']) || $_REQUEST['extdisplay'] == '') { 
    15101494        return true; 
    15111495      } 
     
    15181502   
    15191503    $channel_select  = dahdiconfig_get_unused_fxs_channels($extdisplay); 
     1504    $currentcomponent->addoptlistitem('dahdi_channel_select', '', _('==Choose==')); 
    15201505    foreach ($channel_select as $val) { 
    15211506      $currentcomponent->addoptlistitem('dahdi_channel_select', $val['channel'].':'.$val['signalling'], $val['channel']); 
     
    16321617      $(document).ready(function(){ 
    16331618        $("#dahdi_channel").val($("#devinfo_channel").val()+":"+$("#devinfo_signalling").val()); 
     1619        if ($("#dahdi_channel").val() == null) { 
     1620          $("#dahdi_channel").val(""); 
     1621        } 
    16341622        $("#devinfo_channel").parent().parent().hide(); 
    16351623        $("#devinfo_signalling").parent().parent().hide(); 
  • contributed_modules/modules/dahdiconfig/install.php

    r9981 r13230  
    11<?php 
     2if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } 
    23 
    34/** 
     
    154155unset($result); 
    155156 
     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 
    156174//end of file 
  • contributed_modules/modules/dahdiconfig/module.xml

    r9984 r13230  
    11<module> 
    22  <rawname>dahdiconfig</rawname> 
    3   <type>setup</type
    4   <category>Basic</category> 
     3  <repo>unsupported</repo
     4  <category>Connectivity</category> 
    55  <name>DAHDi Config</name> 
    6   <version>2.8.0.1</version> 
     6  <version>2.10.0.0</version> 
    77  <publisher>Digium</publisher> 
    88  <license>GPLv2</license> 
     
    1010  <canuninstall>yes</canuninstall> 
    1111  <changelog> 
     12    *2.10.0.0* new version changes 
     13    *2.9.0.1* #4921 
     14    *2.9.0.0* #4914, #4915  
    1215    *2.8.0.1* dependency set to 2.8 because of dahdi tables 
    1316    *2.8.0.0* adds hooks into extensions and trunks pages and other fixes and tweaks 
     
    2528  </requirements> 
    2629  <menuitems> 
    27     <dahdi needsenginedb="yes" sort="-4">DAHDi</dahdi> 
     30    <dahdi needsenginedb="yes">DAHDi</dahdi> 
    2831  </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> 
    3134</module> 
  • contributed_modules/modules/dahdiconfig/page.dahdi.php

    r9982 r13230  
    11<?php 
     2if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } 
    23 
    34/** 
  • contributed_modules/modules/dahdiconfig/uninstall.php

    r9981 r13230  
    11<?php 
     2if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } 
    23 
    34/**