Changeset 12045

Show
Ignore:
Timestamp:
04/23/11 12:47:46 (2 years ago)
Author:
p_lindheimer
Message:

closes #5095 adds ext_vqa, auto-detection for VQA app and DITECH_VQA_OUTBOUND/INBOUND Advanced settings set in inbound routes and outbound routes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.9/amp_conf/bin/retrieve_conf

    r11826 r12045  
    494494  $freepbx_conf->define_conf_setting('AST_FUNC_MASTER_CHANNEL',$set); 
    495495} 
     496if (!$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} 
    496513// Since modules can be loaded in a current version, we check these each time 
    497514// DEVICE_STATE exists in two flavors, DEVSTATE and DEVICE_STATE, the latter is the official one 
     
    510527foreach ($func_arr as $func) { 
    511528  $update_arr['AST_FUNC_'.$func] = $astman->func_exists($func) ? $func : ''; 
     529} 
     530 
     531$app_arr = array('VQA'); 
     532foreach ($app_arr as $app) { 
     533  $update_arr['AST_APP_'.$app] = $astman->app_exists($app) ? $app : ''; 
    512534} 
    513535$freepbx_conf->set_conf_values($update_arr, true, true); 
  • freepbx/branches/2.9/amp_conf/htdocs/admin/libraries/extensions.class.php

    r12024 r12045  
    16051605} 
    16061606 
     1607class ext_vqa extends extension { 
     1608  function output() { 
     1609    return "VQA(".$this->data.")"; 
     1610  } 
     1611} 
     1612 
    16071613/* example usage 
    16081614$ext = new extensions; 
  • freepbx/branches/2.9/libfreepbx.install.php

    r11987 r12045  
    950950  $freepbx_conf->define_conf_setting('CID_PREPEND_REPLACE',$set); 
    951951 
     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 
    952972 
    953973  // 
  • modules/branches/2.9/core/functions.inc.php

    r12014 r12045  
    12711271          // always set CallerID name 
    12721272          $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          } 
    12731278 
    12741279          if (!empty($item['mohclass']) && trim($item['mohclass']) != 'default') { 
     
    19201925            $ext->add($context, $exten, '', new ext_gosubif('$[${LEN(${FROM_DID})}>0 & "${FROM_DID}"!="s"]','sub-diversion-header,s,1')); 
    19211926          } 
     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          } 
    19221932 
    19231933          if ($route['emergency_route'] != '') { 
  • modules/branches/2.9/core/module.xml

    r12033 r12045  
    1111  <canuninstall>no</canuninstall> 
    1212  <changelog> 
     13    *2.9.0rc1.6* #5095 
    1314    *2.9.0rc1.5* #5055 
    1415    *2.9.0rc1.4* #5065, #5057