Skip to content

Instantly share code, notes, and snippets.

@radralph
Last active May 5, 2017 03:11
Show Gist options
  • Save radralph/e9ad457fd4e15f68b529fa49655d7e45 to your computer and use it in GitHub Desktop.
Save radralph/e9ad457fd4e15f68b529fa49655d7e45 to your computer and use it in GitHub Desktop.
say "Please wait while we transfer your call. Press star to cancel the transfer."
transfer ["sip:9175744034@sip.tropo.net"], {
:callerID => 'sip:917111@sip.tropo.net',
:playvalue => "http://www.phono.com/audio/holdmusic.mp3",
:terminator => "*",
:onTimeout => lambda { |event|
say "Sorry, but nobody answered"}
}
say "goodbye"
hangup
# call $caller, {:callerID => 'sip:917111@sip.tropo.net'}
# conference "1337", {
# :terminator => "*",
# :playTones => true,
# :onChoice => lambda { |event|
# say("Disconnecting")
# }}
# say "goodbye"
# hangup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment