feat(signalwire): add add-voice-xml-node and respond-with-voice-xml actions

This commit is contained in:
Ali BARIN
2024-12-13 19:26:22 +00:00
parent 0056940fa2
commit 661a5b24b2
9 changed files with 295 additions and 8 deletions

View File

@@ -82,7 +82,11 @@ export default async (flowId, request, response) => {
break;
}
if (actionStep.key === 'respondWith' && !response.headersSent) {
if (
(actionStep.key === 'respondWith' ||
actionStep.key === 'respondWithVoiceXml') &&
!response.headersSent
) {
const { headers, statusCode, body } = actionExecutionStep.dataOut;
// we set the custom response headers