Fixing two issues with SIP registration 

Both these commits make simple fixes to how sipcmd handles registration.