Permalink
Browse files

say in a message is its own dictionary

  • Loading branch information...
1 parent 0b5b21e commit c1c6e82e70b56c1093371c1c8004e21447b776e6 @jpjpjp jpjpjp committed with michaelzpb Mar 29, 2017
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/base.js
View
@@ -72,7 +72,7 @@ MachineDetection = function(introduction, voice){
};
Message = function(say, to, answerOnMedia, channel, from, name, network, required, timeout, voice) {
- this.say = say;
+ this.say = new Say(say);
this.to = to;
this.answerOnMedia = answerOnMedia;
this.channel = channel;
@@ -139,7 +139,7 @@ Result = function(json) {
this.userType = result.result.userType;
this.calledID = result.result.calledID;
this.connectedDuration = result.result.connectedDuration;
- this.actions = result.result.actions;
+ this.actions = result.result.actions;
this.name = result.result.actions.name;
this.attempts = result.result.actions.attempts;
this.disposition = result.result.actions.disposition;
@@ -149,7 +149,7 @@ Result = function(json) {
this.value = result.result.actions.value;
this.concept = result.result.actions.concept;
this.xml = result.result.actions.xml;
-
+
return this;
};
@@ -218,7 +218,7 @@ Transfer = function(to, answerOnMedia, choices, from, headers, name, on, require
this.on += comma + on[i];
comma = ",";
}
-
+
}else{
this.on = (typeof(on) == 'Object') ? serializeProperty(on) : on;
}

0 comments on commit c1c6e82

Please sign in to comment.