Skip to content

Commit

Permalink
Close #234
Browse files Browse the repository at this point in the history
  • Loading branch information
farirat committed Jul 9, 2015
1 parent af9773b commit ea825ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions jasmin/managers/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def __init__(self, SMPPClientSMListenerConfig, SMPPClientFactory, amqpBroker, re
self.rejectTimers = {}
self.submit_retrials = {}
self.qosTimer = None
self.re_patterns = {}

# Set pickleProtocol
self.pickleProtocol = SMPPClientPBConfig(self.config.config_file).pickle_protocol
Expand Down
10 changes: 9 additions & 1 deletion jasmin/protocols/smpp/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,21 @@ def doSendRequest(self, pdu, timeout):
# pdus, each with an OutboundTransaction
# - Every OutboundTransaction is closed upon receiving the correct submit_sm_resp
# - Every LongSubmitSmTransaction is closed upong closing all included OutboundTransactions
#
# Update 20150709 #234:
# If the pdu has no nextPdu attribute then it may be a part of a long message not managed
# by Jasmin: it may come from SMPPs already parted, in this case Jasmin must pass the
# message as is without starting LongSubmitSmTransaction.
# The downside of this behaviour is that each part of the message will be logged in a single
# line in messages.log

# UDH is set ?
UDHI_INDICATOR_SET = False
if hasattr(pdu.params['esm_class'], 'gsmFeatures'):
for gsmFeature in pdu.params['esm_class'].gsmFeatures:
if str(gsmFeature) == 'UDHI_INDICATOR_SET':
UDHI_INDICATOR_SET = True
break

# Discover any splitting method, otherwise, it is a single SubmitSm
if 'sar_msg_ref_num' in pdu.params:
Expand All @@ -240,7 +248,7 @@ def doSendRequest(self, pdu, timeout):
else:
splitMethod = None

if splitMethod is not None:
if splitMethod is not None and hasattr(pdu, 'nextPdu'):
partedSmPdu = pdu
first = True

Expand Down

0 comments on commit ea825ae

Please sign in to comment.