Changeset 6661
- Timestamp:
- 09/09/08 00:15:13 (5 years ago)
- Files:
-
- modules/branches/2.5/core/etc/extensions.conf (modified) (1 diff)
- modules/branches/2.5/core/functions.inc.php (modified) (3 diffs)
- modules/branches/2.5/core/install.php (modified) (1 diff)
- modules/branches/2.5/core/module.xml (modified) (1 diff)
- modules/branches/2.5/core/page.trunks.php (modified) (3 diffs)
- modules/branches/2.5/featurecodeadmin/module.xml (modified) (2 diffs)
- modules/branches/2.5/featurecodeadmin/page.featurecodeadmin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/core/etc/extensions.conf
r6594 r6661 969 969 ;------------------------------------------------------------------------ 970 970 971 ;------------------------------------------------------------------------972 ; [macro-auto-confirm]973 ;------------------------------------------------------------------------974 ; This macro is called from ext-local-confirm to auto-confirm a call so that other extensions975 ; 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, ringgroup988 ; or followme, so that the answering extension can clear the voicemail block989 ; 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})996 971 997 972 ;------------------------------------------------------------------------ modules/branches/2.5/core/functions.inc.php
r6594 r6661 1396 1396 $ext->add($context, $exten, '', new ext_macro('hangupcall')); 1397 1397 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'; 1401 1408 $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}')); 1402 1430 1403 1431 /* … … 1410 1438 * screen of AMP 1411 1439 */ 1440 1441 $context = 'macro-dialout-trunk'; 1442 $exten = 's'; 1443 1412 1444 $ext->add($context, $exten, '', new ext_set('DIAL_TRUNK', '${ARG1}')); 1413 1445 $ext->add($context, $exten, '', new ext_execif('$[$["${ARG3}" != ""] & $["${DB(AMPUSER/${AMPUSER}/pinless)}" != "NOPASSWD"]]', 'Authenticate', '${ARG3}')); … … 4649 4681 4650 4682 $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); 4652 4686 $devopts = $currentcomponent->getgeneralarrayitem('devtechs', $devinfo_tech); 4653 4687 if (is_array($devopts)) { modules/branches/2.5/core/install.php
r6527 r6661 104 104 105 105 $fcc = new featurecode('core', 'disconnect'); 106 $fcc->setDescription('In CallDisconnect Code');106 $fcc->setDescription('In-Call Asterisk Disconnect Code'); 107 107 $fcc->setDefault('**'); 108 108 $fcc->update(); modules/branches/2.5/core/module.xml
r6609 r6661 4 4 <category>Basic</category> 5 5 <name>Core</name> 6 <version>2.5.0rc3. 0</version>6 <version>2.5.0rc3.1</version> 7 7 <candisable>no</candisable> 8 8 <canuninstall>no</canuninstall> 9 9 <changelog> 10 *2.5.0rc3.1* #3173, #3077 auto-blkvm, auto-confirm to auto generation, visual feedback to DAHDI compatibility 10 11 *2.5.0rc3.0* #3150, #3152, #3142, #3167, #3077 (DAHDI Support) 11 12 *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 212 212 $baseURL = $_SERVER['PHP_SELF'].'?display='.urlencode($display).'&'; 213 213 $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").")":"" )), 215 215 array('url'=> $baseURL.'tech=IAX2', 'tlabel' => _("Add IAX2 Trunk")), 216 216 array('url'=> $baseURL.'tech=SIP', 'tlabel' => _("Add SIP Trunk")), … … 276 276 } 277 277 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>"; 279 281 $tlabel = sprintf(_("Delete Trunk %s"),substr($channelid,0,20)); 280 282 $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/core_delete.png"/> '.$tlabel.'</span>'; … … 320 322 $areacode = ""; 321 323 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>"; 324 326 } 325 327 switch ($tech) { modules/branches/2.5/featurecodeadmin/module.xml
r6620 r6661 2 2 <rawname>featurecodeadmin</rawname> 3 3 <name>Feature Code Admin</name> 4 <version>2.5.0. 1</version>4 <version>2.5.0.2</version> 5 5 <candisable>no</candisable> 6 6 <canuninstall>no</canuninstall> … … 12 12 <location>release/2.5/featurecodeadmin-2.5.0.1.tgz</location> 13 13 <changelog> 14 *2.5.0.2* #3173 don't report conflicting extensions with featurmap codes 14 15 *2.5.0.1* #2461 Localization now works using i18n from hosting featurecode modules 15 16 *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 39 39 $exten_arr = array(); 40 40 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') { 42 47 $exten_arr[] = ($result['customcode'] != '')?$result['customcode']:$result['defaultcode']; 43 48 }
