Open verbavolant opened 4 years ago
There is lack of documentation in this repository, this has only been a POC so far. What you need to do is the following:
Set config in public/config/config.js
uri
, password
and wsServers
is the login of the SIP account you have set up on the Asterisk servermultipartyHostName
and multipartyPort
is the address and port to the multiparty-meeting server you want to call in to using SIPConfigure Asterisk to accept calls from wherever you want to be able to receive calls from. Insert the header X-Room
and pass the call to the account you have configured in the previous step.
Start a browser and go to the site where you have hosted this repository.
The browser will then register to the Asterisk and wait for calls to come in. Based on the X-Room
header it will then join the corresponding multiparty-meeting room and work as a bridge between SIP and multiparty-meeting, mixing audio and video. You will probably want to automate this browser, and run it headless, but this is not something that has been done yet.
edmeet-sip
change your config first as per above comment.
Set config in public/config/config.js
uri
, password
and wsServers
is the login of the SIP account you have set up on the Asterisk servermultipartyHostName
and multipartyPort
is the address and port to the multiparty-meeting server you want to call in to using SIPit will run on the port.
For Test: You can run this on client side on browser.
Now when ever you want to join the meeting.
For server side deploy. You can use bellow sample code.
const express = require('express');
const puppeteer = require('puppeteer');
const app = express();
async function ssr(url) {
const browser = await puppeteer.launch({headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox',
"--enable-extensions", "--enable-usermedia-screen-capturing",
"--enable-experimental-extension-apis", "--enable-experimental-web-platform-features"]});
const page = await browser.newPage();
await page.goto(url, {waitUntil: 'networkidle0'});
const html = await page.content(); // serialized HTML of page DOM.
page.on('console', async msg => console[msg._type](
...await Promise.all(msg.args().map(arg => arg.jsonValue()))
}
setTimeout(async () => {
await ssr("YOUR_IP:PORT")
}, 1 * 1000);
app.listen(8984, () => console.log('Server started. Press Ctrl+C to quit'));
How can multiple SIP endpoints/clients can connect here with edumeet.
Hi!
Sorry but i can't understand what exactly mm-sip does!