Skip to content

Commit

Permalink
Merge pull request #1175 from BlackOrder/udh-segment_seqnum
Browse files Browse the repository at this point in the history
udh segment_seqnum from the current part not always read it from first part
  • Loading branch information
farirat authored Mar 27, 2024
2 parents 4ec623c + 16365b3 commit bb35e40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jasmin/protocols/smpp/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ def doSendRequest(self, pdu, timeout):
partedSmPdu.LongSubmitSm['segment_seqnum'] = partedSmPdu.params['sar_segment_seqnum']
elif splitMethod == 'udh':
# Using UDH options:
partedSmPdu.LongSubmitSm['msg_ref_num'] = pdu.params['short_message'][3]
partedSmPdu.LongSubmitSm['total_segments'] = pdu.params['short_message'][4]
partedSmPdu.LongSubmitSm['segment_seqnum'] = pdu.params['short_message'][5]
partedSmPdu.LongSubmitSm['msg_ref_num'] = partedSmPdu.params['short_message'][3]
partedSmPdu.LongSubmitSm['total_segments'] = partedSmPdu.params['short_message'][4]
partedSmPdu.LongSubmitSm['segment_seqnum'] = partedSmPdu.params['short_message'][5]

self.preSubmitSm(partedSmPdu)
self.sendPDU(partedSmPdu)
Expand Down

0 comments on commit bb35e40

Please sign in to comment.