Skip to content

Instantly share code, notes, and snippets.

@stevegraham
Created October 3, 2011 16:49
Show Gist options
  • Select an option

  • Save stevegraham/1259576 to your computer and use it in GitHub Desktop.

Select an option

Save stevegraham/1259576 to your computer and use it in GitHub Desktop.
# using twilio-rb
Twilio::Call.create to: telephone_number_of_participant, from: your_caller_id, url: conference_resource_url
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Conference>your-unique-conference-id</Conference>
</Dial>
</Response>
# using the TwiML builder from twilio-rb
# app/views/conferences/show.voice
# will be rendered for example when a "/conferences/#{params[:id].voice" url is received
res.dial do
res.conference 'your-unique-conference-id'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment