安装

安装前要先安装依赖

git clone https://github.com/baresip/baresip
cd baresip
make
sudo make install

指令

/about About box/accept Accept incoming call/answermode Set answer mode/apistate User Agent state/auloop Start audio-loop /auloop_stop Stop audio-loop/auplay Switch audio player/ausrc Switch audio source/callstat Call status/conf_reload Reload config file/config Print configuration/contact_next Set next contact/contact_prev Set previous contact/contacts List contacts/dial .. Dial/dialcontact Dial current contact/hangup Hangup call/help Help menu/insmod Load module/listcalls List active calls/loglevel Log level toggle/main Main loop debug/memstat Memory status/message Message current contact/modules Module debug/netstat Network debug/options Options/play Play audio file/quit Quit/reginfo Registration info/rmmod Unload module/sipstat SIP debug/sysinfo System info/timers Timer debug/uadel Delete User-Agent/uafind Find User-Agent /uanew Create User-Agent/uanext Toggle UAs/uastat UA debug/uuid Print UUID/vidloop Start video-loop /vidloop stop Stop video-loop/vidsrc Switch video source

模块

aac Advanced Audio Coding (AAC) audio codecaccount Account loaderalsa ALSA audio driveramr Adaptive Multi-Rate (AMR) audio codecaptx Audio Processing Technology codec (aptX)aubridge Audio bridge moduleaudiounit AudioUnit audio driver for MacOSX/iOSaufile Audio module for using a WAV-file as audio inputauloop Audio-loop test moduleausine Audio sine wave input moduleav1 AV1 video codecavcapture Video source using iOS AVFoundation video captureavcodec Video codec using FFmpeg/libav libavcodecavformat Video source using FFmpeg/libav libavformatb2bua Back-to-Back User-Agent (B2BUA) modulecodec2 Codec2 low bit rate speech codeccons UDP/TCP console UI drivercontact Contacts modulecoreaudio Apple macOS Coreaudio driverctrl_tcp TCP control interface using JSON payloaddebug_cmd Debug commandsdirectfb DirectFB video display moduledshow Windows DirectShow video sourcedtls_srtp DTLS-SRTP end-to-end encryptionebuacip EBU ACIP (Audio Contribution over IP) Profileecho Echo server moduleevdev Linux input driverfakevideo Fake video input/output driverg711 G.711 audio codecg722 G.722 audio codecg7221 G.722.1 audio codecg726 G.726 audio codecgsm GSM audio codecgst Gstreamer audio sourcegst_video Gstreamer video codecgtk GTK+ 2.0 UIgzrtp ZRTP module using GNU ZRTP C++ libraryhttpd HTTP webserver UI-modulei2s I2S (Inter-IC Sound) audio driverice ICE protocol for NAT Traversaljack JACK Audio Connection Kit audio-driverl16 L16 audio codecmenu Interactive menumpa MPA Speech and Audio Codecmulticast Multicast RTP send and receivemqtt MQTT (Message Queue Telemetry Transport) modulemwi Message Waiting Indicationnatpmp NAT Port Mapping Protocol (NAT-PMP) moduleomx OpenMAX IL video display moduleopensles OpenSLES audio driveropus OPUS Interactive audio codecpcp Port Control Protocol (PCP) moduleplc Packet Loss Concealment (PLC) using spandspportaudio Portaudio driverpulse Pulseaudio driverpresence Presence modulertcpsummary RTCP summary modulerst Radio streamer using mpg123sdl Simple DirectMedia Layer 2.0 (SDL) video output driverselfview Video selfview modulesnapshot Save video-stream as PNG imagessndfile Audio dumper using libsndfilesndio Audio driver for OpenBSDspeex_pp Audio pre-processor using libspeexdspsrtp Secure RTP encryption (SDES) using libre SRTP-stackstdio Standard input/output UI driverstun Session Traversal Utilities for NAT (STUN) moduleswscale Video scaling using libswscalesyslog Syslog moduleturn Obtaining Relay Addresses from STUN (TURN) moduleuuid UUID generator and loaderv4l2 Video4Linux2 video sourcev4l2_codec Video4Linux2 video codec module (H264 hardware encoding)vidbridge Video bridge modulevidinfo Video info overlay modulevidloop Video-loop test modulevp8 VP8 video codecvp9 VP9 video codecvumeter Display audio levels in consolewebrtc_aec Acoustic Echo Cancellation (AEC) using WebRTC SDKwincons Console input driver for Windowswinwave Audio driver for Windowsx11 X11 video output driverx11grab X11 grabber video sourcezrtp ZRTP media encryption module

参考