Asterisk on Freerunner was: voip on Debian

Al Johnson openmoko at mazikeen.demon.co.uk
Sun Apr 19 11:45:56 CEST 2009


On Saturday 18 April 2009, Nicola Mfb wrote:
> 2008/9/6 TL Mieszkowski <mieszkowski at gmail.com>:
> > I've had a lot of success running both twinkle and asterisk and I thought
> > I'd share my experiences.
> > Twinkle works well, but the gui is limiting on the touchscreen.  I think
> > once configured properly
> > asterisk will make an excellent voip backend for the neo.  You can
> > control it through asterisk
> > manager commands by writing text strings to a socket, and which has hooks
> > for most languages I'm sure.
>
> Let's survive this interesting topic.
> I will be happy to write an AMI gui but now I'm hold having problems
> with the alsa channel. Using the pcm default is not compatible with
> the default shipped /etc/asound.conf, so I just tried to use
> plughw:dnsoop and plughw:dmix, the result is that there freerunner
> does not ring on incoming call (and you cannot hear the other peer),
> while audio transmitting is perfect.

I'm guessing 'does not ring' means it uses the earpiece for ringing instead of 
the speaker. You will need stereoout.state for the ringing, then change to 
voip-handset.state when answering the call. This is what is needed when 
working with linphone, although the change of state is not automated yet. 
voip-handset.state is in both FSO and SHR IIRC. You should be able to do the 
state switch with an asterisk script.

> Using plughw:0,0 for input/output
> works but I have stuttered audio (from freerunner to peer). I tried
> the mentioned asound.conf from koolu too, the same, If i move out from
> plughw there is no sound in fr with asterisk. If I use dnsoop form
> input and plughw for output, the input is stuttered again. I'm using
> shr-testing and asterisk 1.4.17-r1 from the same branch.
>
> As in the old thread there was success story may someone share some hint?

For linphone I use Brian Code's asound.conf :
	http://www.koolu.org/asound.conf
This uses dmix and dsnoop and gives stutter-free sound in both directions with 
linphone. It does have echo since we can't use the suppression in the GSM 
chipset.




More information about the community mailing list