Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeha/agi-mqtt
Asterisk to MQTT Bridge
https://github.com/zeha/agi-mqtt
Last synced: about 2 months ago
JSON representation
Asterisk to MQTT Bridge
- Host: GitHub
- URL: https://github.com/zeha/agi-mqtt
- Owner: zeha
- License: mit
- Created: 2014-04-28T00:37:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-28T00:49:10.000Z (over 10 years ago)
- Last Synced: 2024-04-21T02:19:24.225Z (9 months ago)
- Size: 137 KB
- Stars: 35
- Watchers: 6
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```