edumeet / edumeet-sip

5 stars 6 forks source link

little howto? #1

Open verbavolant opened 4 years ago

verbavolant commented 4 years ago

Hi!

Sorry but i can't understand what exactly mm-sip does!

havfo commented 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:

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.

rtcexpert commented 4 years ago
Screenshot 2020-07-02 at 7 01 31 PM
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'));
Alex-YddeR commented 1 year ago

How can multiple SIP endpoints/clients can connect here with edumeet.