Skip to content

Commit

Permalink
Merge branch 'develop' into release/0.6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Jul 27, 2016
2 parents 04d7b67 + 76945b3 commit 60b5fff
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM praekeltfoundation/python-base
MAINTAINER Praekelt Foundation <[email protected]>

ENV VUMI_VERSION "0.6.9"
ENV VUMI_VERSION "0.6.10"
RUN pip install vumi==$VUMI_VERSION

COPY ./vumi-entrypoint.sh /app/vumi-entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# The short X.Y version.
version = '0.6'
# The full version, including alpha/beta/rc tags.
release = '0.6.9'
release = '0.6.10'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 6 additions & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ this will almost certainly not break the majority of things built on vumi, old
code or code that relies too heavily on the details of worker setup may need to
be fixed.

:Version: 0.6.10
:Date released: 27 July 2016

* Update Dmark transport to send null content at the start of a USSD session
rather than sending the USSD code.

:Version: 0.6.9
:Date released: 27 July 2016

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name="vumi",
version="0.6.9",
version="0.6.10",
url='http://github.com/praekelt/vumi',
license='BSD',
description="Super-scalable messaging engine for the delivery of SMS, "
Expand Down
2 changes: 1 addition & 1 deletion vumi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Vumi scalable text messaging engine.
"""

__version__ = "0.6.9"
__version__ = "0.6.10"
5 changes: 4 additions & 1 deletion vumi/transports/dmark/dmark_ussd.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,15 @@ def handle_raw_inbound_message(self, request_id, request):

to_addr = values["ussdServiceCode"]
from_addr = values["msisdn"]
content = values["ussdRequestString"]
session_event = yield self.session_event_for_transaction(
values["transactionId"])
if session_event == TransportUserMessage.SESSION_NEW:
content = None

yield self.publish_message(
message_id=request_id,
content=values["ussdRequestString"],
content=content,
to_addr=to_addr,
from_addr=from_addr,
provider='dmark',
Expand Down
4 changes: 2 additions & 2 deletions vumi/transports/dmark/tests/test_dmark_ussd.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ def assert_nack(self, nack, reply, reason):

@inlineCallbacks
def test_inbound_begin(self):
user_content = "Who are you?"
user_content = "SHOULD BE IGNORED"
d = self.tx_helper.mk_request(ussdRequestString=user_content)
[msg] = yield self.tx_helper.wait_for_dispatched_inbound(1)
self.assert_inbound_message(
msg,
session_event=TransportUserMessage.SESSION_NEW,
content=user_content)
content=None)

reply_content = "We are the Knights Who Say ... Ni!"
reply = msg.reply(reply_content)
Expand Down

0 comments on commit 60b5fff

Please sign in to comment.