Show
Ignore:
Timestamp:
02/14/11 00:12:31 (2 years ago)
Author:
p_lindheimer
Message:

rename fatal to cb_fatal, should not be affected since it does not include framework version but just to be safe re #4787

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.8/callback/bin/callback

    r8239 r11372  
    4646if (! @ include("Console/Getopt.php")) { 
    4747  out("FAILED"); 
    48   fatal("PEAR must be installed (requires Console/Getopt.php). Include path: ".ini_get("include_path")); 
     48  cb_fatal("PEAR must be installed (requires Console/Getopt.php). Include path: ".ini_get("include_path")); 
    4949} 
    5050out("OK"); 
     
    5353$amp_conf = parse_amportal_conf_bootstrap(AMP_CONF); 
    5454if (count($amp_conf) == 0) { 
    55   fatal("FAILED"); 
     55  cb_fatal("FAILED"); 
    5656} 
    5757out("OK"); 
     
    101101  $astman->Originate($channel, $exten, $context, $priority, $timeout, $callerid, $variable, $account, $application, $data); 
    102102} else { 
    103   fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); 
     103  cb_fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); 
    104104} 
    105105$astman->disconnect(); 
     
    128128} 
    129129 
    130 function fatal($text) { 
     130function cb_fatal($text) { 
    131131  echo "[FATAL] ".$text."\n"; 
    132132  exit(1);