Check status instead of statustext when receiving DLR

This commit is contained in:
ponas committed 2015-02-18 09:46:26 +01:00
1 parent 6ee1d3b2ff
commit aab98df549
1 file changed
+1 -1
+1 -1
View File
@@ -485,7 +485,7 @@ def dlr():
# We need to check what the original message was all about # We need to check what the original message was all about
incoming_id = args['extID'] incoming_id = args['extID']
success = (args['statustext'] == 'delivered') success = (args['status'] == '4')
if not success: if not success:
return notify_could_not_charge( return notify_could_not_charge(
incoming_id=incoming_id, dlr_id=dlr_id, number=args['msisdn']) incoming_id=incoming_id, dlr_id=dlr_id, number=args['msisdn'])