Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing Dequeue Twiml for Next Call function in Into-the-browser
Fixing sendDigits typo to sendDTMF when calling the twilio.js API
Fixing the mention of '#' for hanging up calls, hangupOnStar uses '*' instead
Fixing AverageQueueTime to use AvgQueueTime on waitUrl callback instead
  • Loading branch information
kelvl committed Oct 15, 2012
1 parent 0c9bfb0 commit 8329633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/browser.rst
Expand Up @@ -193,7 +193,7 @@ current call, and dial the next person in the queue.
<Dial hangupOnStar="true">
<Queue>radio-callin-queue</Queue>
</Dial>
<Redirect></Redirect>
<Redirect method="GET"></Redirect>
</Response>
Change your application's Voice URL so it serves this TwiML when dialed.
Expand All @@ -202,8 +202,8 @@ Getting the Next Caller From the <Queue>
-----------------------------------------

We want to make it easy to hangup the current call and move to the next one by
pressing the "#" key on the phone. Twilio Client has a feature for sending DTMF
tones (the tone when you press "#" on your phone) programmatically.
pressing the "*" key on the phone. Twilio Client has a feature for sending DTMF
tones (the tone when you press "*" on your phone) programmatically.

First, we need to hold on to the response of ``Twilio.Device.connect()`` so
let's add a global variable called ``connection`` and have every ``call()``
Expand All @@ -223,7 +223,7 @@ Now, we can add a new function, called ``next()``:
function next() {
if (connection) {
connection.sendDTMF("*");
connection.sendDigits("*");
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/callin.rst
Expand Up @@ -296,7 +296,7 @@ Remember to change the ``waitUrlMethod`` from ``GET`` to ``POST`` now that we ar
response = twiml.Response()
response.say("You are number %s in line." % self.request.get('QueuePosition'))
response.say("You've been in line for %s seconds." % self.request.get('QueueTime'))
response.say("The average wait time is currently %s seconds." % self.request.get('AverageQueueTime'))
response.say("The average wait time is currently %s seconds." % self.request.get('AvgQueueTime'))
response.play("http://com.twilio.music.rock.s3.amazonaws.com/nickleus_-_original_guitar_song_200907251723.mp3")
self.response.out.write(str(response))
Expand Down

0 comments on commit 8329633

Please sign in to comment.