python-messaging
python-messaging copied to clipboard
Fixing error in message type
Hi, I noticed an error in the 'type' field that was always set to None for SMS-DELIVER and to a wrong value for SMS-STATUS-REPORT.
I corredcted that and added the field tp_mms and tp_udhi on the way.
I let you see if you want to merge.
Regards.
Hi, I also noticed that in SMS-STATUS-REPORT the time zone of TP-SCTS and TP-DT where not parsed. What I have done is simply reproduce the block of code that retreive the TP-SCTS of SMS-DELIVER and past it ( two time ) in _decode_status_report_pdu.
It's not elegant but it fix the bug.
Regards