Module: factory.sms/ObjSmsSphinx.py
Product: Sphinx
SMS provider that forwards to the centralised Sphinx SMS Gateway
(ServeSms.py) instead of sending directly to an external service.
When a package sets Provider = 'Sphinx' in def_sms, the
ObjSms.service_factory("Sphinx") loads this provider. Instead
of calling an external SMS API, it POSTs to the Sphinx gateway
which resolves the actual provider at runtime based on the
package's configuration.
POST {sphinx_endpoint}/sms
{
"cellnumber": "27821234567",
"message": "Your OTP is 1234",
"package": "HOMECHOICE",
"sms_code": "OTP_SMS",
"guid": "20260401_1234_..."
}
base:
sphinx:
sms_endpoint: "http://sphinx.technocore.co.za:9800"
api_key: ""
To route a package through Sphinx:
Provider = 'Sphinx' in def_sms for that packagebase.sphinx.sms_endpoint is configured