= 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"
}}}
Work fork of an XMPP to SMS gateway for Bandwidth's V2 Messaging API, using XEP-0100
gitlab.com/soprani.ca/sgx-bwmsgsv2
sopranica
sgx
xmpp
jabber
Ruby
98.6%
PHP
1.4%
340
10
0
Clone this repository
https://tangled.org/secluded.site/sgx-bwmsgsv2
https://tangled.org/did:plc:jrgmvcxspmw3rxjvq7fcfxi2
git@knot.secluded.site:secluded.site/sgx-bwmsgsv2
git@knot.secluded.site:did:plc:jrgmvcxspmw3rxjvq7fcfxi2
For self-hosted knots, clone URLs may differ based on your setup.
- previous code used `.then` on a non-promise, which doesn't work on
ruby 2.7
- also, early-return case failed to consider resend events, fixed that
README.creole