Changeset 10179

Show
Ignore:
Timestamp:
07/21/10 19:23:53 (3 years ago)
Author:
p_lindheimer
Message:

Merged revisions 10123-10125,10127-10178 via svnmerge from
http://svn.freepbx.org/modules/branches/2.8

........

r10147 | mbrevda | 2010-07-14 14:57:32 -0700 (Wed, 14 Jul 2010) | 1 line


real fix for #4175

........

r10149 | p_lindheimer | 2010-07-14 17:31:07 -0700 (Wed, 14 Jul 2010) | 1 line


fixes #4431 don't try to migrate blank use_by rows

........

r10158 | p_lindheimer | 2010-07-15 11:58:55 -0700 (Thu, 15 Jul 2010) | 1 line


fixes #4443 set width of div to 500px, seems to be adequate to keep overflow

........

r10160 | p_lindheimer | 2010-07-15 15:46:20 -0700 (Thu, 15 Jul 2010) | 1 line


fixes #4444 macro-dial-one not handling ALERT_INFO properly

........

r10163 | mbrevda | 2010-07-20 05:11:50 -0700 (Tue, 20 Jul 2010) | 1 line


closes #3978, re-add ascii colors to cli application and arguments. These regex's are probobly B A D, but they seem to work

........

r10166 | mbrevda | 2010-07-20 06:18:23 -0700 (Tue, 20 Jul 2010) | 1 line


closes #3978, re-add ascii colors to cli application and arguments. These regex's are probobly B A D, but they seem to work

........

r10168 | p_lindheimer | 2010-07-20 15:31:29 -0700 (Tue, 20 Jul 2010) | 1 line


fixes #4460 set OUTNUM so dial works, needs testing

........

r10170 | p_lindheimer | 2010-07-21 13:59:49 -0700 (Wed, 21 Jul 2010) | 1 line


fixes #4414 for real this time I hope, if ZAP2DAHDICOMPAT is set, use zap and dahdi table settings, if not set only use dahdi table settings if generating chan_dahdi_additional.conf file, this allows old zap settings to migrate, also don't show Zap device options if not set, unless this is a zap system

........

r10171 | p_lindheimer | 2010-07-21 15:53:16 -0700 (Wed, 21 Jul 2010) | 1 line


fixes #4448 make sure core's functions are included for tarball installs

........

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9

    • Property svnmerge-integrated changed from /modules/branches/2.8:1-10122 to /modules/branches/2.8:1-10178
  • modules/branches/2.9/core/etc/extensions.conf

    r10016 r10179  
    116116; 
    117117[from-pstn-toheader] 
    118 exten => s,1,Goto(from-pstn,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1) 
     118exten => _.,1,Goto(from-pstn,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1) 
    119119;------------------------------------------------------------------------------- 
    120120 
  • modules/branches/2.9/core/functions.inc.php

    r10103 r10179  
    5454  function generateConf($file) { 
    5555    global $version; 
     56    global $amp_conf; 
    5657 
    5758    switch ($file) { 
     
    7879        break; 
    7980      case 'chan_dahdi_additional.conf': 
    80         if (ast_with_dahdi()) { 
    81           return $this->generate_zapata_additional($version, 'dahdi')
     81        if (ast_with_dahdi() && $amp_conf['ZAP2DAHDICOMPAT']) { 
     82          return $this->generate_zapata_additional($version, 'dahdi').$this->generate_zapata_additional($version)
    8283        } else { 
    83           return $this->generate_zapata_additional($version); 
     84          return $this->generate_zapata_additional($version,'dahdi'); 
    8485        } 
    8586        break; 
     
    14061407              $ext->add($tcontext,$trunkprops['trunkid'],'',new ext_set('DIAL_NUMBER','${FROM_DID}')); 
    14071408              $ext->add($tcontext,$trunkprops['trunkid'],'',new ext_gosubif('$["${PREFIX_TRUNK_'.$trunkprops['trunkid'].'}" != ""]','sub-flp-'.$trunkprops['trunkid'].',s,1')); 
    1408               $ext->add($tcontext, $trunkprops['trunkid'], '', new ext_macro('dundi-${DIAL_TRUNK}','${OUTNUM}')); 
     1409              $ext->add($tcontext,$trunkprops['trunkid'],'',new ext_set('OUTNUM', '${OUTPREFIX_${DIAL_TRUNK}}${DIAL_NUMBER}'));  // OUTNUM is the final dial number 
     1410              $ext->add($tcontext,$trunkprops['trunkid'],'',new ext_macro('dundi-${DIAL_TRUNK}','${OUTNUM}')); 
    14091411              $ext->add($tcontext,$trunkprops['trunkid'],'hangit',new ext_hangup()); 
    14101412              break; 
     
    14541456          $ext->add($tcontext,$tcustom,'',new ext_set('DIAL_NUMBER','${FROM_DID}')); 
    14551457          $ext->add($tcontext,$tcustom,'',new ext_gosubif('$["${PREFIX_TRUNK_${DIAL_TRUNK}}" != ""]','sub-flp-${DIAL_TRUNK},s,1')); 
     1458          $ext->add($tcontext,$tcustom,'',new ext_set('OUTNUM', '${OUTPREFIX_${DIAL_TRUNK}}${DIAL_NUMBER}'));  // OUTNUM is the final dial number 
    14561459          $ext->add($tcontext,$tcustom,'',new ext_dial('${EVAL(${TDIAL_STRING})}','300,${DIAL_TRUNK_OPTIONS}')); 
    14571460          $ext->add($tcontext,$tcustom,'hangit',new ext_hangup()); 
     
    14691472          $ext->add($tcontext,$texten,'',new ext_set('DIAL_NUMBER','${FROM_DID}')); 
    14701473          $ext->add($tcontext,$texten,'',new ext_gosubif('$["${PREFIX_TRUNK_${DIAL_TRUNK}}" != ""]','sub-flp-${DIAL_TRUNK},s,1')); 
     1474          $ext->add($tcontext,$texten,'',new ext_set('OUTNUM', '${OUTPREFIX_${DIAL_TRUNK}}${DIAL_NUMBER}'));  // OUTNUM is the final dial number 
    14711475 
    14721476          $ext->add($tcontext,$texten,'',new ext_dial('${TDIAL_STRING}/${OUTNUM}','300,${DIAL_TRUNK_OPTIONS}')); 
     
    30743078        //TODO: do we need to check for anything beyond auto-blkvm in this call path? 
    30753079        $ext->add($mcontext,$exten,'skiptrace', new ext_set('D_OPTIONS', '${IF($["${NODEST}"!="" & ${REGEX("(M[(]auto-blkvm[)])" ${ARG2})} != 1]?${ARG2}M(auto-blkvm):${ARG2})}')); 
    3076         $ext->add($mcontext,$exten,'', new ext_execif('$["${ALERT_INFO}"!=""]', 'SIPAddHeader', 'Alert-Info: ${CUT(ALERT_INFO,:,2-)}')); 
     3080        $ext->add($mcontext,$exten,'', new ext_execif('$["${ALERT_INFO}"!=""]', 'SIPAddHeader', 'Alert-Info: ${ALERT_INFO}')); 
    30773081        //TODO: Do I need to  re-propagage anything from ${SIPADDHEADER} ? 
    30783082        $ext->add($mcontext,$exten,'', new ext_execif('$["${SIPADDHEADER}"!=""]', 'SIPAddHeader', '${SIPADDHEADER}')); 
     
    59875991    $currentcomponent->addoptlistitem('devicelist', 'sip_generic', _("Generic SIP Device")); 
    59885992    $currentcomponent->addoptlistitem('devicelist', 'iax2_generic', _("Generic IAX2 Device")); 
    5989     $currentcomponent->addoptlistitem('devicelist', 'zap_generic', _("Generic ZAP Device")); 
     5993    if (!ast_with_dahdi() || $amp_conf['ZAP2DAHDICOMPAT']) { 
     5994      $currentcomponent->addoptlistitem('devicelist', 'zap_generic', _("Generic ZAP Device")); 
     5995    } 
    59905996    if (ast_with_dahdi()) { 
    59915997      $currentcomponent->addoptlistitem('devicelist', 'dahdi_generic', _("Generic DAHDI Device")); 
  • modules/branches/2.9/core/module.xml

    r10130 r10179  
    44  <category>Basic</category> 
    55  <name>Core</name> 
    6   <version>2.9.0alpha1.0</version> 
     6  <version>2.9.0alpha1.1</version> 
    77  <publisher>FreePBX</publisher> 
    88  <license>GPLv2+</license> 
     
    1010  <canuninstall>no</canuninstall> 
    1111  <changelog> 
     12    *2.9.0alpha1.1* #4443, #4444, #4460, #4414 
    1213    *2.9.0alpha1.0* bump to 2.9 
    1314    *2.8.0.1* #4426 
  • modules/branches/2.9/dashboard/dashboard.css

    r7286 r10179  
    66#sysinfo-left, #sysinfo-left .infobox { 
    77  width:400px; 
     8  float: left; 
    89} 
     10 
    911#sysinfo-right { 
    10   position:absolute
     12  float: left
    1113  width:200px; 
    12   top:0; 
    13   margin-left:420px; 
     14  padding-left: 30px; 
    1415} 
    1516#sysinfo-right .infobox { 
    1617  width:200px; 
    1718} 
    18  
     19#sysinfo-bot{ 
     20  clear:both; 
     21  height: 0px; 
     22
    1923/* main container for each category of items */ 
    2024.infobox { 
     
    2630  background-repeat:repeat-x; 
    2731  color: #333; 
     32} 
     33 
     34#procinfo.infobox { 
     35  margin-bottom: 0px; 
    2836} 
    2937 
  • modules/branches/2.9/dashboard/module.xml

    r10060 r10179  
    22  <rawname>dashboard</rawname> 
    33  <name>System Dashboard</name> 
    4   <version>2.8.0.1</version> 
     4  <version>2.8.0.2</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
     
    2020  </depends> 
    2121  <changelog> 
     22    *2.8.0.2* #4175 (better fix) 
    2223    *2.8.0.1* #4175 
    2324    *2.8.0.0* #4268, #4276, #4283 
     
    5960    *0.1.0* Initial release 
    6061  </changelog> 
    61   <location>release/2.8/dashboard-2.8.0.1.tgz</location> 
    62   <md5sum>fc65dea8b968af43161007f56495a74b</md5sum> 
     62  <location>release/2.8/dashboard-2.8.0.2.tgz</location> 
     63  <md5sum>b2c1aac5e0ec24206f89a28bb73ec85a</md5sum> 
    6364</module> 
  • modules/branches/2.9/dashboard/page.index.php

    r10059 r10179  
    468468   
    469469  $out .= '<div id="syslog_button">'; 
    470   //TODO: there has got to be a better way to do the layout to avoid this hoaky dashboard_adjust_height()! 
     470   
    471471  if ($showall) { 
    472     $out .= '<a href="#" onclick="changeSyslog(0);">'._('show new').'</a><script type="text/javascript">dashboard_adjust_height(); </script>'; 
     472    $out .= '<a href="#" onclick="changeSyslog(0);">'._('show new').'</a>';  
    473473  } else { 
    474   $out .= '<a href="#" onclick="changeSyslog(1);">'._('show all').'</a><script type="text/javascript">dashboard_adjust_height(); </script>'; 
     474    $out .= '<a href="#" onclick="changeSyslog(1);">'._('show all').'</a>';  
    475475  } 
    476476  $out .= '</div>'; 
     
    668668   
    669669  echo '<div style="clear:both;"></div>'; 
    670    
    671   echo '</div></div>'; // #sysinfo-right, #dashboard 
    672  
    673 // TODO: There has got to be a better way to do this simply with proper layout styles! 
    674 ?> 
    675 <script type="text/javascript"> 
    676 $(document).ready(function(){ 
    677   dashboard_adjust_height(); 
    678 }); 
    679 function dashboard_adjust_height() { 
    680   left = $('#sysinfo-left').css('height','').height(); 
    681   right = $('#sysinfo-right').height(); 
    682   if (right > left) { 
    683     $('#sysinfo-left').height(right); 
    684   } 
    685 
    686 </script> 
    687 <?php 
    688    
     670  echo '</div>'; // #sysinfo-right, #dashboard 
     671  echo '<div id="sysinfo-bot">&nbsp</div>'; 
     672 
    689673  if($dashboard_debug && $error->ErrorsExist()) { 
    690674    $fh = fopen($amp_conf['ASTLOGDIR']."/dashboard-error.log","a"); 
  • modules/branches/2.9/framework/module.xml

    r10131 r10179  
    22  <rawname>framework</rawname> 
    33  <name>FreePBX Framework</name> 
    4   <version>2.9.0alpha1.0</version> 
     4  <version>2.9.0alpha1.1</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
     
    88  <canuninstall>no</canuninstall> 
    99  <changelog> 
     10    *2.9.0alpha1.1* #4245, #4461 
    1011    *2.9.0alpha1.0* bump to 2.9 
    1112    *2.8.0.1* #4385 
  • modules/branches/2.9/fw_ari/module.xml

    r10102 r10179  
    22  <rawname>fw_ari</rawname> 
    33  <name>FreePBX ARI Framework</name> 
    4   <version>2.8.0.3</version> 
     4  <version>2.8.0.4</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
     
    88  <canuninstall>no</canuninstall> 
    99  <changelog> 
     10    *2.8.0.4* #4461 
    1011    *2.8.0.3* #4423 
    1112    *2.8.0.2* #4402 
     
    3334  <type>setup</type> 
    3435  <category>Basic</category> 
    35   <location>release/2.8/fw_ari-2.8.0.3.tgz</location> 
    36   <md5sum>fe774aa56692bd2fcfb51f254f0cdaca</md5sum> 
     36  <location>release/2.8/fw_ari-2.8.0.4.tgz</location> 
     37  <md5sum>1f687e4ae05d059f29f6817cb06e0fe0</md5sum> 
    3738</module> 
  • modules/branches/2.9/fw_fop/module.xml

    r10012 r10179  
    22  <rawname>fw_fop</rawname> 
    33  <name>FreePBX FOP Framework</name> 
    4   <version>2.8.0.4</version> 
     4  <version>2.8.0.5</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
     
    88  <canuninstall>no</canuninstall> 
    99  <changelog> 
     10    *2.8.0.5* #4429 
    1011    *2.8.0.4* reverting 2.8.0.3 fixed elsewhere 
    1112    *2.8.0.3* #4388 
     
    2627  <type>setup</type> 
    2728  <category>Basic</category> 
    28   <location>release/2.8/fw_fop-2.8.0.4.tgz</location> 
    29   <md5sum>fa0c54acddf16d5ffb721104ddca2e20</md5sum> 
     29  <location>release/2.8/fw_fop-2.8.0.5.tgz</location> 
     30  <md5sum>1d1544098f13fc8f644f297299e70d4a</md5sum> 
    3031</module> 
  • modules/branches/2.9/logfiles/module.xml

    r9861 r10179  
    22  <rawname>logfiles</rawname> 
    33  <name>Asterisk Logfiles</name> 
    4   <version>2.8.0.0</version> 
     4  <version>2.8.0.1</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
    77  <changelog> 
     8    *2.8.0.1* #3978 
    89    *2.8.0.0* #4309 
    910    *2.7.0.0* localizations 
     
    2324    <logfiles>Asterisk Logfiles</logfiles> 
    2425  </menuitems> 
    25   <location>release/2.8/logfiles-2.8.0.0.tgz</location> 
    26   <md5sum>05519cd03f078c5ecfde4356aed5c4c3</md5sum> 
     26  <location>release/2.8/logfiles-2.8.0.1.tgz</location> 
     27  <md5sum>9c21e419a297dbeab6ffce81814daea1</md5sum> 
    2728</module> 
  • modules/branches/2.9/logfiles/page.logfiles.php

    r9786 r10179  
    1010<div class="content"> 
    1111<?php 
    12 if(!$lines){$action='';}//promts for lines if its not set 
     12if(!$lines){ 
     13  $action=''; 
     14}//promts for lines if its not set 
    1315switch($action) { 
    1416  case 'showlog': 
    15   $color = array( 
    16   chr(27).'[0;33;40m' => '<span class="brown">', 
    17   chr(27).'[0;36;40m' => '<span class="cyan">', 
    18   chr(27).'[1;30;40m' => '<span class="black">', 
    19   chr(27).'[1;31;40m' => '<span class="red">', 
    20   chr(27).'[1;32;40m' => '<span class="green">', 
    21   chr(27).'[1;33;40m' => '<span class="yellow">', 
    22   chr(27).'[1;34;40m' => '<span class="blue">', 
    23   chr(27).'[1;35;40m' => '<span class="magenta">', 
    24   chr(27).'[1;36;40m' => '<span class="cyan">', 
    25   chr(27).'[0;37;40m' => '<span class="black">',//this should really be white - but that would leave text unreadable on the white background of the page 
     17  $color = array( 
     18  chr(27).'[0;33;40m' => '<span class="brown">', 
     19  chr(27).'[0;36;40m' => '<span class="cyan">', 
     20  chr(27).'[1;30;40m' => '<span class="black">', 
     21  chr(27).'[1;31;40m' => '<span class="red">', 
     22  chr(27).'[1;32;40m' => '<span class="green">', 
     23  chr(27).'[1;33;40m' => '<span class="yellow">', 
     24     chr(27).'[1;34;40m' => '<span class="blue">', 
     25     chr(27).'[1;35;40m' => '<span class="magenta">', 
     26     chr(27).'[1;36;40m' => '<span class="cyan">', 
     27     chr(27).'[0;37;40m' => '<span class="black">',//this should really be white - but that would leave text unreadable on the white background of the page 
    2628   
    27   chr(27).'[1;40m' => '<span class="bold">', 
    28   chr(27).'[4;40m' => '<span class="underline">', 
     29  chr(27).'[1;40m' => '<span class="bold">', 
     30  chr(27).'[4;40m' => '<span class="underline">', 
    2931   
    30   chr(27).'[0;40m'   => '</span>', 
    31 ); 
     32  chr(27).'[0;40m'   => '</span>', 
     33   ); 
    3234?>   
    3335    <style type="text/css"> 
     
    3941    .green{color:green;} 
    4042    .yellow{color:yellow;} 
    41     .blue{color:blue;} 
    42     .magenta{color:magenta;} 
    43     .cyan{color:cyan;} 
    44     .white{color:white;} 
    45     .bold{font-weight: bold;} 
    46     .underline{text-decoration:underline;} 
    47     .pre{font-family:"Courier New", Courier, monospace;font-size:0.85em} 
     43      .blue{color:blue;} 
     44      .magenta{color:magenta;} 
     45      .cyan{color:cyan;} 
     46      .white{color:white;} 
     47      .bold{font-weight: bold;} 
     48      .underline{text-decoration:underline;} 
     49      .pre{font-family:"Courier New", Courier, monospace;font-size:0.85em} 
     50    .app{color:cyan;} 
     51    .appargs{color:magenta;} 
     52    .context{color:blue;} 
    4853    </style> 
    4954    <h2> 
     
    6166        if(strpos($l, 'ERROR')){$l='<span class="red">'.$l.'</span>';} 
    6267        $l=str_replace(array_keys($color), $color, $l); 
    63         echo $l; 
     68         
     69        echo logfiles_highlight_asterisk($l); 
    6470      } 
    6571echo '</div>'; 
  • modules/branches/2.9/pinsets/install.php

    r9241 r10179  
    4040} 
    4141outn(_("checking if migration required..")); 
    42 $sql = "SELECT `used_by` FROM pinsets"; 
     42$sql = "SELECT `used_by` FROM pinsets WHERE used_by != ''"; 
    4343$check = $db->getRow($sql, DB_FETCHMODE_ASSOC); 
    4444if(!DB::IsError($check)) { 
  • modules/branches/2.9/pinsets/module.xml

    r10089 r10179  
    22  <rawname>pinsets</rawname> 
    33  <name>PIN Sets</name> 
    4   <version>2.8.0.4</version> 
     4  <version>2.8.0.5</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
     
    99  <description>Allow creation of lists of PINs (numbers for passwords) that can be used by other modules (eg, trunks).</description> 
    1010  <changelog> 
     11    *2.8.0.5* #4431 
    1112    *2.8.0.4* localization updates 
    1213    *2.8.0.3* #4197 
     
    3233    <pinsets>PIN Sets</pinsets> 
    3334  </menuitems> 
    34   <location>release/2.8/pinsets-2.8.0.4.tgz</location> 
    35   <md5sum>1e443da60aa3397e1603863d83d3419d</md5sum> 
     35  <location>release/2.8/pinsets-2.8.0.5.tgz</location> 
     36  <md5sum>0ad6606985a445e72a26d8f0e49f1efe</md5sum> 
    3637</module> 
  • modules/branches/2.9/sipstation/install.php

    r9798 r10179  
    6464 
    6565  outn(_("checking for phantoms..")); 
     66 
     67  require_once($amp_conf['AMPWEBROOT'].'/admin/modules/core/functions.inc.php'); 
    6668  $trunks = core_trunks_list(true); 
    6769