http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14767
Lari Taskula <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |14791 --- Comment #1 from Lari Taskula <[email protected]> --- A more detailed explanation for the reports and delivery notes. Our SMS Gateway provider has a two-step delivery success response. When sending the HTTP request from our SMS::Send driver, our SMS Gateway provider will immediately respond if the message is placed for delivery OR the following error messages: - unknown error - invalid recipient (phone# syntax is invalid) - duplicate recipient (same phone# is given multiple times) - unallowed recipient (non-mobile/foreign phone#) This is the first step to gather delivery notes from SMS Gateway provider. With Bug 14791 we are able to throw Exceptions from SMS::Send driver. I propose we throw an exception (e.g. Koha::Exception::SMSDeliveryFailure) with an accurate description of the error. The exception will be forwarded all the way to C4::Letters::_send_message_by_sms() where we can set the status of the message to 'failed' and add the delivery note accordingly. However, if the initial request was successful and the provider has accepted it for delivery, we will move to the second phase of the delivery. Second phase occurs after the delivery is complete on the provider's end. They will send us a request with appropriate information of the state of the delivery and an error message if the delivery was failed. For the second phase we should use REST API. Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14791 [Bug 14791] Automatically attempt to resend failed notices -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
