From 2f4391b53e904fb3226a6866f89d66d6b2653008 Mon Sep 17 00:00:00 2001 From: lickthecheese Date: Wed, 4 Dec 2019 22:07:19 -0500 Subject: [PATCH] baresip --- .baresip/accounts | 39 +++++++ .baresip/config | 236 +++++++++++++++++++++++++++++++++++++++ .baresip/contacts | 18 +++ .baresip/current_contact | 1 + .baresip/uuid | 1 + 5 files changed, 295 insertions(+) create mode 100644 .baresip/accounts create mode 100644 .baresip/config create mode 100644 .baresip/contacts create mode 100644 .baresip/current_contact create mode 100644 .baresip/uuid diff --git a/.baresip/accounts b/.baresip/accounts new file mode 100644 index 0000000..05f1cf6 --- /dev/null +++ b/.baresip/accounts @@ -0,0 +1,39 @@ +# +# SIP accounts - one account per line +# +# Displayname ;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: +# +# ;auth_pass=secret +# ;auth_pass=secret +# ;auth_pass=secret +# +;auth_pass=Fjec2IOOlaq1F +#;auth_pass=PASSWORD diff --git a/.baresip/config b/.baresip/config new file mode 100644 index 0000000..ed59da4 --- /dev/null +++ b/.baresip/config @@ -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 +#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 diff --git a/.baresip/contacts b/.baresip/contacts new file mode 100644 index 0000000..e5f452f --- /dev/null +++ b/.baresip/contacts @@ -0,0 +1,18 @@ +# +# SIP contacts +# +# Displayname ;addr-params +# +# addr-params: +# ;presence={none,p2p} +# ;access={allow,block} +# + + +"Echo Server" +"ltc" ;presence=p2p + +# Access rules +#"Catch All" ;access=block +"Good Friend" ;access=allow + diff --git a/.baresip/current_contact b/.baresip/current_contact new file mode 100644 index 0000000..eae9700 --- /dev/null +++ b/.baresip/current_contact @@ -0,0 +1 @@ +sip:echo@creytiv.com \ No newline at end of file diff --git a/.baresip/uuid b/.baresip/uuid new file mode 100644 index 0000000..469a36a --- /dev/null +++ b/.baresip/uuid @@ -0,0 +1 @@ +d2131d35-7f7e-c6d7-f032-ca9e3c5622b3 \ No newline at end of file