Baresip is a modular SIP User-Agent with audio and video support
https://github.com/alfredh/baresipgit
PJSIP 代码太大,修改不易。须要一些时间才能。github
Baresip 很是小巧的一个 SIP UA 的实现。服务器
编译须要装2个小库 re rem RTP 和 解码的库,同时也须要 openssl ffmpeg SDL 。须要先提早装好。autoconf 这种更是不会说了,也是须要的。ide
仍是用 win 上面的 SIP 服务软件。oop
用法:ui
baresip 运行之后打出来全部的控制命令。debug
--- Help ---
ESC Hangup call
/about About box
/accept a Accept incoming call
/auloop .. Start audio-loop <srate ch>
/auloop_stop Stop audio-loop
/auplay .. Switch audio player
/ausrc .. Switch audio source
/callstat c Call status
/chatpeer .. = .. Select chat peer
/conf_reload Reload config file
/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 <codec>
/vidloop_stop Stop video-loop
/vidsrc .. Switch video sourcecode
/uanew 新建一个用户 SIP 服务器是 192.168.1.121 用户名是 101 密码是 101 。
<sip:101@192.168.1.121>;auth_pass=101blog
注册成功了。ip
用 win 的 SIP 客户端打一个电话过来
音质也很是好,比 PJSIP 好不少。