@tiledesk/tiledesk-voice-twilio-connector 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -239,7 +239,7 @@ class TiledeskTwilioTranslator {
|
|
|
239
239
|
|
|
240
240
|
async delayVXMLConverter(rootEle, message, xmlAttributes){
|
|
241
241
|
const command = message.attributes.commands[0]
|
|
242
|
-
rootEle.ele("Redirect", {
|
|
242
|
+
rootEle.ele("Redirect", {method: "POST"}, this.BASE_URL + '/nextblock/' + xmlAttributes.callSid).up()
|
|
243
243
|
|
|
244
244
|
return rootEle.end({ pretty: true });
|
|
245
245
|
}
|
|
@@ -250,7 +250,7 @@ class TiledeskTwilioTranslator {
|
|
|
250
250
|
const prompt = this.promptVXML(rootEle, message, xmlAttributes);
|
|
251
251
|
|
|
252
252
|
const queryUrl = '?intentName='+ querystring.encode(xmlAttributes.intentName) + '&previousIntentTimestamp='+Date.now();
|
|
253
|
-
rootEle.ele("Redirect", {
|
|
253
|
+
rootEle.ele("Redirect", {method: "POST"}, this.BASE_URL + '/nextblock/' + xmlAttributes.callSid + queryUrl).up()
|
|
254
254
|
//prompt.ele("submit", { fetchhint: "safe", expr: "proxyBaseUrl +'/nextblock/' + session.connection.calltoken", method: "post", namelist: "usertext session intentName previousIntentTimestamp" });
|
|
255
255
|
|
|
256
256
|
return rootEle.end({ pretty: true });
|