How does EAGI work?

Hi everyone!

I tried to use speech recognition NodeJS script for my calls with EAGI application.
I start it like this:

exten => s,1,EAGI(my_super_script.js,${some_VAR})
exten => s,n,Goto(${result},1)

And it starts well.
In script.js I get an audio stream from fd 3, and it works well too:

const audio = fs.createReadStream( null, { 'fd' : 3 } );

BUT! If I do something from EAGI script.js like:

console.log('NoOp "ASTERISK IS THE BEST!"');
console.log('SET VARIABLE test 123123123');

I’ll lose my audio stream from asterisk unfortunately. So the question is:
Is it normal that audio stream from fd3 will stop if we execute some application from EAGI script? Or my script is doing something wrong???

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.