Changeset 12045
- Timestamp:
- 04/23/11 12:47:46 (2 years ago)
- Files:
-
- freepbx/branches/2.9/amp_conf/bin/retrieve_conf (modified) (2 diffs)
- freepbx/branches/2.9/amp_conf/htdocs/admin/libraries/extensions.class.php (modified) (1 diff)
- freepbx/branches/2.9/libfreepbx.install.php (modified) (1 diff)
- modules/branches/2.9/core/functions.inc.php (modified) (2 diffs)
- modules/branches/2.9/core/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.9/amp_conf/bin/retrieve_conf
r11826 r12045 494 494 $freepbx_conf->define_conf_setting('AST_FUNC_MASTER_CHANNEL',$set); 495 495 } 496 if (!$freepbx_conf->conf_setting_exists('AST_APP_VQA')) { 497 // AST_APP_VQA 498 // 499 $set['value'] = ''; 500 $set['defaultval'] =& $set['value']; 501 $set['options'] = ''; 502 $set['readonly'] = 1; 503 $set['hidden'] = 1; 504 $set['level'] = 10; 505 $set['module'] = ''; 506 $set['category'] = 'Internal Use'; 507 $set['emptyok'] = 1; 508 $set['name'] = 'Asterisk Application VQA'; 509 $set['description'] = "Set to the application name if the application is present in this Asterisk install"; 510 $set['type'] = CONF_TYPE_TEXT; 511 $freepbx_conf->define_conf_setting('AST_APP_VQA',$set); 512 } 496 513 // Since modules can be loaded in a current version, we check these each time 497 514 // DEVICE_STATE exists in two flavors, DEVSTATE and DEVICE_STATE, the latter is the official one … … 510 527 foreach ($func_arr as $func) { 511 528 $update_arr['AST_FUNC_'.$func] = $astman->func_exists($func) ? $func : ''; 529 } 530 531 $app_arr = array('VQA'); 532 foreach ($app_arr as $app) { 533 $update_arr['AST_APP_'.$app] = $astman->app_exists($app) ? $app : ''; 512 534 } 513 535 $freepbx_conf->set_conf_values($update_arr, true, true); freepbx/branches/2.9/amp_conf/htdocs/admin/libraries/extensions.class.php
r12024 r12045 1605 1605 } 1606 1606 1607 class ext_vqa extends extension { 1608 function output() { 1609 return "VQA(".$this->data.")"; 1610 } 1611 } 1612 1607 1613 /* example usage 1608 1614 $ext = new extensions; freepbx/branches/2.9/libfreepbx.install.php
r11987 r12045 950 950 $freepbx_conf->define_conf_setting('CID_PREPEND_REPLACE',$set); 951 951 952 // DITECH_VQA_INBOUND 953 $set['value'] = '7'; 954 $set['options'] = array(0,1,2,3,4,5,6,7); 955 $set['name'] = 'Ditech VQA Inbound Setting'; 956 $set['description'] = "If Ditech's VQA, Voice Quality application is installed, this setting will be used for all inbound calls. For more information 'core show application VQA' at the Asterisk CLI will show the different settings."; 957 $set['emptyok'] = 0; 958 $set['readonly'] = 0; 959 $set['type'] = CONF_TYPE_SELECT; 960 $freepbx_conf->define_conf_setting('DITECH_VQA_INBOUND',$set); 961 962 // DITECH_VQA_OUTBOUND 963 $set['value'] = '7'; 964 $set['options'] = array(0,1,2,3,4,5,6,7); 965 $set['name'] = 'Ditech VQA Outbound Setting'; 966 $set['description'] = "If Ditech's VQA, Voice Quality application is installed, this setting will be used for all outbound calls. For more information 'core show application VQA' at the Asterisk CLI will show the different settings."; 967 $set['emptyok'] = 0; 968 $set['readonly'] = 0; 969 $set['type'] = CONF_TYPE_SELECT; 970 $freepbx_conf->define_conf_setting('DITECH_VQA_OUTBOUND',$set); 971 952 972 953 973 // modules/branches/2.9/core/functions.inc.php
r12014 r12045 1271 1271 // always set CallerID name 1272 1272 $ext->add($context, $exten, '', new ext_execif('$[ "${CALLERID(name)}" = "" ] ','Set','CALLERID(name)=${CALLERID(num)}')); 1273 1274 // if VQA present and configured call it 1275 if ($amp_conf['AST_APP_VQA'] && $amp_conf['DITECH_VQA_INBOUND']) { 1276 $ext->add($context, $exten, '', new ext_vqa($amp_conf['DITECH_VQA_INBOUND')); 1277 } 1273 1278 1274 1279 if (!empty($item['mohclass']) && trim($item['mohclass']) != 'default') { … … 1920 1925 $ext->add($context, $exten, '', new ext_gosubif('$[${LEN(${FROM_DID})}>0 & "${FROM_DID}"!="s"]','sub-diversion-header,s,1')); 1921 1926 } 1927 1928 // if VQA present and configured call it 1929 if ($amp_conf['AST_APP_VQA'] && $amp_conf['DITECH_VQA_OUTBOUND']) { 1930 $ext->add($context, $exten, '', new ext_vqa($amp_conf['DITECH_VQA_OUTBOUND')); 1931 } 1922 1932 1923 1933 if ($route['emergency_route'] != '') { modules/branches/2.9/core/module.xml
r12033 r12045 11 11 <canuninstall>no</canuninstall> 12 12 <changelog> 13 *2.9.0rc1.6* #5095 13 14 *2.9.0rc1.5* #5055 14 15 *2.9.0rc1.4* #5065, #5057
