Permalink
Browse files

Added machineDetection to transfer

  • Loading branch information...
1 parent e60e55c commit 3039874e106aac75870307c3b9c53169d151b22f @kevinbond kevinbond committed Dec 2, 2013
Showing with 4 additions and 3 deletions.
  1. +2 −1 lib/base.js
  2. +2 −2 lib/tropo-webapi.js
View
@@ -194,7 +194,7 @@ StartRecording = function(format, method, url, username, password, transcription
StopRecording = function() {};
-Transfer = function(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout, allowSignals, interdigitTimeout, ringRepeat) {
+Transfer = function(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout, allowSignals, interdigitTimeout, ringRepeat, machineDetection) {
this.to = to;
this.answerOnMedia = answerOnMedia;
this.choices = serializeProperty(choices);
@@ -218,6 +218,7 @@ Transfer = function(to, answerOnMedia, choices, from, headers, name, on, require
this.allowSignals = allowSignals;
this.interdigitTimeout = interdigitTimeout;
this.ringRepeat = ringRepeat;
+ this.machineDetection = machineDetection;
};
Wait = function(milliseconds, allowSignals){
View
@@ -83,8 +83,8 @@ TropoWebAPI.prototype.stopRecording = function() {
this.tropo.push({"stopRecording": stopRecording});
};
-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);
+TropoWebAPI.prototype.transfer = function(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout, allowSignals, interdigitTimeout, ringRepeat, machineDetection) {
+ var transfer = new base.Transfer(to, answerOnMedia, choices, from, headers, name, on, required, terminator, timeout, allowSignals, interdigitTimeout, ringRepeat, machineDetection);
this.tropo.push({"transfer": transfer});
};

0 comments on commit 3039874

Please sign in to comment.