Mattermost plugin for integration of our SIP PBX.
make
which builds the plugin binary.
afterwards it creates a tarball in dist
which can be uploaded via the mattermost ui.This plugin listens for HTTP requests from the phones, signaling their status. These requests have the following structure:
https://mattermost.example.com/plugins/net.bytemine.sip/sip/<action>/<user>[?secret=<secret>]
where action
can be one of
dnd-on
dnd-off
offhook
onhook
paused-on
paused-off
login
logout
agent-login
agent-logout
answering-call
and user
being the user name.
https://mattermost.example.com/plugins/net.bytemine.sip/sip/dnd-on/bob[?secret=<secret>]
Would signal that user bob went DND.
https://mattermost.example.com/plugins/net.bytemine.sip/sip/<action>/<user>/<number>[?secret=<secret>]
where action
can be one of
incoming-call
incoming-conf
unknown-exten
user
is again the name of the affected user, number
being a phone number.
https://mattermost.example.com/plugins/net.bytemine.sip/sip/incoming-call/bob/1234567[?secret=<secret>]
Would signal that user bob has an incoming call from 1234567.
The settings of the plugin can be modified in mattermosts system console:
<number>:<name>[,<number>:<name>]
, for example
123:bob,124:alice
The plugin enables two slash-commands:
/sip-dashboard
: Shows a link to a HTML page which shows the current status of known clients. This page auto-refreshes./sip-status
: Shows the status of known clients in Mattermost.Health of the plugin can be checked using the URL https://mattermost.example.com/plugins/net.bytemine.sip/status[?secret=<secret>]