Changeset 11373
- Timestamp:
- 02/14/11 00:15:28 (2 years ago)
- Files:
-
- modules/branches/2.9 (modified) (1 prop)
- modules/branches/2.9/callback/bin/callback (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9
- Property svnmerge-integrated changed from /modules/branches/2.8:1-11347 /modules/branches/bootstrap-2.9:1-10853 to /modules/branches/2.8:1-11347,11372 /modules/branches/bootstrap-2.9:1-10853
modules/branches/2.9/callback/bin/callback
r10565 r11373 34 34 35 35 if ($args != 8) { 36 fatal("Wrong number of arguments, should be:\n".$argv[0]." callback_number callback_destination delay_seconds AMPWEBROOT ASTETCDIR AMPMGRUSER AMPMGRPASS\n");36 cb_fatal("Wrong number of arguments, should be:\n".$argv[0]." callback_number callback_destination delay_seconds AMPWEBROOT ASTETCDIR AMPMGRUSER AMPMGRPASS\n"); 37 37 } 38 38 echo "args: $argc\n"; … … 76 76 $astman->Originate($channel, $exten, $context, $priority, $timeout, $callerid, $variable, $account, $application, $data); 77 77 } else { 78 fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]);78 cb_fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); 79 79 } 80 80 $astman->disconnect(); 81 81 82 function fatal($text) {82 function cb_fatal($text) { 83 83 echo "[FATAL] ".$text."\n"; 84 84 exit(1);
