Thanks, I think I've figured it - that confusing error was SWIG
telling me that I had the function parameter types wrong. As a Perl
guy I assumed that setHangupHook would take a subroutine pointer - in
fact it wants the name of the subroutine as a string.
Is there anywhere with real documentation for these things?