Skip to content

Commit

Permalink
Fix the issue for outbound calls that always the None credentials wer… (
Browse files Browse the repository at this point in the history
#984)

* Fix the issue for outbound calls that always the None credentials were used. session:new for rest dial did not contain recognizer.label and synthesizer.label

* update comment

---------

Co-authored-by: mfrindt <m.frindt@cognigy.com>
  • Loading branch information
Catharsis68 and mfrindt authored Nov 26, 2024
1 parent c874ab8 commit 3a6d63a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions lib/http-routes/api/create-call.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions lib/tasks/rest_dial.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
};
Expand Down

0 comments on commit 3a6d63a

Please sign in to comment.