aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-10 20:25:32 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-10 20:25:32 +0000
commit80b2150063a10b79b31b48fee40aa7d7cd9243be (patch)
treec4f5643f9886d695b1b4f82093156dbc168c4c65 /channels
parentf3a3df4b82a1026e4942ac4782a85e0d5df0203a (diff)
Cleanup imported from 1.4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47467 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 262495223..e97e9010b 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 */