Skip to content

zeha/agi-mqtt

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

agi-mqtt

Asterisk to MQTT Bridge

Installation

Clone repository somewhere convenient, possibly /etc/asterisk/agi.

Install python-mosquitto (tested with the version in Debian wheezy).

Copy mqtt.cfg.sample to mqtt.cfg and edit the values. username/password are optional.

Integration

Asterisk

extensions.conf snippet:

exten => 43123456789,1,AGI(/etc/asterisk/agi/mqtt,/etc/asterisk/agi/mqtt.cfg,calls/${ARG1})

Or, if you need to override the extension, for example in a macro, use this:

[macro-mqtt]
exten => s,1,AGI(/etc/asterisk/agi/mqtt,/etc/asterisk/agi/mqtt.cfg,calls/${ARG1},${ARG2})

mqttwarn

(See https://github.com/jpmens/mqttwarn for info about mqttwarn.)

Example config snippet:

[calls/missed]
targets = log:info, xmpp:ch
format = From {callerid} ({calleridname}) at {_dthhmm} for {extension}
title = Missed call

About

Asterisk to MQTT Bridge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published