This file contains hidden or 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
# ----------- | |
# connecting the call to another number () | |
# ----------- | |
answer | |
options = { :choices => 'sales( 1, sales), support( 2, support)', | |
:repeat => 3 } | |
result = ask 'For sales, just say sales or press 1. For support, say support or press 2.', options |
This file contains hidden or 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
00000 00-1 6:13:56 PM Application[http://mistermashup.voipmashups.com/call.rb] ver(1.0.100.10) has been created. | |
00001 00-1 6:13:56 PM DNS found hosted Application[http://mistermashup.voipmashups.com/call.rb] ver(1.0.100.10) for sip:[email protected]:5060 | |
00002 5844 6:13:56 PM # ----------- # line 436 | |
00003 5844 6:13:56 PM # connecting the call to another number () # line 437 | |
00004 5844 6:13:56 PM # ----------- # line 438 | |
00005 5844 6:13:56 PM # line 439 | |
00006 5844 6:13:56 PM answer # line 440 | |
00007 5844 6:13:56 PM # line 441 | |
00008 5844 6:13:56 PM options = { :choices => 'sales( 1, sales), support( 2, support)', # line 442 | |
00009 5844 6:13:56 PM :repeat => 3 } # line 443 |
This file contains hidden or 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
# ----------- | |
# connecting the call to another number () | |
# ----------- | |
answer | |
log "Inbound call answered at #{Time.now}" | |
wait 2000 | |
result = record "Hello. Thanks for calling. Leave your message at the beep.", | |
{ :beep => true, :timeout => 10, :silenceTimeout => 7, :maxTime => 10 } | |
if( result.name=='record' ) |
This file contains hidden or 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
00-1 6:55:25 PM Application[http://mistermashup.voipmashups.com/call.rb] ver(1.0.100.10) has been created. | |
01278 00-1 6:55:25 PM DNS found hosted Application[http://mistermashup.voipmashups.com/call.rb] ver(1.0.100.10) for sip:[email protected]:5060 | |
01279 6716 6:55:25 PM # ----------- # line 436 | |
01280 6716 6:55:25 PM # connecting the call to another number () # line 437 | |
01281 6716 6:55:25 PM # ----------- # line 438 | |
01282 6716 6:55:25 PM # line 439 | |
01283 6716 6:55:25 PM answer # line 440 | |
01284 6716 6:55:25 PM log "Inbound call answered at #{Time.now}" # line 441 | |
01285 6716 6:55:25 PM wait 2000 # line 442 | |
01286 6716 6:55:25 PM result = record "Hello. Thanks for calling. Leave your message at the beep.", # line 443 |
This file contains hidden or 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 'rest_client' | |
answer | |
wait 1000 | |
say "Uploading your caller ID to the site now" | |
RestClient.post 'http://mobilemaillist.heroku.com/subscribers', :subscriber => {:callerid => '987654321', :site_id => '1'} | |
hangup |
This file contains hidden or 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
00911 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answering. | |
00912 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answered. | |
00913 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->block(1000) | |
00914 00-1 7:13:07 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->prompt("Hey, chatter. Thanks for signing up for our preferred customer program. You will receive exclusive savings offers to your mobile phone, and receive ten percent off all future purchases. Thanks for shopping at William Hows hat store.",true,"","",0.3,any,30000) | |
00915 036c 7:13:07 PM RTSP Message(i): SETUP rtsp://127.0.0.1:9974/synthesizer/ RTSP/1.0 CSeq: 2 Session: sas_2-8-smj8gto3tropo-1890677328-0f63c008-00002494-0000036c Transport: RTP/AVP;unicast;destination=10.6.93.201;client_port=1974-1975 X-Voxeo-VXML-Session-Id: sas_2-8-smj8gto3tropo X-Voxeo-Account-Id: 1341 X-Voxeo-App-Id: tropo | |
00916 036c 7:13:07 PM RT |
This file contains hidden or 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
00911 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answering. | |
00912 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answered. | |
00913 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->block(1000) | |
00914 00-1 7:13:07 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->prompt("Hey, chatter. Thanks for signing up for our preferred customer program. You will receive exclusive savings offers to your mobile phone, and receive ten percent off all future purchases. Thanks for shopping at William Hows hat store.",true,"","",0.3,any,30000) | |
00915 036c 7:13:07 PM RTSP Message(i): SETUP rtsp://127.0.0.1:9974/synthesizer/ RTSP/1.0 CSeq: 2 Session: sas_2-8-smj8gto3tropo-1890677328-0f63c008-00002494-0000036c Transport: RTP/AVP;unicast;destination=10.6.93.201;client_port=1974-1975 X-Voxeo-VXML-Session-Id: sas_2-8-smj8gto3tropo X-Voxeo-Account-Id: 1341 X-Voxeo-App-Id: tropo | |
00916 036c 7:13:07 PM RT |
This file contains hidden or 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
00911 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answering. | |
00912 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answered. | |
00913 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->block(1000) | |
00914 00-1 7:13:07 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->prompt("Hey, chatter. Thanks for signing up for our preferred customer program. You will receive exclusive savings offers to your mobile phone, and receive ten percent off all future purchases. Thanks for shopping at William Hows hat store.",true,"","",0.3,any,30000) | |
00915 036c 7:13:07 PM RTSP Message(i): SETUP rtsp://127.0.0.1:9974/synthesizer/ RTSP/1.0 CSeq: 2 Session: sas_2-8-smj8gto3tropo-1890677328-0f63c008-00002494-0000036c Transport: RTP/AVP;unicast;destination=10.6.93.201;client_port=1974-1975 X-Voxeo-VXML-Session-Id: sas_2-8-smj8gto3tropo X-Voxeo-Account-Id: 1341 X-Voxeo-App-Id: tropo | |
00916 036c 7:13:07 PM RT |
This file contains hidden or 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
begin | |
require 'rubygems' | |
require 'restclient' | |
require 'URI' | |
require 'net/http' | |
SITE_ID = 1 | |
options = { "silenceTimeout" => 30.0 } | |
This file contains hidden or 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
me: test | |
tomtropo: Hey, chatter. Thanks for signing up for our preferred customer program. You will receive exclusive savings offers to your mobile phone, and receive ten percent off all future purchases. Thanks for shopping at William Hows hat store. | |
Need a phone number to register. Hit me | |
Thanks for that. noChoice will be registered. | |
Sent at 3:23 PM on Monday |
OlderNewer