diff --git a/lib/http-routes/api/create-call.js b/lib/http-routes/api/create-call.js index b16e4f22..a9352c92 100644 --- a/lib/http-routes/api/create-call.js +++ b/lib/http-routes/api/create-call.js @@ -208,10 +208,13 @@ router.post('/', /** * create our application object - - * not from the database as per an inbound call, - * but from the provided params in the request + * we merge the inbound call application, + * with the provided app params from the request body */ - const app = req.body; + const app = { + ...application, + ...req.body + }; /** * attach our requestor and notifier objects diff --git a/lib/tasks/rest_dial.js b/lib/tasks/rest_dial.js index ee347078..fc76ecea 100644 --- a/lib/tasks/rest_dial.js +++ b/lib/tasks/rest_dial.js @@ -77,11 +77,13 @@ class TaskRestDial extends Task { synthesizer: { vendor: cs.speechSynthesisVendor, language: cs.speechSynthesisLanguage, - voice: cs.speechSynthesisVoice + voice: cs.speechSynthesisVoice, + label: cs.speechSynthesisLabel, }, recognizer: { vendor: cs.speechRecognizerVendor, - language: cs.speechRecognizerLanguage + language: cs.speechRecognizerLanguage, + label: cs.speechRecognizerLabel, } } };