Permalink
Browse files

Added allowSignals, interdigitTimeout and ringRepeat to the transfer …

…method
  • Loading branch information...
1 parent 967126d commit c892faf826a9191bdedf0209648edef3169915b7 Kevin Bond committed Nov 18, 2012
Showing with 6 additions and 3 deletions.
  1. +4 −1 lib/base.js
  2. +2 −2 lib/tropo-webapi.js
View
@@ -163,7 +163,7 @@ StartRecording = function(format, method, url, username, password, transcription
StopRecording = function() {};
-Transfer = function(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout) {
+Transfer = function(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout, allowSignals, interdigitTimeout, ringRepeat) {
this.to = to;
this.answerOnMedia = answerOnMedia;
this.choices = serializeProperty(choices);
@@ -174,6 +174,9 @@ Transfer = function(to, answerOnMedia, choices, from, headers, name, on, require
this.required = required;
this.terminator = terminator;
this.timeout = timeout;
+ this.allowSignals = allowSignals;
+ this.interdigitTimeout = interdigitTimeout;
+ this.ringRepeat = ringRepeat;
};
// Helper method that serializes properties of Tropo action objects..
View
@@ -68,8 +68,8 @@ TropoWebAPI.prototype.stopRecording = function() {
this.tropo.push(serializeObject("stopRecording", stopRecording));
};
-TropoWebAPI.prototype.transfer = function(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout) {
- var transfer = new base.Transfer(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout);
+TropoWebAPI.prototype.transfer = function(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout, allowSignals, interdigitTimeout, ringRepeat) {
+ var transfer = new base.Transfer(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout, allowSignals, interdigitTimeout, ringRepeat);
this.tropo.push(serializeObject("transfer", transfer));
};

0 comments on commit c892faf

Please sign in to comment.