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
| // Start recording the conference call. | |
| startCallRecording('http://url-for-your-server/record.php', { format: 'audio/mp3' }); | |
| // Welcome the caller to the conference. | |
| say('Welcome to the conferene line. Press the star key to exit.'); | |
| // Start the conference. | |
| conference('1234567', { | |
| terminator : "*", | |
| mute : false, |
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
| { | |
| "in_reply_to_screen_name": null, | |
| "in_reply_to_user_id": null, | |
| "text": "I'm at Telephony Is Sexy. http:\/\/4sq.com\/eLfv6I", | |
| "in_reply_to_status_id_str": null, | |
| "contributors": null, | |
| "retweeted": false, | |
| "in_reply_to_user_id_str": null, | |
| "retweet_count": 0, | |
| "source": "\u003Ca href=\"http:\/\/foursquare.com\" rel=\"nofollow\"\u003Efoursquare\u003C\/a\u003E", |
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
| var sip = require('sip'); | |
| var sys = require('sys'); | |
| var redis = require('redis'); | |
| //Trim leading and trailing whitespace from string values. | |
| function trim(str) { | |
| return str.replace(/^\s+|\s+$/g, ''); | |
| } | |
| sip.start({},function(request) { |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Web; | |
| using System.Xml; | |
| using TropoCSharp.Structs; | |
| using TropoCSharp.Tropo; | |
| namespace OutboundTest | |
| { | |
| class Program |
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
| <?php | |
| /** | |
| * | |
| * A simple class to retrieve point data from PHLAPI. | |
| * | |
| */ | |
| class PhlApi { | |
| // Private class members. |
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
| // Include required modules. | |
| var sys = require('sys'); | |
| var http = require('http'); | |
| var EventEmitter = require('events').EventEmitter; | |
| // PHLAPI class. | |
| PhlApi = function(host, port, data_set, version) { | |
| this.host = host; | |
| this.port = port; | |
| this.data_set = data_set |
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
| <?php | |
| /** | |
| * PhindItForMe - an IM, SMS, Twitter and Phone application that finds locations in Philadelphia. | |
| * | |
| * @copyright 2011 Mark J. Headd (http://www.voiceingov.org) | |
| * @author Mark Headd | |
| */ | |
| // Constants used to geocode an address. |
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
| // A simple JavaScript app that runs on Tropo. | |
| var letters = 'abcdefghijklmnopqrstuvwxyz'; | |
| var letterArray = letters.split(''); | |
| var start = new Date(); | |
| say('Hello, and welcome to Tropo.'); | |
| for(var i = 0; i < letterArray.length; i++) { | |
| say(letterArray[i] + '.'); |
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
| var sys = require('sys'); | |
| var http = require('http'); | |
| var cradle = require('cradle'); | |
| var port = 8000; | |
| var db = new (cradle.Connection)('http://127.0.0.1', 5984).database('smsrecords'); | |
| var server = http.createServer(function(req, res) { |
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
| <?php | |
| /* | |
| * Convenience class that parses inbound SMSified JSON into a simple object. | |
| */ | |
| class InboundMessage { | |
| // Class properties. | |
| public $timeStamp; | |
| public $destinationAddress; |