Categorygithub.com/digineo/zammad-asterisk
modulepackage
0.0.0-20240718080336-48cb559521e6
Repository: https://github.com/digineo/zammad-asterisk.git
Documentation: pkg.go.dev

# README

DEPRECATION NOTICE: We've stopped using Zammand and hence don't need this integration anymore. While it might still work perfectly fine, we currently don't have the capacity to maintain it anymore.

Asterisk integration for Zammad

This works for me. If you need support, just contact me.

Installation

go install github.com/digineo/zammad-asterisk@latest

Configuration

Asterisk

Create a new account for the Asterisk REST Interface by editing the file ari.conf in the asterisk configuration directory:

[general]
enabled = yes

[zammad]
type = user
read_only = no
password = secret5

Add the application to your Dialplan in a context for incoming calls. The second argument for Stasis() is the name of called destination. If you have several numbers for incoming calls you can use this argument to distinguish between them.

context incoming {
	12345678 => {
		Stasis(zammad, foobar);
		Dial(...);
		Hangup;
	}
}

Zammad Interface

Create a config.cfg with the following configuration:

[asterisk]
host     = "127.0.0.1"
port     = 8088
username = "zammad"
password = "secret5"

[zammad]
endpoint = "https://zammad.example.com/api/v1/vti_logs"
token    = "your secret token"

Running

zammad-asterisk path/to/config.cfg

# Structs

Call is a currently active call.
Config holds the runtime configuration for this program.
Notification models the payload sent to the Zammad API endpoint.