adfinis / jibri-pjsua

Extension for Jitsi that allows Jibri to be configured as a SIP gateway so that multiple SIP devices can connect with audio and video
GNU Affero General Public License v3.0
4 stars 1 forks source link

Asking some more information about jibri-pjsua. #2

Open noskiddie opened 1 year ago

noskiddie commented 1 year ago

Hi everyone. I search some information about integration Jitsi video calls by SIP gateway ( for example from Asterisk ). Audio working perfectly, but can't find good tutorials for video calls by SIP. I've find this repository and think that's it's nice try ask you.

DoganbrosAdmin commented 1 year ago

Hello.

Jigasi will handle audio-only. For video, you will need PJSUA and Jibri together. I'm assuming you know this, since you've found us.

It has been a while, so I cannot make promises on the accuracy of the information, but it seems to me like you have to create an additional display for PJSUA.

First, install the dependencies;

apt-get install v4l2loopback-dkms v4l2loopback-utils -y

If the installation fails, first grab the headers for your linux kernel and try again;

sudo apt install linux-headers-$(uname -r)

Configure the v4l2loopback module by editing /etc/modprobe.d/v4l2loopback.conf to look like this;

Note: You may pass only one option per line.

options v4l2loopback devices=2
options v4l2loopback video_nr=0,1
options v4l2loopback exclusive_caps=1,1
options v4l2loopback card_label="PJSUA,Chrome"

Load the module. modprobe v4l2loopback

Confirm it is working. v4l2-ctl --list-devices

Result should be like this;

PJSUA (platform:v4l2loopback-000):
        /dev/video0

Chrome (platform:v4l2loopback-001):
        /dev/video1

Afterwards, you can use the services in this repo to start icewm and xorg as services for PJSUA.

You may look through this post for additional help; https://community.jitsi.org/t/issue-jibri-sip-gateway-setup/111743