change callback prototype on js (will break all callback scripts)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6995 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-12-27 20:45:26 +00:00
parent cdf7c4a032
commit 7123237991
2 changed files with 145 additions and 12 deletions

View File

@@ -147,7 +147,7 @@ function SpeechDetect(session, mod, ip) {
}
/* Callback function for streaming,TTS or bridged calls */
this.onInput = function(type, inputEvent, _this) {
this.onInput = function(s, type, inputEvent, _this) {
if (type == "event") {
var speech_type = inputEvent.getHeader("Speech-Type");
var rv = new Array();