Fix parsing of the SIP URI in db_get_auth_id() .

Closes #340.