Changeset 3534

Show
Ignore:
Timestamp:
01/04/07 03:52:57 (6 years ago)
Author:
qldrob
Message:

Add some error reporting that explains why stuff isn't working, either unsupported engine, or unable to connect to astman.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.2/amp_conf/htdocs/admin/functions.inc.php

    r3390 r3534  
    187187      } else { 
    188188        // could not connect to asterisk manager 
    189         return false
     189        return array('engine'=>'ERROR-UNABLE-TO-CONNECT', 'version'=>'0', 'additional' => '0')
    190190      } 
    191191       
     
    198198    break; 
    199199  } 
    200   return false
     200  return array('engine'=>'ERROR-UNSUPPORTED-ENGINE-'.$amp_conf['AMPENGINE'], 'version'=>'0', 'additional' => '0')
    201201} 
    202202