Changeset 6661

Show
Ignore:
Timestamp:
09/09/08 00:15:13 (5 years ago)
Author:
p_lindheimer
Message:

fixes #3173, also moves macro's auto-blkvm and auto-confirm to auto-generation and add some visual feedback to DAHDI compatibility mode re #3077

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/core/etc/extensions.conf

    r6594 r6661  
    969969;------------------------------------------------------------------------ 
    970970 
    971 ;------------------------------------------------------------------------ 
    972 ; [macro-auto-confirm] 
    973 ;------------------------------------------------------------------------ 
    974 ; This macro is called from ext-local-confirm to auto-confirm a call so that other extensions 
    975 ; are aware that the call has been answered. 
    976 ; 
    977 ;------------------------------------------------------------------------ 
    978 [macro-auto-confirm] 
    979 exten => s,1,Set(__MACRO_RESULT=) 
    980 exten => s,n,Set(__CWIGNORE=) 
    981 exten => s,n,DBDel(${BLKVM_OVERRIDE}) 
    982 exten => s,n,DBDel(RG/${ARG1}/${UNIQCHAN}) 
    983  
    984 ;------------------------------------------------------------------------ 
    985 ; [macro-auto-blkvm] 
    986 ;------------------------------------------------------------------------ 
    987 ; This macro is called for any extension dialed form a queue, ringgroup 
    988 ; or followme, so that the answering extension can clear the voicemail block 
    989 ; override allow subsequent transfers to properly operate. 
    990 ; 
    991 ;------------------------------------------------------------------------ 
    992 [macro-auto-blkvm] 
    993 exten => s,1,Set(__MACRO_RESULT=) 
    994 exten => s,n,Set(__CWIGNORE=) 
    995 exten => s,n,DBDel(${BLKVM_OVERRIDE}) 
    996971 
    997972;------------------------------------------------------------------------ 
  • modules/branches/2.5/core/functions.inc.php

    r6594 r6661  
    13961396      $ext->add($context, $exten, '', new ext_macro('hangupcall')); 
    13971397 
    1398  
    1399  
    1400       $context = 'macro-dialout-trunk'; 
     1398      /* 
     1399      ;------------------------------------------------------------------------ 
     1400      ; [macro-auto-confirm] 
     1401      ;------------------------------------------------------------------------ 
     1402      ; This macro is called from ext-local-confirm to auto-confirm a call so that other extensions 
     1403      ; are aware that the call has been answered. 
     1404      ; 
     1405      ;------------------------------------------------------------------------ 
     1406      */ 
     1407      $context = 'macro-auto-confirm'; 
    14011408      $exten = 's'; 
     1409      $ext->add($context, $exten, '', new ext_setvar('__MACRO_RESULT','')); 
     1410      $ext->add($context, $exten, '', new ext_setvar('__CWIGNORE','')); 
     1411      $ext->add($context, $exten, '', new ext_dbdel('${BLKVM_OVERRIDE}')); 
     1412      $ext->add($context, $exten, '', new ext_dbdel('RG/${ARG1}/${UNIQCHAN}')); 
     1413 
     1414 
     1415      /* 
     1416      ;------------------------------------------------------------------------ 
     1417      ; [macro-auto-blkvm] 
     1418      ;------------------------------------------------------------------------ 
     1419      ; This macro is called for any extension dialed form a queue, ringgroup 
     1420      ; or followme, so that the answering extension can clear the voicemail block 
     1421      ; override allow subsequent transfers to properly operate. 
     1422      ; 
     1423      ;------------------------------------------------------------------------ 
     1424      */ 
     1425      $context = 'macro-auto-blkvm'; 
     1426      $exten = 's'; 
     1427      $ext->add($context, $exten, '', new ext_setvar('__MACRO_RESULT','')); 
     1428      $ext->add($context, $exten, '', new ext_setvar('__CWIGNORE','')); 
     1429      $ext->add($context, $exten, '', new ext_dbdel('${BLKVM_OVERRIDE}')); 
    14021430       
    14031431      /* 
     
    14101438       * screen of AMP 
    14111439       */ 
     1440 
     1441      $context = 'macro-dialout-trunk'; 
     1442      $exten = 's'; 
     1443 
    14121444      $ext->add($context, $exten, '', new ext_set('DIAL_TRUNK', '${ARG1}')); 
    14131445      $ext->add($context, $exten, '', new ext_execif('$[$["${ARG3}" != ""] & $["${DB(AMPUSER/${AMPUSER}/pinless)}" != "NOPASSWD"]]', 'Authenticate', '${ARG3}')); 
     
    46494681 
    46504682    $section = _("Device Options"); 
    4651     $currentcomponent->addguielem($section, new gui_label('techlabel', sprintf(_("This device uses %s technology."),$devinfo_tech)),4); 
     4683 
     4684    $device_uses = sprintf(_("This device uses %s technology."),$devinfo_tech).(strtoupper($devinfo_tech) == 'ZAP' && ast_with_dahdi()?" ("._("Via DAHDI compatibility mode").")":""); 
     4685    $currentcomponent->addguielem($section, new gui_label('techlabel', $device_uses),4); 
    46524686    $devopts = $currentcomponent->getgeneralarrayitem('devtechs', $devinfo_tech); 
    46534687    if (is_array($devopts)) { 
  • modules/branches/2.5/core/install.php

    r6527 r6661  
    104104 
    105105$fcc = new featurecode('core', 'disconnect'); 
    106 $fcc->setDescription('In Call Disconnect Code'); 
     106$fcc->setDescription('In-Call Asterisk Disconnect Code'); 
    107107$fcc->setDefault('**'); 
    108108$fcc->update(); 
  • modules/branches/2.5/core/module.xml

    r6609 r6661  
    44  <category>Basic</category> 
    55  <name>Core</name> 
    6   <version>2.5.0rc3.0</version> 
     6  <version>2.5.0rc3.1</version> 
    77  <candisable>no</candisable> 
    88  <canuninstall>no</canuninstall> 
    99  <changelog> 
     10    *2.5.0rc3.1*  #3173, #3077 auto-blkvm,  auto-confirm to auto generation,  visual feedback to DAHDI compatibility 
    1011    *2.5.0rc3.0* #3150, #3152, #3142, #3167, #3077 (DAHDI Support) 
    1112    *2.5.0rc2.5* #3129, #3144, #3146 and some streamling of dialout-trunk and outbound-callerid 
  • modules/branches/2.5/core/page.trunks.php

    r6543 r6661  
    212212  $baseURL   = $_SERVER['PHP_SELF'].'?display='.urlencode($display).'&'; 
    213213  $trunks = array( 
    214     array('url'=> $baseURL.'tech=ZAP', 'tlabel' =>  _("Add Zap Trunk")), 
     214    array('url'=> $baseURL.'tech=ZAP', 'tlabel' =>  _("Add Zap Trunk").(ast_with_dahdi()?" ("._("DAHDI compatibility mode").")":"" )), 
    215215    array('url'=> $baseURL.'tech=IAX2', 'tlabel' =>  _("Add IAX2 Trunk")), 
    216216    array('url'=> $baseURL.'tech=SIP', 'tlabel' =>  _("Add SIP Trunk")), 
     
    276276    } 
    277277 
    278     echo "<h2>".sprintf(_("Edit %s Trunk"),strtoupper($tech))."</h2>"; 
     278 
     279    $upper_tech = strtoupper($tech); 
     280    echo "<h2>".sprintf(_("Edit %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHDI compatibility Mode").")":"")."</h2>"; 
    279281    $tlabel = sprintf(_("Delete Trunk %s"),substr($channelid,0,20)); 
    280282    $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/core_delete.png"/>&nbsp;'.$tlabel.'</span>'; 
     
    320322    $areacode = ""; 
    321323   
    322     echo "<h2>".sprintf("Add %s Trunk",strtoupper($tech))."</h2>"
    323  
     324    $upper_tech = strtoupper($tech)
     325    echo "<h2>".sprintf("Add %s Trunk",$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHDI compatibility mode").")":"")."</h2>"; 
    324326  }  
    325327switch ($tech) { 
  • modules/branches/2.5/featurecodeadmin/module.xml

    r6620 r6661  
    22  <rawname>featurecodeadmin</rawname> 
    33  <name>Feature Code Admin</name> 
    4   <version>2.5.0.1</version> 
     4  <version>2.5.0.2</version> 
    55  <candisable>no</candisable> 
    66  <canuninstall>no</canuninstall> 
     
    1212  <location>release/2.5/featurecodeadmin-2.5.0.1.tgz</location> 
    1313  <changelog> 
     14    *2.5.0.2* #3173 don't report conflicting extensions with featurmap codes 
    1415    *2.5.0.1* #2461 Localization now works using i18n from hosting featurecode modules 
    1516    *2.5.0* #2845 tabindex, added ability to define default values in freepbx_featurecodes.conf 
  • modules/branches/2.5/featurecodeadmin/page.featurecodeadmin.php

    r6648 r6661  
    3939      $exten_arr = array(); 
    4040      foreach ($featurecodes as $result) { 
    41         if (($result['featureenabled'] == 1) && ($result['moduleenabled'] == 1)) { 
     41        /* if the feature code starts with "In-Call Asterisk" then it is not conflicting with normal feature codes. This would be featuremap and future 
     42         * application map type codes. This is a real kludge and instead there should be a category associated with these codes when the feature code 
     43         * is created. However, the logic would be the same, thus my willingness to put in such a kludge for now. When the schema changes to add this 
     44         * then this can be updated to reflect that 
     45         */ 
     46        if (($result['featureenabled'] == 1) && ($result['moduleenabled'] == 1) && substr($result['featuredescription'],0,16) != 'In-Call Asterisk') { 
    4247          $exten_arr[] = ($result['customcode'] != '')?$result['customcode']:$result['defaultcode']; 
    4348        }