English 中文(简体)
Using twimlets in a Twilio Play verb
原标题:
  • 时间:2010-09-04 18:02:26
  •  标签:
  • twilio

I thought it I could specify any URL - including the twimlets used in conference calls - in the Play verb of a TwiML file. However, the following does not work...

http://twimlets.com/holdmusic?Bucket=com.twilio.music.classical#&Message=please%20wait

... and neither does the twimlet when I strip away the arguments...

http://twimlets.com/holdmusic?Bucket=com.twilio.music.classical

Does the Play noun work differently?

<Response>
    <Say>Please wait while I work on your request</Say>
    <Play>http://twimlets.com/holdmusic?Bucket=com.twilio.music.classical&amp;amp;Message=please%20wait</Play>
</Response>
最佳回答

<Play> only supports audio files and the hold music Twimlet is generating TwiML of it s own with a series of <Play> verbs that contain actual audio URLs.

What you would want to do is <Redirect> to that URL which would start the hold music. Let me know if that works for you!

问题回答

暂无回答




相关问题
Rails 3 XML Builder / Twilio API

This Twilio API Sample code isn t working in Rails 3: #voice_controller.rb def reminder @postto = BASE_URL + /directions respond_to do |format| format.xml { @postto } end ...

Using twimlets in a Twilio Play verb

I thought it I could specify any URL - including the twimlets used in conference calls - in the Play verb of a TwiML file. However, the following does not work... http://twimlets.com/holdmusic?Bucket=...

Twilio - how do they send/receive SMS

I m interested to find out how twilio s SMS sending/receiving feature works, on long codes, or local numbers Outside of the states, mobile originated SMS terminated on a long number is very common, ...

400 bad request from twilio s REST API using twilio-ruby

I m trying to get started with Twilio s REST API using the rubygem twilio-ruby, and I ve hit a snag. Here s my code: h = {:From => "123-123-1234", :To => "123-123-1234", :Body => "hey"} ...

How does the Twilio website work?

There is a good pitch from Twilio here. I just don t get how they can do that with a website. How can you control a land line with a web browser?

Django | twilio to send SMS

I m using twilio as for a mobile verification mechanism, I have no prior experience in using twilio but looking at the sample PHP code I used this one in my code but apparently it s giving me an 400 ...

IVR vs Asp.net MVC: How can I stop reinventing the browser?

I m making an IVR system for a project, and have decided on Twilio to handle the phone portion (making and receiving calls, sending and receiving SMS messages). This will surface a website with an IVR ...

热门标签