Baresip is a modular SIP User-Agent with audio and video support
https://github.com/alfredh/baresip
PJSIP 代碼太大,修改不易。需要一些時間才能。
Baresip 非常小巧的一個 SIP UA 的實現。
編譯需要裝2個小庫 re rem RTP 和 解碼的庫,同時也需要 openssl ffmpeg SDL 。需要先提前裝好。autoconf 這種更是不會說了,也是需要的。
還是用 win 上面的 SIP 服務軟件。
用法:
baresip 運行以后打出來所有的控制命令。
--- 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 source
/uanew 新建一個用戶 SIP 服務器是 192.168.1.121 用戶名是 101 密碼是 101 。
<sip:101@192.168.1.121>;auth_pass=101

注冊成功了。
用 win 的 SIP 客戶端打一個電話過來

音質也非常好,比 PJSIP 好很多。
