Handle 401 Unauthorized responses

Fixing bug reported [here](https://github.com/psm/sip-client/issues/2)