Skip to content

Instantly share code, notes, and snippets.

@radralph
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save radralph/545bbffafb629e6fa9bb to your computer and use it in GitHub Desktop.

Select an option

Save radralph/545bbffafb629e6fa9bb to your computer and use it in GitHub Desktop.
# answer
log $currentCall.sessionId + "-------------"
say "this is a test"
say "joining session"
conference "1137", {
:conferenceId => "1137",
:playTones => true,
:allowSignals => "exit",
:onSignal => lambda { |event|
say "yes this is working"}
}
log $currentCall.sessionId + "-------------"
# current_session = $currentCall.sessionId
# command1 = Thread.new do
# conference "1137", {
# :conferenceId => "1137",
# :playTones => true,
# :allowSignals => "play_warning",
# :onSignal => lambda { |event|
# say "myhost.com/warning.mp3"}
# }
# end
# command.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment