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
| { | |
| "result": { | |
| "actions": { | |
| "attempts": 1, | |
| "concept": "1", | |
| "confidence": 100, | |
| "disposition": "SUCCESS", | |
| "interpretation": "1", | |
| "name": "zip", | |
| "utterance": "1", |
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
| { | |
| "tropo": [ | |
| { | |
| "say": { | |
| "value": "Your zip code is 19807." | |
| } | |
| }, | |
| { | |
| "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
| # Rewrite rules | |
| # On any incoming POST requests, we want to rewrite from http://hostname/resource | |
| # to http://hostname/node/resource | |
| RewriteEngine On | |
| # We only want HTTP POSTs | |
| RewriteCond %{REQUEST_METHOD} "POST" | |
| # If we've already added "/node/" skip the rewrite rule | |
| RewriteCond %{REQUEST_URI} !./node | |
| # Once rewritten, pass thru to the next handler | |
| RewriteRule (.*) /node$1 [PT] |
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 SQL script for importing GFTS data from the State of Delaware into a MySQL database. | |
| -- | |
| -- Copyright 2010 Mark J. Headd | |
| -- http://www.voiceingov.org | |
| -- | |
| -- This file is free software; you can redistribute it and/or modify it under the terms of the | |
| -- GNU Library General Public License as published by the Free Software Foundation; either version 2 of the | |
| -- License, or (at your option) any later version. | |
| -- This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
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
| -- ---------------------------------------------------------------------------------------------------- | |
| -- Stored Procedures for querying GFTS data from the State of Delaware in a MySQL database. | |
| -- | |
| -- Copyright 2010 Mark J. Headd | |
| -- http://www.voiceingov.org | |
| -- | |
| -- This file is free software; you can redistribute it and/or modify it under the terms of the | |
| -- GNU Library General Public License as published by the Free Software Foundation; either version 2 of the | |
| -- License, or (at your option) any later version. | |
| -- This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
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 net = require('net'); | |
| var sys = require('sys'); | |
| // Create a TCP server and listen on FastAGI port. | |
| var server = net.createServer(); | |
| server.listen(4573, '127.0.0.7'); | |
| // Add a listener for new connections. | |
| server.addListener('connection', fastAGI); |
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 | |
| require_once 'path/to/tropo.class.php'; | |
| // Create a new instance of the Tropo object. | |
| $tropo = new Tropo(); | |
| // Create a say object and give it the URL of an audio file. | |
| $say = new Say("http://mp3server.com/someringtone.mp3"); |
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
| [default] | |
| exten => _XXXX,1,Answer() | |
| exten => _XXXX,n,JabberSend(asterisk,user@xxx.xxx.xxx.xxx,Incoming call from ${CALLERID(num)}) | |
| exten => _XXXX,n,JabberSend(asterisk,user@xxx.xxx.xxx.xxx,To accept, enter 1. To reject, enter 2.) | |
| exten => _XXXX,n,Set(OPTION = ${JABBER_RECEIVE(asterisk,user@xxx.xxx.xxx.xxx,10)}) | |
| exten => _XXXX,n,Gotoif($[${OPTION}=1]?connect:goodbye) | |
| exten => _XXXX,n(connect),Wait(1) | |
| exten => _XXXX,n,JabberSend(asterisk,user@xxx.xxx.xxx.xxx,Connecting call...); | |
| exten => _XXXX,n,Wait(1) | |
| exten => _XXXX,n,Dial(SIP/${EXTEN}) |
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 | |
| /* | |
| * Copyright 2010 Mark J. Headd | |
| * | |
| * This application is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ccxml version="1.0" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml"> | |
| <var name="inboundID"/> | |
| <var name="outboundID"/> | |
| <var name="initState" expr="'state1'" /> | |
| <!-- Tropo API information --> | |
| <var name="tropoAPIToken" expr="'your-tropo-session-token'"/> | |
| <var name="tropoAPIEndPoint" expr="'http://api-internal.tropo.com/1.0/sessions?action=create&token=' + tropoAPIToken"/> |