Last active
August 29, 2015 13:56
-
-
Save radralph/9300379 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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