Clone

git clone git@git.secluded.site:sgx-bwmsgsv2.git

README

= sgx-bwmsgsv2 =

An XMPP to SMS gateway for Bandwidth's V2 Messaging API, using XEP-0100. The "SGX" stands for "Soprani.ca Gateway to XMPP", as this is associated with the Soprani.ca project.

Note that the canonical location for this repository is https://gitlab.com/soprani.ca/sgx-bwmsgsv2 . Please use that location for all pull requests, issue reports, etc. Other locations are likely out-of-date.

This program expects a binary named "tai" to be in its working directory, which should be a compiled version of https://ossguy.com/tai.c for the platform it is running on.

The gateway emits events to a Redis stream. To trim entries older than 7 days, put something like this in a cronjob:

{{{ redis-cli -u redis://127.0.0.1:6380/0 XTRIM messages MINID "~" "$(( ($(date +%s) - 7 * 24 * 60 * 60) * 1000 ))-0" }}}