Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #31 from kevinbond/master

Added machineDetection to transfer
  • Loading branch information...
commit 9951d799ef39587e98c0e9be3ef8913a0775174d 2 parents 4a75137 + 3039874
@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.