diff --git a/channels/chan_sip.c b/channels/chan_sip.c index db30792db453f446f9a2f1353f9b3355e8353214..04413bcf8a5f3cab810e80a1afa7f00bf786caef 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14875,8 +14875,12 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int if (!replace_id && gotdest) { /* No matching extension found */ if (gotdest == 1 && ast_test_flag(&p->flags[1], SIP_PAGE2_ALLOWOVERLAP)) transmit_response_reliable(p, "484 Address Incomplete", req); - else + else { transmit_response_reliable(p, "404 Not Found", req); + ast_verb(3, "Call from '%s' to extension" + " '%s' rejected because extension not found.\n", + S_OR(p->username, p->peername), p->exten); + } p->invitestate = INV_COMPLETED; update_call_counter(p, DEC_CALL_LIMIT); sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);