Skip to content

Commit

Permalink
Merge branch 'master' into v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
farirat committed Nov 10, 2016
2 parents d481559 + aed63dd commit eb739aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion misc/doc/sources/management/jcli/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ The SMPP Client connector manager module is accessible through the **smppccm** c
* - -1 CID, --start=CID
- Start SMPP connector using it's CID
* - -0 CID, --stop=CID
- Start SMPP connector using it's CID
- Stop SMPP connector using it's CID

A SMPP Client connector is used to send/receive SMS through SMPP v3.4 protocol, it is directly connected to MO and MT routers to
provide end-to-end message delivery.
Expand Down
6 changes: 5 additions & 1 deletion misc/scripts/sms_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ def gotConnection(conn, username, password):
pdu = pickle.loads(msg.content.body)
pdu_count = 1
short_message = pdu.params['short_message']
submit_sm_bill = pickle.loads(props['headers']['submit_sm_resp_bill'])
billing = props['headers']
billing_pickle = billing.get('submit_sm_resp_bill')
if not billing_pickle:
billing_pickle = billing.get('submit_sm_bill')
submit_sm_bill = pickle.loads(billing_pickle)
source_connector = props['headers']['source_connector']
routed_cid = msg.routing_key[10:]

Expand Down

0 comments on commit eb739aa

Please sign in to comment.