Skip to content

Commit

Permalink
Refactor bargein to true
Browse files Browse the repository at this point in the history
  • Loading branch information
johncordeiro committed May 15, 2019
1 parent cb230c4 commit fcb0b43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions temba/utils/imimobile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def join(self, response):
return self

def say(self, text, **kwargs):
result = '<prompt bargein="false">' + text + "</prompt>"
result = '<prompt bargein="true">' + text + "</prompt>"
self.document += result
return self

Expand All @@ -47,16 +47,16 @@ def play(self, url=None, digits=None, **kwargs):

result = ""
if digits:
result += '<block><prompt bargein="false">' + digits + "</prompt></block>"
result += '<block><prompt bargein="true">' + digits + "</prompt></block>"

if url:
result += '<block><prompt bargein="false"><audio src="' + url + '" /></prompt></block>'
result += '<block><prompt bargein="true"><audio src="' + url + '" /></prompt></block>'

self.document += result
return self

def pause(self, **kwargs):
result = '<block><prompt bargein="false"><break '
result = '<block><prompt bargein="true"><break '
if kwargs.get("length", False):
result += 'time="' + str(kwargs.get("length")) + 's"'

Expand Down

0 comments on commit fcb0b43

Please sign in to comment.