Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added machineDetection to transfer

  • Loading branch information...
commit 3039874e106aac75870307c3b9c53169d151b22f 1 parent e60e55c
@kevinbond kevinbond authored
Showing with 4 additions and 3 deletions.
  1. +2 −1  lib/base.js
  2. +2 −2 lib/tropo-webapi.js
View
3  lib/base.js
@@ -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
4 lib/tropo-webapi.js
@@ -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});
};
Please sign in to comment.
Something went wrong with that request. Please try again.