How to cofing sip video gateway

Hello

Is there any details guideline for how to configure a sip video gateway

I only found this office guide doc: Configuring a video SIP gateway | Jitsi Meet

But I thought this document is too simple and maybe outdated

Are there any more documents?

You may check this installer

@emrah Thank you very much, I will try it

@emrah This script is amazing

But when I install just as the steps in the README, When I invite a sip from the meeting room, there is an error happened.

08:51:13.063            pjsua_aud.c  .Unable to open sound device: Unknown error from audio driver (PJMEDIA_EAUD_SYSERR) [status=420002]

I install it in an absolute newly Debian 11 Server

So, can you help me to figure out what’s the problem about the audio driver?

pjsua.log (12.3 KB)

Do you have snd_aloop module?

lsmod | grep aloop
snd_aloop              36864  6
snd_pcm               143360  12 snd_hda_intel,snd_hda_codec,soundwire_intel,snd_compress,snd_soc_core,snd_aloop,snd_hda_core
snd_timer              49152  4 snd_aloop,snd_pcm
snd                   110592  18 snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_compress,snd_soc_core,snd_aloop,snd_pcm

I execute this command as the result just like above

Seems like the audio device ids which are in /etc/jitsi/jibri/pjsua.config don’t match to your system. The installer assumes that there is no physical sound card on the system. Do you have one?

What is the output for

aplay -l

Yes, you are right indeed, there is a physical sound card on the system.

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: Generic Analog [Generic Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7 

So how should I change the pjsua.config?

If this is a virtual machine, you may try to remove the sound card.

According to your log, --playback-dev should be 26 in your system.

--capture-dev=11
--playback-dev=26

Thank you @emrah

Can you explain how these numbers get? 11 or 26, I can’t understand how it comes from

By counting Added sound... lines starting from 0

amix → 0
asnoop → 1

08:51:12.462         sip_endpoint.c  .Module "mod-100rel" registered
08:51:12.462         sip_endpoint.c  .Module "mod-pjsua" registered
08:51:12.462         sip_endpoint.c  .Module "mod-invite" registered
08:51:12.475             alsa_dev.c  ..Added sound device amix
08:51:12.475             alsa_dev.c  ..Added sound device asnoop
08:51:12.476             alsa_dev.c  ..Added sound device aduplex
08:51:12.476             alsa_dev.c  ..Added sound device bmix
08:51:12.476             alsa_dev.c  ..Added sound device bsnoop
08:51:12.477             alsa_dev.c  ..Added sound device bduplex
08:51:12.477             alsa_dev.c  ..Added sound device pjsua
08:51:12.478             alsa_dev.c  ..Added sound device default
08:51:12.498             alsa_dev.c  ..Added sound device hw:CARD=Intel,DEV=0
08:51:12.498             alsa_dev.c  ..Added sound device plughw:CARD=Intel,DEV=0
08:51:12.508             alsa_dev.c  ..Added sound device sysdefault:CARD=Intel
08:51:12.508             alsa_dev.c  ..Added sound device front:CARD=Intel,DEV=0
08:51:12.509             alsa_dev.c  ..Added sound device surround21:CARD=Intel,DEV=0
08:51:12.509             alsa_dev.c  ..Added sound device surround40:CARD=Intel,DEV=0
08:51:12.509             alsa_dev.c  ..Added sound device surround41:CARD=Intel,DEV=0
08:51:12.510             alsa_dev.c  ..Added sound device surround50:CARD=Intel,DEV=0
08:51:12.510             alsa_dev.c  ..Added sound device surround51:CARD=Intel,DEV=0
08:51:12.510             alsa_dev.c  ..Added sound device surround71:CARD=Intel,DEV=0
08:51:12.512             alsa_dev.c  ..Added sound device dmix:CARD=Intel,DEV=0
08:51:12.514             alsa_dev.c  ..Added sound device dsnoop:CARD=Intel,DEV=0
08:51:12.514             alsa_dev.c  ..Added sound device hw:CARD=Loopback,DEV=0
08:51:12.514             alsa_dev.c  ..Added sound device hw:CARD=Loopback,DEV=1
08:51:12.514             alsa_dev.c  ..Added sound device plughw:CARD=Loopback,DEV=0
08:51:12.514             alsa_dev.c  ..Added sound device plughw:CARD=Loopback,DEV=1
08:51:12.516             alsa_dev.c  ..Added sound device sysdefault:CARD=Loopback
08:51:12.516             alsa_dev.c  ..Added sound device front:CARD=Loopback,DEV=0
08:51:12.517             alsa_dev.c  ..Added sound device surround21:CARD=Loopback,DEV=0
08:51:12.518             alsa_dev.c  ..Added sound device surround40:CARD=Loopback,DEV=0
08:51:12.518             alsa_dev.c  ..Added sound device surround41:CARD=Loopback,DEV=0
08:51:12.519             alsa_dev.c  ..Added sound device surround50:CARD=Loopback,DEV=0
08:51:12.520             alsa_dev.c  ..Added sound device surround51:CARD=Loopback,DEV=0
08:51:12.520             alsa_dev.c  ..Added sound device surround71:CARD=Loopback,DEV=0
08:51:12.520             alsa_dev.c  ..ALSA driver found 32 devices
08:51:12.520             alsa_dev.c  ..ALSA initialized

Thank you very much, I will try to receive all this useful information and go on try the sip video gateway

@emrah

Hi, emrah, I don’t understand this point. Can you explain it to me, please?

If I only have one virtual server, the jitsi.yourdomain.com and turn.yourdomain.com can set to the public ip of this server?

Let’s say the server IP address is 1.2.3.4. In this case you should have 2 FQDNs

  • jitsi.yourdomain.com points to 1.2.3.4
  • turn.yourdomain.com points to 1.2.3.4

@emrah OK, Thank you, I get it