@tiledesk/tiledesk-voice-twilio-connector 0.1.23 → 0.1.24
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/index.js +3 -4
- package/logs/app.log +2950 -0
- package/package.json +3 -2
package/index.js
CHANGED
|
@@ -328,12 +328,12 @@ router.post('/nextblock/:callSid/', async(req, res) => {
|
|
|
328
328
|
// convert response to vxml
|
|
329
329
|
let messageToVXML = await tdTranslator.toVXML(message, callSid, vxmlAttributes, sessionInfo)
|
|
330
330
|
winston.debug("(voice) VXML to SEND: "+ messageToVXML);
|
|
331
|
-
|
|
331
|
+
|
|
332
332
|
let end_call = new Date()
|
|
333
333
|
console.log('Time to responde to /nextblock/:callSid : ', end_call-start_call, '[ms]')
|
|
334
334
|
|
|
335
335
|
// Render the response as XML in reply to the webhook request
|
|
336
|
-
res.set('Content-Type', '
|
|
336
|
+
res.set('Content-Type', 'application/xml;');
|
|
337
337
|
res.status(200).send(messageToVXML);
|
|
338
338
|
|
|
339
339
|
})
|
|
@@ -1297,10 +1297,9 @@ async function startApp(settings, callback) {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
1299
|
if(settings.MAX_POLLING_TIME){
|
|
1300
|
-
MAX_POLLING_TIME = settings.MAX_POLLING_TIME;
|
|
1300
|
+
MAX_POLLING_TIME = settings.MAX_POLLING_TIME/10000; //convert in seconds
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
1303
|
-
|
|
1304
1303
|
if (settings.REDIS_HOST && settings.REDIS_PORT) {
|
|
1305
1304
|
REDIS_HOST = settings.REDIS_HOST;
|
|
1306
1305
|
REDIS_PORT = settings.REDIS_PORT;
|