Skip to content

Instantly share code, notes, and snippets.

@TelegramSam
TelegramSam / twiliofallback.xml
Created January 17, 2011 17:00
This file is used for fallback behavior on a Twilio number
<?xml version='1.0' encoding='UTF-8'?>
<Response>
<Say>Please hold while we connect you.</Say>
<Sms to='+18015551212'>Twilio Number Fail!</Sms>
<Dial>8015551212</Dial>
</Response>
ruleset a8x60 {
meta {
name "Twilio Demo"
description <<
Demo for our main twilio number
>>
author "Sam Curren"
logging off
}
  rule phonedone is active {
    select when twilio callstart
    twilio:say("Bidding has ended with a final price of #{highbid} dollars. Thanks!");
fired {
   last;
   }
  }
  rule smsdone is active {
    select when twilio sms
    twilio:sms("Bidding has ended with a final price of #{highbid} dollars. Thanks!");
ruleset a8x72 {
  meta {
    name "NeoSale"
    description <<
      Selling the Neo Freerunner
    >>
    author "Sam Curren"
    logging on
    key twitter {
      "consumer_key" : "<redacted>",
ruleset a8x60 {
meta {
name "Twilio Demo"
description <<
Demo for our main twilio number
>>
author "Sam Curren"
logging off
}