1
Other Yate server issues / Re: how to play wave file to conference using javascript module
« on: August 25, 2014, 01:25:31 PM »
Thanks for reply
/*
* conf.js
*/
function onMessage(msg)
{
if (msg.event == "joined")
{
Engine.output("=====================================================================" + msg.id);
playFile2(msg, "conf-alone.alaw");
}
}
//
// <WARN> Wave override 'conf-alone.alaw' attach request with no data channel!
//
function playFile1(msg, file)
{
var m = new Message("chan.attach");
m.room = "conf/" + msg.room;
m.override = "wave/play/" + file;
m.single = true;
m.dispatch();
}
//
// No error messages
//
function playFile2(msg, file)
{
var m = new Message("chan.masquerade");
m.message = "chan.attach";
m.room = "conf/" + msg.room;
m.override = "wave/play/" + file;
m.single = true;
m.id = msg.id;
m.dispatch();
}
Message.install(onMessage, "chan.notify", 50);
Javascript works as i see debug output. When i am trying "chan.attach" i am getting "<WARN> Wave override 'conf-alone.alaw' attach request with no data channel!"
when "chan.masquerade" - nothing happend.
/*
* conf.js
*/
function onMessage(msg)
{
if (msg.event == "joined")
{
Engine.output("=====================================================================" + msg.id);
playFile2(msg, "conf-alone.alaw");
}
}
//
// <WARN> Wave override 'conf-alone.alaw' attach request with no data channel!
//
function playFile1(msg, file)
{
var m = new Message("chan.attach");
m.room = "conf/" + msg.room;
m.override = "wave/play/" + file;
m.single = true;
m.dispatch();
}
//
// No error messages
//
function playFile2(msg, file)
{
var m = new Message("chan.masquerade");
m.message = "chan.attach";
m.room = "conf/" + msg.room;
m.override = "wave/play/" + file;
m.single = true;
m.id = msg.id;
m.dispatch();
}
Message.install(onMessage, "chan.notify", 50);
Javascript works as i see debug output. When i am trying "chan.attach" i am getting "<WARN> Wave override 'conf-alone.alaw' attach request with no data channel!"
when "chan.masquerade" - nothing happend.