Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added allowSignals and interdigitTimeout to the record method

  • Loading branch information...
commit 71426e52c3e571d49ed0aeb350d32e72838643a0 1 parent 826345c
Kevin Bond authored
Showing with 5 additions and 3 deletions.
  1. +3 −1 lib/base.js
  2. +2 −2 lib/tropo-webapi.js
View
4 lib/base.js
@@ -73,7 +73,7 @@ On = function(event, name, next, required, say) {
this.say = serializeProperty(say);
};
-Record = function(attempts, bargein, beep, choices, format, maxSilence, maxTime, method, minConfidence, name, required, say, timeout, transcription, url, password, username, voice) {
+Record = function(attempts, bargein, beep, choices, format, maxSilence, maxTime, method, minConfidence, name, required, say, timeout, transcription, url, password, username, voice, allowSignals, interdigitTimeout) {
this.attempts = attempts;
this.bargein = bargein;
this.beep = beep;
@@ -92,6 +92,8 @@ Record = function(attempts, bargein, beep, choices, format, maxSilence, maxTime,
this.password = password;
this.username = username;
this.voice = voice;
+ this.allowSignals = allowSignals;
+ this.interdigitTimeout = interdigitTimeout;
};
Redirect = function(to, name, required) {
View
4 lib/tropo-webapi.js
@@ -38,8 +38,8 @@ TropoWebAPI.prototype.on = function(event, name, next, required, say) {
this.tropo.push(serializeObject("on", on));
};
-TropoWebAPI.prototype.record = function(attempts, bargein, beep, choices, format, maxSilence, maxTime, method, minConfidence, name, required, say, timeout, transcription, url, password, username, voice) {
- var record = new base.Record(attempts, bargein, beep, choices, format, maxSilence, maxTime, method, minConfidence, name, required, say, timeout, transcription, url, password, username, voice);
+TropoWebAPI.prototype.record = function(attempts, bargein, beep, choices, format, maxSilence, maxTime, method, minConfidence, name, required, say, timeout, transcription, url, password, username, voice, allowSignals, interdigitTimeout) {
+ var record = new base.Record(attempts, bargein, beep, choices, format, maxSilence, maxTime, method, minConfidence, name, required, say, timeout, transcription, url, password, username, voice, allowSignals, interdigitTimeout);
this.tropo.push(serializeObject("record", record));
};
Please sign in to comment.
Something went wrong with that request. Please try again.