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' | |
call $caller, { :callerID => 'sip:21581082@sip.tropo.net'} | |
say "http://auto-sms.herokuapp.com/call2.mp3" | |
hangup |
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' | |
numbers = ["9164948855","9175744034"] | |
numbers.each do |n| | |
call n, { :callerID => 'sip:21581036@sip.tropo.net'} | |
say "http://guess-demo.herokuapp.com/call2.mp3" | |
end |
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' | |
#numbers = [""] | |
#numbers.each do |n| | |
call "9066490454", { :callerID => 'sip:21581039@sip.tropo.net'} | |
say "http://auto-sms.herokuapp.com/call2.mp3" | |
#end |
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
call "9175744034", { :callerID => 'sip:21581095@sip.tropo.net'} | |
say "this is a sample call" | |
hangup |
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 |
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
call $caller, {:callerID => 'sip:917111@sip.tropo.net'} | |
say "Hello! this is a sample call from Globe Labs. Have a good day. Goodbye!" | |
hangup |
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
wait(1500) | |
say "Starting to test ASR..." | |
result = ask "Choose from Tom, Nancy or Jeff.", { | |
:choices => "Tom, Nancy, Jeff", | |
:recognizer => "en-PH", | |
:timeout => 20, | |
:bargein => true, | |
:mode => "speech", | |
:onChoice => lambda { |event| | |
say "On Choice" |
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
wait(3000) | |
result = ask "Hi, this is a test call....... please input number 1 or number 2....", { | |
:choices => "1, 2", | |
:mode => "dtmf", | |
:timeout => 15.0, | |
:attempts => 3, | |
:terminator => '#' | |
} | |
say "you chose number" + result.value |
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
say "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer efficitur lectus ac ultrices scelerisque. Duis sit amet scelerisque sem, in feugiat odio. Pellentesque efficitur blandit quam, vel eleifend justo sollicitudin ut. Quisque nec rhoncus odio, non efficitur sem. Aliquam dapibus interdum urna eu sodales. In molestie tortor non lacus tempus, vel blandit metus tristique. Maecenas vel elit vel metus faucibus cursus. Sed non augue pretium, aliquam odio ullamcorper, placerat ligula. Ut gravida a erat ut eleifend." | |
hangup |
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
wait(1500) | |
result = ask "enter 3 numbers", { | |
:choices => "[3 DIGITS]", | |
:terminator => '#', | |
:timeout => 15.0, | |
:mode => "dtmf", | |
:onChoice => lambda { |event| | |
say "Thank you." | |
} | |
} |
OlderNewer