Permalink
Browse files

Merge pull request #31 from kevinbond/master

Added machineDetection to transfer
  • Loading branch information...
kevinbond committed Dec 2, 2013
2 parents 4a75137 + 3039874 commit 9951d799ef39587e98c0e9be3ef8913a0775174d
Showing with 4 additions and 3 deletions.
  1. +2 −1 lib/base.js
  2. +2 −2 lib/tropo-webapi.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){
@@ -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 9951d79

Please sign in to comment.