Hi,
I am trying to use talk_detect using ARI NodeJS.
If someone already use it, can you help me to set and usse it please?:
channel.on('StasisStart', (event, chan) => {
chan.setChannelVar({
channel: chan.id,
variable: 'TALK_DETECT',
value: 'on'
})
.then(() => console.log('Talk detection activated on channel %s', chan.id))
.catch(err => console.error('Error activating talk detection:', err));
});
....
this.ari.on('ChannelTalkingStart', (event, channel) => {
console.log('Channel is talking');
});
if I use variable: ‘TALK_DETECT’, or ‘FiremanSam’ I receive console.log(‘Talk detection activated on channel %s’, chan.id) and I have nothing about the talk detection on the asterisk log and of course nothing with NodeJS.
In addition,
this.ari.on('ChannelStateChange', (event, channel) => {
console.log(event);
});
shows the status.
Thanks a lot!