baresip
This commit is contained in:
parent
c1062edd50
commit
2f4391b53e
5 changed files with 295 additions and 0 deletions
39
.baresip/accounts
Normal file
39
.baresip/accounts
Normal file
|
@ -0,0 +1,39 @@
|
|||
#
|
||||
# SIP accounts - one account per line
|
||||
#
|
||||
# Displayname <sip:user@domain;uri-params>;addr-params
|
||||
#
|
||||
# uri-params:
|
||||
# ;transport={udp,tcp,tls}
|
||||
#
|
||||
# addr-params:
|
||||
# ;answermode={manual,early,auto}
|
||||
# ;audio_codecs=opus/48000/2,pcma,...
|
||||
# ;audio_source=alsa,default
|
||||
# ;audio_player=alsa,default
|
||||
# ;auth_user=username
|
||||
# ;auth_pass=password
|
||||
# ;call_transfer=no
|
||||
# ;mediaenc={srtp,srtp-mand,srtp-mandf,dtls_srtp,zrtp}
|
||||
# ;medianat={stun,turn,ice}
|
||||
# ;mwi=no
|
||||
# ;outbound="sip:primary.example.com;transport=tcp"
|
||||
# ;outbound2=sip:secondary.example.com
|
||||
# ;ptime={10,20,30,40,...}
|
||||
# ;regint=3600
|
||||
# ;pubint=0 (publishing off)
|
||||
# ;regq=0.5
|
||||
# ;sipnat={outbound}
|
||||
# ;stunuser=STUN/TURN/ICE-username
|
||||
# ;stunpass=STUN/TURN/ICE-password
|
||||
# ;stunserver=stun:[user:pass]@host[:port]
|
||||
# ;video_codecs=h264,h263,...
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# <sip:user@domain.com;transport=tcp>;auth_pass=secret
|
||||
# <sip:user@1.2.3.4;transport=tcp>;auth_pass=secret
|
||||
# <sip:user@[2001:df8:0:16:216:6fff:fe91:614c]:5070;transport=tcp>;auth_pass=secret
|
||||
#
|
||||
<sip:2013116:Fjec2IOOlaq1F@tilde.tel;transport=udp>;auth_pass=Fjec2IOOlaq1F
|
||||
#<sip:ltc@mcpsmd.org>;auth_pass=PASSWORD
|
236
.baresip/config
Normal file
236
.baresip/config
Normal file
|
@ -0,0 +1,236 @@
|
|||
#
|
||||
# baresip configuration
|
||||
#
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Core
|
||||
poll_method epoll # poll, select, epoll ..
|
||||
|
||||
# SIP
|
||||
#sip_listen 0.0.0.0:5060
|
||||
#sip_certificate cert.pem
|
||||
#sip_cafile /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
# Call
|
||||
call_local_timeout 120
|
||||
call_max_calls 4
|
||||
|
||||
# Audio
|
||||
#audio_path /usr/share/baresip
|
||||
audio_player alsa,default
|
||||
audio_source alsa,default
|
||||
audio_alert alsa,default
|
||||
#ausrc_srate 48000
|
||||
#auplay_srate 48000
|
||||
#ausrc_channels 0
|
||||
#auplay_channels 0
|
||||
#audio_txmode poll # poll, thread
|
||||
audio_level no
|
||||
ausrc_format s16 # s16, float, ..
|
||||
auplay_format s16 # s16, float, ..
|
||||
auenc_format s16 # s16, float, ..
|
||||
audec_format s16 # s16, float, ..
|
||||
|
||||
# Video
|
||||
#video_source v4l2,/dev/video0
|
||||
#video_display x11,nil
|
||||
video_size 352x288
|
||||
video_bitrate 500000
|
||||
video_fps 25.00
|
||||
video_fullscreen no
|
||||
videnc_format yuv420p
|
||||
|
||||
# AVT - Audio/Video Transport
|
||||
rtp_tos 184
|
||||
#rtp_ports 10000-20000
|
||||
#rtp_bandwidth 512-1024 # [kbit/s]
|
||||
rtcp_mux no
|
||||
jitter_buffer_delay 5-10 # frames
|
||||
rtp_stats no
|
||||
#rtp_timeout 60
|
||||
|
||||
# Network
|
||||
net_prefer_ipv6 no
|
||||
#dns_server 1.1.1.1:53
|
||||
#dns_server 1.0.0.1:53
|
||||
#net_interface wlp1s0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Modules
|
||||
|
||||
module_path /usr/lib/baresip/modules
|
||||
|
||||
# UI Modules
|
||||
module stdio.so
|
||||
#module cons.so
|
||||
#module evdev.so
|
||||
#module httpd.so
|
||||
|
||||
# Audio codec Modules (in order)
|
||||
#module opus.so
|
||||
#module amr.so
|
||||
#module g7221.so
|
||||
#module g722.so
|
||||
#module g726.so
|
||||
module g711.so
|
||||
#module gsm.so
|
||||
#module l16.so
|
||||
#module mpa.so
|
||||
#module codec2.so
|
||||
#module ilbc.so
|
||||
#module isac.so
|
||||
|
||||
# Audio filter Modules (in encoding order)
|
||||
#module vumeter.so
|
||||
#module sndfile.so
|
||||
#module speex_pp.so
|
||||
#module plc.so
|
||||
#module webrtc_aec.so
|
||||
|
||||
# Audio driver Modules
|
||||
module alsa.so
|
||||
#module pulse.so
|
||||
#module jack.so
|
||||
#module portaudio.so
|
||||
#module aubridge.so
|
||||
#module aufile.so
|
||||
|
||||
# Video codec Modules (in order)
|
||||
#module avcodec.so
|
||||
#module vp8.so
|
||||
#module vp9.so
|
||||
|
||||
# Video filter Modules (in encoding order)
|
||||
#module selfview.so
|
||||
#module snapshot.so
|
||||
#module swscale.so
|
||||
#module vidinfo.so
|
||||
|
||||
# Video source modules
|
||||
#module v4l2.so
|
||||
#module v4l2_codec.so
|
||||
#module avformat.so
|
||||
#module x11grab.so
|
||||
#module cairo.so
|
||||
#module vidbridge.so
|
||||
|
||||
# Video display modules
|
||||
#module directfb.so
|
||||
#module x11.so
|
||||
#module sdl.so
|
||||
#module fakevideo.so
|
||||
|
||||
# Audio/Video source modules
|
||||
#module rst.so
|
||||
#module gst.so
|
||||
#module gst_video.so
|
||||
|
||||
# Media NAT modules
|
||||
module stun.so
|
||||
module turn.so
|
||||
module ice.so
|
||||
#module natpmp.so
|
||||
#module pcp.so
|
||||
|
||||
# Media encryption modules
|
||||
#module srtp.so
|
||||
#module dtls_srtp.so
|
||||
#module zrtp.so
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Temporary Modules (loaded then unloaded)
|
||||
|
||||
module_tmp uuid.so
|
||||
module_tmp account.so
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Application Modules
|
||||
|
||||
module_app auloop.so
|
||||
#module_app b2bua.so
|
||||
module_app contact.so
|
||||
module_app debug_cmd.so
|
||||
#module_app dtmfio.so
|
||||
#module_app echo.so
|
||||
#module_app gtk.so
|
||||
module_app menu.so
|
||||
#module_app mwi.so
|
||||
#module_app presence.so
|
||||
#module_app syslog.so
|
||||
#module_app mqtt.so
|
||||
#module_app ctrl_tcp.so
|
||||
module_app vidloop.so
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Module parameters
|
||||
|
||||
|
||||
# UI Modules parameters
|
||||
cons_listen 0.0.0.0:5555 # cons
|
||||
|
||||
http_listen 0.0.0.0:8000 # httpd - server
|
||||
|
||||
ctrl_tcp_listen 0.0.0.0:4444 # ctrl_tcp
|
||||
|
||||
evdev_device /dev/input/event0
|
||||
|
||||
# Opus codec parameters
|
||||
opus_bitrate 28000 # 6000-510000
|
||||
#opus_stereo yes
|
||||
#opus_sprop_stereo yes
|
||||
#opus_cbr no
|
||||
#opus_inbandfec no
|
||||
#opus_dtx no
|
||||
#opus_mirror no
|
||||
#opus_complexity 10
|
||||
#opus_application audio # {voip,audio}
|
||||
#opus_samplerate 48000
|
||||
#opus_packet_loss 10 # 0-100 percent
|
||||
|
||||
# Opus Multistream codec parameters
|
||||
#opus_ms_channels 2 #total channels (2 or 4)
|
||||
#opus_ms_streams 2 #number of streams
|
||||
#opus_ms_c_streams 2 #number of coupled streams
|
||||
|
||||
vumeter_stderr yes
|
||||
|
||||
# Selfview
|
||||
video_selfview window # {window,pip}
|
||||
#selfview_size 64x64
|
||||
|
||||
# ICE
|
||||
ice_turn no
|
||||
ice_debug no
|
||||
ice_nomination regular # {regular,aggressive}
|
||||
|
||||
# ZRTP
|
||||
#zrtp_hash no # Disable SDP zrtp-hash (not recommended)
|
||||
|
||||
# Menu
|
||||
#menu_bell yes
|
||||
#redial_attempts 0 # Num or <inf>
|
||||
#redial_delay 5 # Delay in seconds
|
||||
#ringback_disabled no
|
||||
#statmode_default off
|
||||
|
||||
# avcodec
|
||||
#avcodec_h264enc libx264
|
||||
#avcodec_h264dec h264
|
||||
#avcodec_h265enc libx265
|
||||
#avcodec_h265dec hevc
|
||||
#avcodec_hwaccel vaapi
|
||||
|
||||
# mqtt
|
||||
#mqtt_broker_host 127.0.0.1
|
||||
#mqtt_broker_port 1883
|
||||
#mqtt_broker_clientid baresip01
|
||||
#mqtt_broker_user user
|
||||
#mqtt_broker_password pass
|
||||
#mqtt_basetopic baresip/01
|
||||
|
||||
# sndfile
|
||||
#snd_path /tmp
|
18
.baresip/contacts
Normal file
18
.baresip/contacts
Normal file
|
@ -0,0 +1,18 @@
|
|||
#
|
||||
# SIP contacts
|
||||
#
|
||||
# Displayname <sip:user@domain>;addr-params
|
||||
#
|
||||
# addr-params:
|
||||
# ;presence={none,p2p}
|
||||
# ;access={allow,block}
|
||||
#
|
||||
|
||||
|
||||
"Echo Server" <sip:echo@creytiv.com>
|
||||
"ltc" <sip:ltc@mcpsmd.org>;presence=p2p
|
||||
|
||||
# Access rules
|
||||
#"Catch All" <sip:*@*>;access=block
|
||||
"Good Friend" <sip:good@friend.com>;access=allow
|
||||
|
1
.baresip/current_contact
Normal file
1
.baresip/current_contact
Normal file
|
@ -0,0 +1 @@
|
|||
sip:echo@creytiv.com
|
1
.baresip/uuid
Normal file
1
.baresip/uuid
Normal file
|
@ -0,0 +1 @@
|
|||
d2131d35-7f7e-c6d7-f032-ca9e3c5622b3
|
Loading…
Reference in a new issue