From owner-freebsd-questions@FreeBSD.ORG Thu Jan 3 14:05:12 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2260F860 for ; Thu, 3 Jan 2013 14:05:12 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id F2F0B99F for ; Thu, 3 Jan 2013 14:05:11 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 18C0A98F; Thu, 3 Jan 2013 13:53:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id JEoED8U4wjBQ; Thu, 3 Jan 2013 13:52:24 +0000 (UTC) Received: from [192.168.1.1] (i152203.upc-i.chello.nl [62.195.152.203]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id CFC2B982; Thu, 3 Jan 2013 13:52:23 +0000 (UTC) Message-ID: <50E58D05.2090408@barafranca.com> Date: Thu, 03 Jan 2013 13:52:05 +0000 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Joseph Olatt Subject: Re: audio/baresip on FreeBSD 9 References: <20130103041911.GA29654@shellx.eskimo.com> In-Reply-To: <20130103041911.GA29654@shellx.eskimo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 14:05:12 -0000 On 01/03/13 04:19, Joseph Olatt wrote: > > I've been trying to get baresip to work on my FreeBSD 9.x laptop and > haven't had much success. I register successfully to callcentric.com and > it appears that I can connect and there is a stream of data coming > through based on the status display: > > [0:00:08] audio=0/0 (bit/s) [ ] > > However, there is no sound. > > Is anybody on the list successfully using baresip? If so, could they > please provide some pointers on how to get sound? > > There doesn't seem to be much documentation anywhere on the Internet for > baresip. > > My config file (~/.baresip/config) is: > > /* Begin ~/.baresip/config */ > # > # baresip configuration > # > > #------------------------------------------------------------------------------ > > # Core > poll_method poll # poll, select, epoll .. > > # Input > input_device /dev/event0 > input_port 5555 > > # SIP > sip_trans_bsize 128 > #sip_listen 127.0.0.1:5050 > > # Audio > audio_dev /dev/audio0.0 > audio_srate 8000-48000 > audio_channels 1-2 > #audio_aec_length 128 # [ms] > > # Video > video_dev > video_size 352x288 > video_bitrate 384000 > video_fps 25 > #video_selfview window # {window,pip} > > # AVT - Audio/Video Transport > rtp_tos 184 > #rtp_ports 10000-20000 > #rtp_bandwidth 512-1024 # [kbit/s] > rtcp_enable yes > rtcp_mux no > jitter_buffer_delay 5-10 # frames > > # Network > #dns_server 10.0.0.1:53 > > #------------------------------------------------------------------------------ > # Modules > > module_path /usr/local/lib/baresip/modules > > # UI Modules > module stdio.so > module cons.so > #module evdev.so > > # Audio codec Modules (in order) > #module g7221.so > #module g722.so > module g711.so > #module gsm.so > #module l16.so > #module speex.so > #module celt.so > #module bv32.so > > # Audio filter Modules (in order) > # NOTE: AEC should be before Preproc > #module sndfile.so > #module speex_aec.so > #module speex_pp.so > #module speex_resamp.so > #module plc.so > > # Audio driver Modules > #module oss.so > #module alsa.so > #module portaudio.so > #module gst.so > > # Video codec Modules (in order) > module avcodec.so > #module vpx.so > > # Video source modules > #module avformat.so > #module v4l.so > #module v4l2.so > > # Video display modules > #module sdl.so > #module x11.so > > # Media NAT modules > #module stun.so > #module turn.so > #module ice.so > > # Media encoding modules > #module srtp.so > > # Other modules > #module natbd.so > > #------------------------------------------------------------------------------ > # Module parameters > > > # Speex codec parameters > speex_quality 7 # 0-10 > speex_complexity 7 # 0-10 > speex_enhancement 0 # 0-1 > speex_vbr 0 # Variable Bit Rate 0-1 > speex_vad 0 # Voice Activity Detection 0-1 > speex_agc_level 8000 > > # NAT Behavior Discovery > #natbd_server creytiv.com > #natbd_interval 600 # in seconds > /* End ~/.baresip/config */ > > > /* uname -a */ > FreeBSD peace 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #4 r244062: Mon Dec > 10 17:56:25 CST 2012 root@peace:/usr/obj/usr/src/sys/PEACE i386 > > > Thanks. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > This works for me (not sure about video, works with video loop but have not found a free sip server that supports video streams..): # # baresip configuration # #------------------------------------------------------------------------------ # Core poll_method select # poll, select, epoll .. # Input input_device /dev/event0 input_port 5555 # SIP sip_trans_bsize 128 #sip_listen 127.0.0.1:5050 # Audio audio_dev /dev/dsp audio_srate 8000-48000 audio_channels 1-2 audio_aec_length 128 # [ms] # Video video_dev /dev/video0 video_size 800x600 video_bitrate 384000 video_fps 25 video_selfview window # {window,pip} # AVT - Audio/Video Transport rtp_tos 184 #rtp_ports 10000-20000 #rtp_bandwidth 512-1024 # [kbit/s] rtcp_enable yes rtcp_mux no jitter_buffer_delay 5-10 # frames # Network #dns_server 10.0.0.1:53 #------------------------------------------------------------------------------ # Modules module_path /usr/local/lib/baresip/modules # UI Modules module stdio.so module cons.so #module evdev.so # Audio codec Modules (in order) #module g7221.so #module g722.so #module gsm.so #module l16.so #module speex.so module g711.so #module celt.so #module bv32.so # Audio filter Modules (in order) # NOTE: AEC should be before Preproc #module sndfile.so #module speex_aec.so #module speex_pp.so #module speex_resamp.so #module plc.so # Audio driver Modules #module oss.so #module alsa.so module portaudio.so # ^^ this enabled SOUND #module gst.so # Video codec Modules (in order) module avcodec.so module vpx.so # Video source modules #module avformat.so #module v4l.so module v4l2.so # ^^ this enabled VIDEO # Video display modules #module sdl.so module x11.so # Media NAT modules #module stun.so #module turn.so #module ice.so # Media encoding modules module srtp.so # Other modules #module natbd.so #------------------------------------------------------------------------------ # Module parameters # Speex codec parameters speex_quality 3 # 0-10 speex_complexity 7 # 0-10 speex_enhancement 1 # 0-1 speex_vbr 1 # Variable Bit Rate 0-1 speex_vad 1 # Voice Activity Detection 0-1 speex_agc_level 38000 # NAT Behavior Discovery natbd_server creytiv.com natbd_interval 600 # in seconds