python-messaging icon indicating copy to clipboard operation
python-messaging copied to clipboard

Fixing error in message type

Open garronej opened this issue 7 years ago • 1 comments

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.

garronej avatar Jan 22 '17 07:01 garronej

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

garronej avatar Jan 24 '17 19:01 garronej