참고 사이트
https://butteryoon.github.io/dev/2021/04/03/janus_webrtc_install.html
https://ourcodeworld.com/articles/read/1197/how-to-install-janus-gateway-in-ubuntu-server-18-04
https://janus.conf.meetecho.com/docs/videoroom.html
https://github.com/meetecho/janus-gateway
설치법
apt-get -y install libmicrohttpd-dev libjansson-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libcurl4-openssl-dev liblua5.3-dev libconfig-dev pkg-config gengetopt libtool automake meson
pip3 install --user meson
wget https://github.com/cisco/libsrtp/archive/v2.2.0.tar.gz
tar xfv v2.2.0.tar.gz
cd libsrtp-2.2.0
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install
git clone https://gitlab.freedesktop.org/libnice/libnice
cd libnice
meson --prefix=/usr build && ninja -C build && sudo ninja -C build install
git clone https://github.com/sctplab/usrsctp
cd usrsctp
./bootstrap
./configure --prefix=/usr && make && sudo make install
git clone https://libwebsockets.org/repo/libwebsockets
cd libwebsockets/
mkdir build
cd build
cmake -DLWS_MAX_SMP=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..
make && sudo make install
git clone https://github.com/eclipse/paho.mqtt.c.git
cd paho.mqtt.c
sudo prefix=/usr make install
git clone https://github.com/alanxz/rabbitmq-c
cd rabbitmq-c
git submodule init
git submodule update
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make && sudo make install
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway/
sh autogen.sh
sudo ./configure --prefix=/opt/janus
sudo make
sudo make install
sudo make configs
sudo ufw allow 5000:65535/udp
sudo ufw allow 8188/tcp
sudo ufw allow 8089/tcp
sudo ufw allow 7889/tcp
sudo ufw allow 7089/tcp
수정파일
/opt/janus/etc/janus/janus.jcfg
187 cert_pem = "/home/.../ssl/private.pem"
189 cert_pwd = ..."
274 stun_server = "stun.l.google.com"
275 stun_port = 19302
276 nice_debug = false
/opt/janus/etc/janus/janus.transport.http.jcfg
18 https = true
19 secure_port = 8089
44 admin_https = true
45 admin_secure_port = 7889
70 cert_pem = "/home/.../ssl/public.pem"
71 cert_key = "/home/.../ssl/private.pem"
72 cert_pwd = "..."
실행
/opt/janus/bin/janus -F /opt/janus/etc/janus (-b 백그라운드 실행)
실행 시 undefined symbol: srtp_crypto_policy_set_aes_gcm_256_16_auth 에러 발생하면
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib
https://link.coupang.com/a/NewYz
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.