Permalink
Browse files

Merged pull request #3 from JustinDupree/master.

start and stopRecording caps issue + ring event inclusion for transfer
  • Loading branch information...
JustinDupree
JustinDupree committed Apr 28, 2011
2 parents 1818cc7 + cf966ea commit 27e5a52aad92947e18750be04a068a1c7fba9522
Showing with 5 additions and 4 deletions.
  1. BIN .DS_Store
  2. BIN lib/.DS_Store
  3. +3 −2 lib/base.js
  4. +2 −2 lib/tropo-webapi.js
View
BIN .DS_Store
Binary file not shown.
View
Binary file not shown.
View
@@ -150,14 +150,15 @@ startRecording = function(format, method, url, username, password) {
stopRecording = function() {};
-Transfer = function(to, answerOnMedia, choices, from, name, required, terminator, timeout) {
+Transfer = function(to, answerOnMedia, choices, from, name, on, required, timeout) {
this.to = to;
this.answerOnMedia = answerOnMedia;
this.choices = serializeProperty(choices);
this.from = from;
this.name = name;
+ this.on = (typeof(on) == 'Object') ? serializeProperty(on) : on;
this.required = required;
- this.terminator = terminator;
+// this.terminator = terminator;
this.timeout = timeout;
};
View
@@ -59,12 +59,12 @@ TropoWebAPI.prototype.say = function(value, as, name, required, voice) {
};
TropoWebAPI.prototype.startRecording = function(format, method, url, username, password) {
- var startRecording = new base.StartRecording(format, method, url, username, password);
+ var startRecording = new base.startRecording(format, method, url, username, password);
this.tropo.push(serializeObject("startRecording", startRecording));
};
TropoWebAPI.prototype.stopRecording = function() {
- var stopRecording = new base.StopRecording();
+ var stopRecording = new base.stopRecording();
this.tropo.push(serializeObject("stopRecording", stopRecording));
};

0 comments on commit 27e5a52

Please sign in to comment.