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.

Comments

mpv’s picture

Status: Active » Needs review
StatusFileSize
new841 bytes

Here's a patch. Besides checking for error I check that the status code is outside the 200 - 299 range before treating the response as an error.

  • alansaviolobo committed 6a5898e on 7.x-1.x
    Issue #2175159 by mpv: Accepted (202) response is handled as an error
    
alansaviolobo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.