From 150a63ab6d6aa017a6d801395eb484d970459113 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 6 Mar 2006 23:37:32 +0000 Subject: [PATCH] update docs git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@768 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- docs/JavaScript.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/JavaScript.txt b/docs/JavaScript.txt index ac5a3e4085..a46eeb1327 100644 --- a/docs/JavaScript.txt +++ b/docs/JavaScript.txt @@ -39,8 +39,7 @@ function on_dtmf(digits) session.answer(); -while(session.state == "CS_EXECUTE") { - allDigits = ""; +while(session.ready()) { return_value = session.streamFile("/tmp/demo.wav", "", "on_dtmf"); if (return_value == "hangup") { session.hangup(); // or break;