Yate server > Yate IVR

Nodejs library compatible to javascript.yate

<< < (2/3) > >>

Anton:
Hello Community.

I decided to split the project into two:
The first will be core (stable) https://github.com/0LEG0/next-yate
and the second compatible with javascript.yate (experimental) https://github.com/0LEG0/next-yate-compat
In the next "Next-Yate" update, the compatibility abstraction will be removed. If someone needs javasctipt.yate compatibility please go to "Next-Yate-Compat" https://github.com/0LEG0/next-yate-compat.

Best regards,
Anton

Anton:
Here is next release:
- Message filter are moved to the application side.
- Method Yate.watch provided with filter like Yate.install.
- The Channel object is now available in global script mode too (+YateChannel class).
- And bug fixes of course...
https://github.com/0LEG0/next-yate

Best regards,
Anton

cc08:
I try to play with your module, but this string from  example_core_api.js :


--- Code: ---yate.init(() => console.log("Connected"));
--- End code ---

causes an error in yate console :


--- Code: ---<ExtModReceiver:WARN> Error: 'Connected'
--- End code ---

this is normal ?

Anton:

--- Quote from: cc08 on April 16, 2020, 08:17:50 AM ---I try to play with your module, but this string from  example_core_api.js :


--- Code: ---yate.init(() => console.log("Connected"));
--- End code ---

causes an error in yate console :


--- Code: ---<ExtModReceiver:WARN> Error: 'Connected'
--- End code ---

this is normal ?

--- End quote ---

Something seems to be wrong.
Are you using the latest version from Git?
Outdated examples with own bugs have been removed. :) So, please, show the beginning of this code, if it’s not difficult for you.

Best regards.
Anton

cc08:
Yes, today was a free day, I decided to try it.
Today's git too.
I took an example from the first page of your git, slightly modifying it.


--- Code: ---// Core API
const { Yate, YateMessage } = require("next-yate");
let yate = new Yate({ host: "127.0.0.1", port:6030 });

yate.init(() => {console.log("Connected")}); // Initialize connection before use
yate.output("Hello World!");

--- End code ---


A little cleared up, this error appears when the script is launched by the extmodule from yate.

If the launch is manual, then everything is clean in yate.

Second question :)
When playing several wav files between them I listen to clicks.
How can you deal with this?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version