Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quickfix for setting default values for multipart messages. #1140

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions jasmin/protocols/http/endpoints/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ def route_routable(self, updated_request):

# Update SubmitSmPDU by default values from user MtMessagingCredential
SubmitSmPDU = v.updatePDUWithUserDefaults(SubmitSmPDU)

# Force same default values on subPDU while multipart
_pdu = SubmitSmPDU
while hasattr(_pdu, 'nextPdu'):
_pdu = _pdu.nextPdu
_pdu = v.updatePDUWithUserDefaults(_pdu)


# Prepare for interception then routing
routedConnector = None # init
Expand Down
6 changes: 6 additions & 0 deletions jasmin/protocols/smpp/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ def submit_sm_event_interceptor(self, system_id, *args):

# Update SubmitSmPDU by default values from user MtMessagingCredential
SubmitSmPDU = v.updatePDUWithUserDefaults(SubmitSmPDU)

# Force same default values on subPDU while multipart
_pdu = SubmitSmPDU
while hasattr(_pdu, 'nextPdu'):
_pdu = _pdu.nextPdu
_pdu = v.updatePDUWithUserDefaults(_pdu)

if self.RouterPB is None:
self.log.error('(submit_sm_event_interceptor/%s) RouterPB not set: submit_sm will not be routed',
Expand Down
Loading