aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/esme.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-08-17 17:01:50 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-08-17 17:05:08 +0200
commit69373b32014747b28cb972a0185e352516ce463a (patch)
tree6a44dec449f682b3fef2736cd450cf9a9290a778 /src/osmo_gsm_tester/esme.py
parent74a7676eb10e3b88571fbcbdc239b1ff4a32a852 (diff)
esme: smpp pdu field is a string and needs conversion
I take the chance to also swap the two log parameters, because they are included into a dictionary and shown in swapped order in the log anyway, which distracts me every time I look at the values. Change-Id: I6e6ec5b9980958de82ade40e4cd898dc6f1b889f
Diffstat (limited to 'src/osmo_gsm_tester/esme.py')
-rw-r--r--src/osmo_gsm_tester/esme.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmo_gsm_tester/esme.py b/src/osmo_gsm_tester/esme.py
index 376152a..c838841 100644
--- a/src/osmo_gsm_tester/esme.py
+++ b/src/osmo_gsm_tester/esme.py
@@ -121,8 +121,9 @@ class Esme(log.Origin):
if isinstance(pdu, smpplib.command.AlertNotification):
self.dbg('message received: AlertNotification:', ms_availability_status=pdu.ms_availability_status)
elif isinstance(pdu, smpplib.command.DeliverSM):
- self.dbg('message received:', user_message_reference=pdu.user_message_reference, references_pending_receipt=self.references_pending_receipt)
- self.references_pending_receipt.remove(pdu.user_message_reference)
+ umref = int(pdu.user_message_reference)
+ self.dbg('message received: DeliverSM', references_pending_receipt=self.references_pending_receipt, user_message_reference=umref)
+ self.references_pending_receipt.remove(umref)
def receipt_was_received(self, umref):
# return umref not in self.references_pending_receipt