This `if` test doesn't check for `sip:` schemes first, which makes the `else if` look a bit weird (especially as strictly, a `tel:` URL is always considered to be in the home domain until ENUM look-ups say otherwise).

Not sure what the correct fix is here (should `is_home_domain` return `true` for `tel:` URIs?).