|
Based on MIFOSX-770 and MIFOSX-771, the goal of this issue is to improve the outgoing SMS support in the platform to be more robust, and be able to handle e.g. temporarily unavailable external REST APIs.
The foundation for this will already be in the platform code you'll find, because by the time you read this you should find that outgoing message will be stored in the DB. The task here is to add some kind of enum Pending/Sent/Delivered/Declined status, and so initially accept new messages as Pending, then try sending them to whatever is the currently configured gateway, set it to Sent when that returned without exception, and then set up some cronjob-type thing (Quartz?) in Mifos X which uses some new method you would have to create on the generic SMSGateway kind of interface to "poll" if message id so-and-so did in fact go through, and update status to Delivered. And something similar for Declined.
The intention is that this work is "generic", not tied to a specific outgoing SMS provider implementation (such as FLS from MIFOSX-771, or another 2nd one to-be-built under ).
|