Skip to content

Commit

Permalink
Added allowSignals and interdigitTimeout to the record method
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Bond committed Nov 18, 2012
1 parent 826345c commit 71426e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions lib/tropo-webapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};

Expand Down

0 comments on commit 71426e5

Please sign in to comment.