janus配置說明

前提
git clone https://github.com/meetecho/janus-gateway.git
sh autogen.sh
./configure --prefix=/opt/janus --enable-websockets --enable-docs
make
sudo make install
make configs//將所有的樣例配置模板安裝到/opt/janus/etc/janus文件夾下


janus.cfg  janus 的全局配置文件,但不包括其他插件的配置文件

例如 janus跟Android APP Demo通信,需要使用WeSocket插件,所以需要安裝libwebsocket插件,然後進行相關的配置

janus 默認的配置中是沒有 WebSocket 的配置的,直接啓動 Janus 會因沒有 WebSocket 配置文件而報錯。幸運的是在配置目錄中 Janus 已經給我們提供了一個 WebSocket 的示例配置文件 : janus.transport.websockets.cfg.sample,(如果我們要通過 WebSocket 連接 Janus,則需要有個 WebSocket 的配置文件)這裏我們可以直接拷貝這個示例文件:

cp janus.transport.websockets.cfg.sample janus.transport.websockets.cfg



./configure --prefix=/opt/janus --enable-websockets

配置完成之後,打印信息

Compiler:                  gcc
libsrtp version:           2.x
SSL/crypto library:        OpenSSL
DTLS set-timeout:          not available
Mutex implementation:      GMutex (native futex on Linux)
DataChannels support:      no
Recordings post-processor: no
TURN REST API client:      yes
Doxygen documentation:     no
Transports:
    REST (HTTP/HTTPS):     yes
    WebSockets:            yes
    RabbitMQ:              no
    MQTT:                  no
    Unix Sockets:          yes
    Nanomsg:               no
Plugins:
    Echo Test:             yes
    Streaming:             yes
    Video Call:            yes
    SIP Gateway (Sofia):   yes
    SIP Gateway (libre):   no
    NoSIP (RTP Bridge):    yes
    Audio Bridge:          yes
    Video Room:            yes
    Voice Mail:            yes
    Record&Play:           yes
    Text Room:             yes
    Lua Interpreter:       no
    Duktape Interpreter:   no
Event handlers:
    Sample event handler:  yes
    WebSocket ev. handler: yes
    RabbitMQ event handler:no
    MQTT event handler:    no
    Nanomsg event handler: no
External loggers:
    JSON file logger:      no
JavaScript modules:        no

If this configuration is ok for you, do a 'make' to start building Janus. A 'make install' will install Janus and its plugins to the specified prefix. Finally, a 'make configs' will install some sample configuration files too (something you'll only want to do the first time, though).


注意--enable-docs加載不成功,因此去掉該配置項

checking for doxygen... doxygen
checking for dot... no
configure: error: doxygen or dot not found. See README.md for installation instructions or remove --enable-docs




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章