twilio-api


Place Outbound Twilio Call and Respond to User Input


Hello everyone and thanks for your help in advance.  I am developing an MVC application that generates an outbound call from a web page.  What I want to do is to allow the recipient of the phone call to be able to make DTMF selections on their keypad.  I know there are methods within Twilio to respond to DTMF input for inbound calls, using the verb but I don't see any documentation for outbound calls and wonder if it can even be accomplished. When the outbound call is answered I created a simple web form that is called:
Dim header As String = "<?xml version=" & Chr(34) & "1.0" & Chr(34) & " encoding=" & Chr(34) & "UTF-8" & Chr(34) & "?>"
Dim message As String = "<Response>"
message = message & "<Gather>"
message = message & "<Play loop=" & Chr(34) & "1" & Chr(34) & ">http://www.mydomain/Sounds/Call.wav</Play>"
message = message & "</Gather>"
message = message & "</Response>"
Response.ClearContent()
Response.Clear()
Response.Write(header & message)
which in turn generates a TwiML response:
http://www.mydomain/Sounds/Call.wav
So once the user presses 1 is where I am confused as to what to do. I did come across the article Respond to Incoming Phone Calls in C#
that speaks to responding to user input. I tried:
Dim response = New VoiceResponse()
response.Gather(New Gather(numDigits:=1, action:="/voice/gather"))
but am receiving a syntax error on the second line, even though I think it is the VB.Net equivalent C# version 5.x example. So it really seems like I should be able to accomplish my task, but I am stuck as to how to get his working. Any help would be appreciated.

Related Links

Place Outbound Twilio Call and Respond to User Input
Twilio Recording Ongoing call
TaskRouter Redirect to Client Browser in Java
Facing issue with Twilio Taskrouter sample client

Categories

HOME
server
mockito
android-4.4-kitkat
survey
enterprise-library-5
bs4
cloudkit
row
google-apps-marketplace
google-cloud-ml
remote-access
visual-studio-2005
serilog
google-cloud-speech
emulator
one-hot-encoding
google-search-api
claims-based-identity
intel-pin
opentype
facebook-apps
react-chartjs
key-value-observing
galsim
google-cloud-endpoints-v2
data-manipulation
airconsole
calibre
subset-sum
geopositioning
suricata
bitbucket-pipelines
sqlite2
mesos-chronos
dynamic-reports
heightmap
http-redirect
eclipse-gef
slick-3.0
user-accounts
termination
qsslsocket
pnotify
dandelion
sage-one
yii2-extension
knockout-components
android-cursor
sqlbulkcopy
pearson
webdriverjs
chord-diagram
objective-c-swift-bridge
watchconnectivity
xcb
google-feed-api
file-writing
login-control
asp.net-4.5
transmitfile
django-debug-toolbar
fuzzy-search
flash-cs5
lua-5.1
sigabrt
ubuntu-10.04
sdf
hsv
pervasive-sql
jms2
lib.web.mvc
responsive-images
pretty-print
inmobi
npapi
socketexception
code-access-security
aapt
expected-exception
didselectrowatindexpath
dbconnection
ftps
file-locking
smtp-auth
clipper
selected
gdata-api
armcc
asyncfileupload
bigcouch
gnu-prolog
mod-auth
locate
site.master
gallio
wise
modelstate
brewmp
project-hosting
ubuntu-9.04

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile