Show
Ignore:
Timestamp:
03/03/11 16:52:05 (2 years ago)
Author:
p_lindheimer
Message:

fix spelling also affecting variable name

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/fax/functions.inc.php

    r11284 r11659  
    113113} 
    114114 
    115 //prosses recived arguments 
     115//prosses received arguments 
    116116function fax_configprocess() { 
    117117  $action   = isset($_REQUEST['action']) ?$_REQUEST['action']:null; 
     
    170170 
    171171  $fax=null; 
    172   $appfax = $recivefax = false;//return false by default in case asterisk isnt reachable 
     172  $appfax = $receivefax = false;//return false by default in case asterisk isnt reachable 
    173173  if ($amp_conf['AMPENGINE'] == 'asterisk' && isset($astman) && $astman->connected()) { 
    174174    //check for fax modules 
     
    178178      $fax['module']='res_fax'; 
    179179    } else { 
    180       $recive = $astman->send_request('Command', array('Command' => $module_show_command.'app_fax')); 
    181       if (preg_match('/[1-9] modules loaded/', $recive['data'])){$fax['module']='app_fax';} 
     180      $receive = $astman->send_request('Command', array('Command' => $module_show_command.'app_fax')); 
     181      if (preg_match('/[1-9] modules loaded/', $receive['data'])){$fax['module']='app_fax';} 
    182182    } 
    183183    if (!isset($fax['module'])) { 
     
    256256    switch ($fax['module']) { 
    257257    case 'app_rxfax': 
    258       $ext->add($context, $exten, '', new ext_rxfax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif')); //recive fax, then email it on 
     258      $ext->add($context, $exten, '', new ext_rxfax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif')); //receive fax, then email it on 
    259259    break; 
    260260    case 'app_fax': 
     
    262262      // ReceiveFAX in that case since it will fail anyhow. 
    263263      if ($fax['receivefax'] == 'rxfax') { 
    264         $ext->add($context, $exten, '', new ext_rxfax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif')); //recive fax, then email it on 
     264        $ext->add($context, $exten, '', new ext_rxfax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif')); //receive fax, then email it on 
    265265      } elseif ($fax['receivefax'] == 'receivefax') { 
    266         $ext->add($context, $exten, '', new ext_receivefax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif'.$t38_fb)); //recive fax, then email it on 
     266        $ext->add($context, $exten, '', new ext_receivefax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif'.$t38_fb)); //receive fax, then email it on 
    267267      } else { 
    268268        $ext->add($context, $exten, '', new ext_noop('ERROR: NO Receive FAX application detected, putting in dialplan for ReceiveFAX as default')); 
    269         $ext->add($context, $exten, '', new ext_receivefax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif'.$t38_fb)); //recive fax, then email it on 
     269        $ext->add($context, $exten, '', new ext_receivefax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif'.$t38_fb)); //receive fax, then email it on 
    270270        $ext->add($context, $exten, '', new ext_execif('$["${FAXSTATUS}" = ""]','Set','FAXSTATUS=${IF($["${FAXOPT(error)}" = ""]?"FAILED LICENSE EXCEEDED":"FAILED FAXOPT: error: ${FAXOPT(error)} status: ${FAXOPT(status)} statusstr: ${FAXOPT(statusstr)}")}')); 
    271271      } 
    272272    break; 
    273273    case 'res_fax': 
    274       $ext->add($context, $exten, '', new ext_receivefax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif'.$t38_fb)); //recive fax, then email it on 
     274      $ext->add($context, $exten, '', new ext_receivefax('${ASTSPOOLDIR}/fax/${UNIQUEID}.tif'.$t38_fb)); //receive fax, then email it on 
    275275      // Some versions or settings appear to have successful completions continue, so check status and goto hangup code 
    276276      $ext->add($context, $exten, '', new ext_execif('$["${FAXOPT(error)}"=""]','Set','FAXSTATUS=FAILED LICENSE EXCEEDED'));