Skip to content

Commit

Permalink
Pass callerId flag with the user's phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
beaugunderson committed Feb 11, 2014
1 parent 7318ee6 commit 7d31bbb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,11 @@ def make_single_call():
play_or_say(resp, campaign['msg_rep_intro'], name=full_name)

if app.debug:
print u'DEBUG: Call #{}, {} ({}) from make_single_call()'.format(
i, full_name, congress_phone)
print u'DEBUG: Call #{}, {} ({}) from {} in make_single_call()'.format(
i, full_name, congress_phone, params['userPhone'])

resp.dial(congress_phone, timeLimit=app.config['TW_TIME_LIMIT'],
resp.dial(congress_phone, callerId=params['userPhone'],
timeLimit=app.config['TW_TIME_LIMIT'],
timeout=app.config['TW_TIMEOUT'], hangupOnStar=True,
action=url_for('call_complete', **params))

Expand Down

0 comments on commit 7d31bbb

Please sign in to comment.