Skip to content

Commit

Permalink
create DLR with last pdu smpp_msgid instead of the first
Browse files Browse the repository at this point in the history
  • Loading branch information
Herneto committed Nov 19, 2023
1 parent 8455c1b commit 6eb0f0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jasmin/managers/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,10 @@ def submit_sm_resp_event(self, r, amqpMessage):

# Send DLR to DLRLookup
if r.response.status == CommandStatus.ESME_ROK:
dlr = DLR(pdu_type=r.response.id, msgid=msgid, status=r.response.status,
smpp_msgid=r.response.params['message_id'])
dlr = DLR(pdu_type=_pdu.response.id, msgid=msgid, status=_pdu.response.status,
smpp_msgid=_pdu.response.params['message_id'])
else:
dlr = DLR(pdu_type=r.response.id, msgid=msgid, status=r.response.status)
dlr = DLR(pdu_type=_pdu.response.id, msgid=msgid, status=_pdu.response.status)
yield self.amqpBroker.publish(exchange='messaging', routing_key='dlr.submit_sm_resp', content=dlr)

# Bill will be charged by bill_request.submit_sm_resp.UID queue consumer
Expand Down

0 comments on commit 6eb0f0c

Please sign in to comment.