From: Olle Johansson Date: Fri, 10 Nov 2006 20:25:32 +0000 (+0000) Subject: Cleanup imported from 1.4 X-Git-Tag: 1.6.0-beta1~3^2~4038 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d69eb90f820ba7f878556a9e861f9344b9ab4dfc;p=thirdparty%2Fasterisk.git Cleanup imported from 1.4 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47467 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 262495223b..e97e9010bd 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13331,14 +13331,13 @@ 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)) { + if (gotdest == 1 && ast_test_flag(&p->flags[1], SIP_PAGE2_ALLOWOVERLAP)) transmit_response_reliable(p, "484 Address Incomplete", req); - update_call_counter(p, DEC_CALL_LIMIT); - } else { + else transmit_response_reliable(p, "404 Not Found", req); - update_call_counter(p, DEC_CALL_LIMIT); - } + update_call_counter(p, DEC_CALL_LIMIT); sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT); + return 0; } else { /* If no extension was specified, use the s one */ /* Basically for calling to IP/Host name only */