README.creole

 1= sgx-bwmsgsv2 =
 2
 3An 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.
 4
 5Note 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.
 6
 7This 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.
 8
 9The gateway emits events to a Redis stream. To trim entries older than 7 days, put something like this in a cronjob:
10
11{{{
12redis-cli -u redis://127.0.0.1:6380/0 XTRIM messages MINID "~" "$(( ($(date +%s) - 7 * 24 * 60 * 60) * 1000 ))-0"
13}}}