Hello
An update on getting the 'console phone' of asterisk working.
I still haven't got to the bottom of ALSA on openwrt, but noticed that the asterisk package does actually compile chan_oss.so by default (trunk/build_mipsel/asterisk-1.2.14/channels/chan_oss.so) although it doesnt get included in the ipkg.
copy this library to /usr/lib/asterisk/modules on the openwrt machine and add the line "load => chan_oss.so" into the /etc/asterisk/modules.conf so that asterisk will load it on startup
my openwrt creates the audio dsp in /dev/sound/dsp, but asterisk looks for /dev/dsp so create a symlink :
ln -s /dev/sound/dsp /dev/dsp
you also need to copy or create an oss.conf in the /etc/asterisk directory - there is an example in /trunk/build_mipsel/asterisk-1.2.14/configs/oss.conf.sample
if you start asterisk now it will happily use the console as a phone - you will notice some new commands available in the CLI (dial, hangup, answer etc - try help)
you can now dial your extensions e.g. 'dial 3102' (set the same context in oss.conf) or 'dial 3102@other-context'
in extensions.conf add something like
[internal-context]
exten => 101,1,Dial(CONSOLE/dsp)
exten => 101,2,Hangup
so that if you dial 101 from another extension, the console will ring (actually you probably set it to autoanswer in oss.conf otherwise you need to be logged on the asterisk CLI to issue the answer command)
This is going to work as a baby monitor for me (I hope!)
Would still love to know how alsa is working on openwrt and why oss seems to be working in case anyone can tell me!
Thanks
John