start and stopRecording caps issue #3

Merged
merged 3 commits into from Apr 28, 2011
Jump to file or symbol
Failed to load files and symbols.
+5 −4
Split
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));
};