Changeset 11372 for modules/branches/2.8/callback
- Timestamp:
- 02/14/11 00:12:31 (2 years ago)
- Files:
-
- modules/branches/2.8/callback/bin/callback (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.8/callback/bin/callback
r8239 r11372 46 46 if (! @ include("Console/Getopt.php")) { 47 47 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")); 49 49 } 50 50 out("OK"); … … 53 53 $amp_conf = parse_amportal_conf_bootstrap(AMP_CONF); 54 54 if (count($amp_conf) == 0) { 55 fatal("FAILED");55 cb_fatal("FAILED"); 56 56 } 57 57 out("OK"); … … 101 101 $astman->Originate($channel, $exten, $context, $priority, $timeout, $callerid, $variable, $account, $application, $data); 102 102 } 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"]); 104 104 } 105 105 $astman->disconnect(); … … 128 128 } 129 129 130 function fatal($text) {130 function cb_fatal($text) { 131 131 echo "[FATAL] ".$text."\n"; 132 132 exit(1);
