From e6a8051cb8767bdb9f7dc35f6c0b69b1c09445ed Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 2 Feb 2025 22:55:05 -0700 Subject: [PATCH] Add originate file --- originate | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 originate diff --git a/originate b/originate new file mode 100644 index 0000000..067039e --- /dev/null +++ b/originate @@ -0,0 +1,63 @@ +#!/usr/bin/env php +Originate($channel, $exten, $context, $priority, $timeout, $callerid, $variable, $account, $application, $data); + $astman->disconnect(); +} else { + cb_fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); +} + +function cb_fatal($text) { + echo "[FATAL] ".$text."\n"; + exit(1); +} +?>