Skip to content
Browse files

Added allowSignals and interdigitTimeout to the conference method

  • Loading branch information...
1 parent 35f2486 commit 826345c23bbebdddad22bb4562cd6cc79cd6cce6 Kevin Bond committed Nov 18, 2012
Showing with 7 additions and 4 deletions.
  1. +5 −2 lib/base.js
  2. +2 −2 lib/tropo-webapi.js
View
7 lib/base.js
@@ -19,7 +19,7 @@ Ask = function(choices, attempts, bargein, minConfidence, name, recognizer, requ
this.speechIncompleteTimeout = speechIncompleteTimeout;
};
-Call = function(to, answerOnMedia, channel, from, headers, name, network, recording, required, timeout) {
+Call = function(to, answerOnMedia, channel, from, headers, name, network, recording, required, timeout, allowSignals) {
this.to = to;
this.answerOnMedia = answerOnMedia;
this.channel = channel;
@@ -30,6 +30,7 @@ Call = function(to, answerOnMedia, channel, from, headers, name, network, record
this.recording = (typeof(recording) == 'Object') ? serializeProperty(recording) : recording;
this.required = required;
this.timeout = timeout;
+ this.allowSignals = allowSignals;
};
Choices = function(value, mode, terminator) {
@@ -38,13 +39,15 @@ Choices = function(value, mode, terminator) {
this.terminator = terminator;
};
-Conference = function(id, mute, name, playTones, required, terminator) {
+Conference = function(id, mute, name, playTones, required, terminator, allowSignals, interdigitTimeout) {
this.id = id;
this.mute = mute;
this.name = name;
this.playTones = playTones;
this.required = required;
this.terminator = terminator;
+ this.allowSignals = allowSignals;
+ this.interdigitTimeout = interdigitTimeout;
};
Hangup = function() {};
View
4 lib/tropo-webapi.js
@@ -18,8 +18,8 @@ TropoWebAPI.prototype.call = function(to, answerOnMedia, channel, from, headers,
this.tropo.push(serializeObject("call", call));
};
-TropoWebAPI.prototype.conference = function(id, mute, name, playTones, required, terminator) {
- var conference = new base.Conference(id, mute, name, playTones, required, terminator);
+TropoWebAPI.prototype.conference = function(id, mute, name, playTones, required, terminator, allowSignals, interdigitTimeout) {
+ var conference = new base.Conference(id, mute, name, playTones, required, terminator, allowSignals, interdigitTimeout);
this.tropo.push(serializeObject("conference", conference));
};

0 comments on commit 826345c

Please sign in to comment.
Something went wrong with that request. Please try again.