Hello,
I am trying to play file to conference when user joined but no success...
I do not know how to create utility leg and play file to it (I am getting usually "Conference call with no call endpoint"...)
Thanks in advance for any help.
/*
* conf.js
*/
function onMessage(msg)
{
if (msg.event == "joined")
{
playFile(msg, "/usr/local/yate/sounds/conference/8000/conf-alone.alaw");
}
}
function playFile(msg, file)
{
// how to play
...
}
Message.install(onMessage, "chan.notify", 50);