--- channels/chan_sip.c 2005-10-11 16:42:38.000000000 -0400 +++ channels/chan_sip.c 2005-10-11 16:44:17.000000000 -0400 @@ -6374,6 +6374,8 @@ case -3: /* URI not found */ transmit_response(p, "404 Not found", &p->initreq); + /* Set res back to -2 because we don't want to return an invalid domain message. That check already happened up above. */ + res = -2; break; } if (option_debug > 1) {