Tuesday 17 February 2009

USB-B3G on Asterisk

I got a couple of the yealink USB-B3G from Maplin Electronics at £3 each, meaning to get them to work with asterisk.

By being busy I get last-movers advantage and find it all works from years of other people doing it for me:
  1. The kernel already has the USB drivers installed.
  2. USB2KAPI provides a libusb style daemon to control the device, available from http://kb2kskype.sourceforge.net/
  3. The asterisk driver for that is written at http://www.artaylor.co.uk/usbb2k.html

Monday 9 February 2009

Debugging Makefiles

Debugging makefiles is hard work, and makefiles that make extensive use of @ to hide invoked commands make it hard to see what command failed.

Dr Dobbs has some useful tips http://www.ddj.com/development-tools/197003338 from which I derive the simple solution to my problem, to use /bin/sh -x as SHELL; i.e.

make SHELL='/bin/sh -x'

then the shell will print out the invoked commands, even if make won't!