Partial support for PJSIP

Just a really quick hack to start with PJSip support.  I know that we'll also have to change the bit that checks whether the phones have successfully registered, but this is a start.