in NODE - RED make a release call of the active call
hello
In Node-red
in a first UIButton I made a makecall and it's Ok
and I made this script in another UIbutton of the dashboard
I include this script in the node Rainbow Function, but he don't work
// ####### start of Script #####
// get data object of the active call
let appel = node.sdk.telephony.getActiveCalls();
// get the Id of the call
var appelid = appel[0].id;
// command of Release
node.sdk.telephony.releaseCall(appelid);
// View of Datas objects to verify that the call Id is present
msg.payload =appel;
return msg;
// ##### end of script ####
Could you help me please
Phil
-
Hello,
I do not understand what does not work (the release, or the result in the payload), but i had developped nodes for Telephony for the node red contrib a few years ago.
You can find it there :
https://github.com/Rainbow-CPaaS/node-red-contrib-ale-rainbow/tree/Telephony
You should have a look on it, and find the way i used it.
Sources are in the folder ale-rainbow .
Note that there is an exemple.
Vincent.
-
Hello Vincent
bon ben
I don't understand why my script don't work :-(
I'm in the last release of SDK Rainbow (June of 2022)
I'm in the release 2.2.2 of node.red
and the contrib ALE Rainbow is in the last version too
but no action le call is not released :-(
NOTA : I forgot to tell you, I use the node Rainbow Function of the Node-red Contrib
In my var appelid I have the Call.id
20535
in my var appel I have the Data object of the activeCall
array[1]
0: objectstatus: objectid: "20535"conversationId: nullconnectionId: "20535#2413"type: objectisVm: falsecontact: objectremoteMedia: 0localMedia: 0isEscalated: falsestartDate: nullisInitiator: falseparticipants: nullisRemoteVideoMuted: falseisConference: falseavatars: array[0]currentCalled: objectdeviceType: "SECONDARY"deviceState: "LCI_CONNECTED"cause: "NETWORKSIGNAL"jid: ""phoneNumber: "000671587710"globalCallId: "a9e5b66237500100"correlatorData: undefinedvm: falsereally I'm lost
Phil
Por favor, entrar para comentar.
Comentários
3 comentários