clean this up and make it more organized.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14000 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2009-06-27 00:38:46 +00:00
parent 87e6e63ebb
commit 3be99f4aa0
13 changed files with 0 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
function onPlayFile(s, type, obj, arg)
{
try {
if (type == "dtmf") {
console_log("info", "DTMF digit: " + s.name + " [" + obj.digit + "] len [" + obj.duration + "]\n\n");
session.execute("phrase", "spell," + obj.digit);
}
} catch (e) {
console_log("err", e + "\n");
}
return true;
}
session.answer();
while(session.ready()) {
session.streamFile(argv[0], onPlayFile);
}