From aab98df549731f4a56e308505badde7a1149c266 Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Wed, 18 Feb 2015 09:46:26 +0100 Subject: [PATCH] Check status instead of statustext when receiving DLR --- tekstmelding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tekstmelding.py b/tekstmelding.py index 637bbed..b1be444 100644 --- a/tekstmelding.py +++ b/tekstmelding.py @@ -485,7 +485,7 @@ def dlr(): # We need to check what the original message was all about incoming_id = args['extID'] - success = (args['statustext'] == 'delivered') + success = (args['status'] == '4') if not success: return notify_could_not_charge( incoming_id=incoming_id, dlr_id=dlr_id, number=args['msisdn'])