docs/usage/phone-calls.rst in twilio-ruby-3.14.2 vs docs/usage/phone-calls.rst in twilio-ruby-3.14.3
- old
+ new
@@ -129,11 +129,11 @@
@client = Twilio::REST::Client.new account_sid, auth_token
@calls = @client.calls.list(status: "in-progress")
@calls.each do |call|
- call.redirect_to("http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient")
+ call.redirect_to("http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient")
end
Ending all live calls is also possible
@@ -147,10 +147,10 @@
@client = Twilio::REST::Client.new account_sid, auth_token
@calls = @client.calls.list(status: "in-progress")
@calls.each do |call|
- call.hangup()
+ call.hangup()
end
Note that :meth:`hangup` will also cancel calls currently queued.
If you already have a :class:`Call` sid, you can use the :class:`Calls`