This commit is contained in:
Christopher Cookman 2025-12-20 14:19:20 -07:00
parent 84561d469d
commit 3cd696d431

View file

@ -50,7 +50,12 @@ function trigCall(pageType, phone) {
if (!targetNumber) {
throw new Error(`Phone number is required for page type: ${pageType}`);
}
return originateCall(targetNumber, context, 0, timeout, cid);
originateCall(targetNumber, context, 0, timeout, cid).then((output) => {
console.log(`Call originated: ${output}`);
}).catch((error) => {
console.error(`Error originating call: ${error}`);
});
return true;
}
function originateCall(number, context, delay, timeout, cid, variables = {}) {