I am using the module to send SMS through a Kannel gateway. The gateway is sending a response with code = 202, data = 0: Accepted for delivery and error = Accepted.
Because of this the module treats the response as an error and returns FALSE.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | sms_simplegateway-fix_accepted_false_error-2175159-1.patch | 841 bytes | mpv |
Comments
Comment #1
mpv commentedHere's a patch. Besides checking for
errorI check that the status code is outside the 200 - 299 range before treating the response as an error.Comment #3
alansaviolobo commented