← Back to team overview

ubuntu-phone team mailing list archive

Re: [Re-devel] Fwd: Re: sip softphone

 

El día Sunday, May 29, 2016 a las 02:19:59PM +0200, Matthias Apitz escribió:

> When I look into the source
> myRoot/home/phablet/baresip/modules/oss/oss.c
> it seems that the name it passed as const char *device, but as an empty
> string (that's why it is not substituted by "/dev/dsp" which isnt there
> either in my phone);
> 
> I'm a bit clueless :-(
> But near to make a call :-)

I made progress; I installed in the chrooted system 

$ sudo apt-get install libasound2-dev

and could made the alsa.so of baresip; this is now configured in the
config file as:

phablet@ubuntu-phablet-bq:~$ fgrep alsa .baresip/config
audio_player		alsa,default
audio_source		alsa,default
audio_alert		alsa,default
module			alsa.so

and I can make a call to 'sip:echo@xxxxxxxxx':

lapitz@xxxxxxxxx: {0/TCP/v4} 200 OK (ser (3.3.0-pre1 (i386/linux))) [1
binding]
All 1 useragent registered successfully! (375 ms)
>                             echo
call: connecting to 'sip:echo@xxxxxxxxx'..
call: SIP Progress: 100 Trying (/)
call: SIP Progress: 100 Trying (/)
audio: Set audio decoder: PCMU 8000Hz 1ch
alsa: reset: srate=8000, ch=1, num_frames=160, pcmfmt=S16_LE
alsa: playback started (default)
audio: Set audio encoder: PCMU 8000Hz 1ch
alsa: reset: srate=8000, ch=1, num_frames=160, pcmfmt=S16_LE
alsa: recording started (default)
audio tx pipeline:        alsa ---> vumeter ---> PCMU
audio rx pipeline:        alsa <--- vumeter <--- PCMU
lapitz@xxxxxxxxx: Call established: sip:echo@xxxxxxxxx
main: long async blocking: 1049>100 ms (h=0xb6f90159 arg=0x4be5e8)
Quit0:16] audio=63829/63829 (bit/s)                         [ ]  [                ]
ua: stop all (forced=0)
Stopping 1 useragent.. 
sip:lapitz@xxxxxxxxx: Call with sip:echo@xxxxxxxxx terminated (duration: 16 secs)
alsa: stopping recording thread (default)
alsa: stopping playback thread (default)
main: long async blocking: 403>100 ms (h=0xb6bf09e9 arg=0x4b9dd8)

sound is there now!!!

but somehow clittered; don't know how to describe it better; can I record it
with baresip to a file? Any options to tweak?

	matthias
-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
"Die Verkaufsschlager des Buchmarkts geben Auskunft über den Zustand einer Gesellschaft bzw.
sind, was diese Zeiten angeht, Gradmesser fortschreitenden Schwachsinns. ..." (jW 19.05.2016)


Follow ups

References