https://github.com/zeljkobenovic/ast-ami-go
Asterisk AMI in Go
https://github.com/zeljkobenovic/ast-ami-go
Last synced: 2 months ago
JSON representation
Asterisk AMI in Go
- Host: GitHub
- URL: https://github.com/zeljkobenovic/ast-ami-go
- Owner: ZeljkoBenovic
- Created: 2022-01-21T22:34:34.000Z (over 3 years ago)
- Default Branch: v2
- Last Pushed: 2024-06-08T00:22:36.000Z (12 months ago)
- Last Synced: 2025-02-01T12:23:19.675Z (4 months ago)
- Language: Go
- Size: 1.45 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CloudPBX to Asterisk AMI API
Program that connects to the Asterisk AMI interface and sends the AMI events to remote URL in json format (webhook).## How to use
* Download appropriate release (i368 or amd64)
* Extract binary
* Run `cpbx-api -export`
* Edit config.yaml file to fit your needs
* Create `cpbx-api` service so that `cpbx-api` binary can run as daemon
* Configure service to use config file (example: `/usr/local/bin/cpbx-api -config /etc/cpbx-api/config.yaml`)
* Enable start on boot (example: `systemctl enable cpbx-api`)
* Start the service (example: `systemctl start cpbx-api`)## Debugging
When `log-level` flag is set to `debug`, all debug logs will be printed out to the log file.
It is recommended to use it only for debugging, and set `log-level` to `info` for production