Skip to content

Commit

Permalink
update jasmin callback to handle DELIVRD
Browse files Browse the repository at this point in the history
  • Loading branch information
antonraharja committed Dec 23, 2019
1 parent 372d3bd commit 3c86c7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/plugin/gateway/jasmin/callback.php
Expand Up @@ -52,14 +52,15 @@
$uid = $data['uid'];
$p_status = $data['p_status'];
switch ($message_status) {
case "DELIVRD":
case "ESME_ROK":
$p_status = 3;
break; // delivered
default :
$p_status = 2;
break; // failed
}
_log("dlr uid:" . $uid . " smslog_id:" . $smslog_id . " message_id:" . $remote_smslog_id . " status:" . $status, 2, "jasmin callback");
_log("dlr uid:" . $uid . " smslog_id:" . $smslog_id . " message_id:" . $remote_smslog_id . " status:" . $p_status, 2, "jasmin callback");
dlr($smslog_id, $uid, $p_status);

ob_end_clean();
Expand Down

0 comments on commit 3c86c7b

Please sign in to comment.