Hello,
we have developed some freshworks apps already.
However we tried to test the onCallCreate and the onCallUpdate Event which are described in the docs.
We also created the sample app freshcaller serverless app which also uses the event.
Our Problem: Both events (onCallCreate and the onCallUpdate) are not fired when we call a number. Can someone confirm he developed a freshcaller app with this events or have an idea whats wrong?
manifest.json
{
"platform-version": "2.2",
"product": {
"freshcaller": {
"events": {
"onCallCreate": {
"handler": "onCallCreateHandler"
}
}
}
},
"whitelisted-domains": [],
"engines": {
"node": "14.19.3",
"fdk": "8.6.7"
}
}
and the server.js
exports = {
/**
* This method handles the event that gets triggered when a call begins.
*
* @param {Object} payload
*/
onCallCreateHandler: function (payload) {
console.log("Logging arguments from onCallCreateHandler event: " );
console.log(payload);
}
}