原厂:
    http://www.creytiv.com/baresip.html

    源码:
    https://github.com/alfredh/baresip

    centos7 安装:
    yum install http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm -y
    yum install baresip -y

    ubuntu编译安装:
    sudo apt install -y libssl-dev
    git clone https://github.com/creytiv/re
    cd re

    1. sudo apt-get install gcc make libssl-dev
    2. make
    3. sudo make install
    4. sudo ldconfig

    git clone https://github.com/creytiv/rem
    cd rem
    make
    sudo make install
    sudo ldconfig
    git clone https://github.com/alfredh/baresip
    cd baresip
    make
    sudo make install

    常用命令:
    baresip -v
    baresip -h
    baresip
    —- Help —-
    ESC Hangup call
    /about About box
    /accept a Accept incoming call
    /auloop Start audio-loop
    /auloop_stop Stop audio-loop
    /auplay .. Switch audio player
    /ausrc .. Switch audio source
    /callstat c Call status
    /chatpeer .. = .. Select chat peer
    /config Print configuration
    /contacts C List contacts
    /dial .. d .. Dial
    /dialcontact .. | .. Dial from contacts
    /hangup b Hangup call
    /help h Help menu
    /insmod .. Load module
    /listcalls l List active calls
    /main Main loop debug
    /memstat y Memory status
    /message .. - .. Send MESSAGE to peer
    /modules Module debug
    /netstat n Network debug
    /options .. o .. Options
    /play .. Play audio file
    /quit q Quit
    /reginfo r Registration info
    /rmmod .. Unload module
    /sipstat i SIP debug
    /sysinfo s System info
    /timers Timer debug
    /uanew .. Create User-Agent
    /uanext T Toggle UAs
    /uastat u UA debug
    /vidloop .. Start video-loop
    /vidloop_stop Stop video-loop