Skip to content

Instantly share code, notes, and snippets.

@radralph
Last active August 29, 2015 13:56
Show Gist options
  • Save radralph/9300379 to your computer and use it in GitHub Desktop.
Save radralph/9300379 to your computer and use it in GitHub Desktop.
require 'net/http'
require 'open-uri'
say "hello, you will receive a call regarding this service."
msisdn = $currentCall.callerID
msisdn = msisdn.to_s.gsub('6309','9')
command = Thread.new do
call msisdn, { :callerID => 'sip:21581082@sip.tropo.net'}
say "Hello! this is a sample call from Globe Labs. Have a good day. Goodbye!"
hangup
end
say "goodbye!"
hangup
command.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment