summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-09-26 21:17:41 +0000
committerRussell Bryant <russell@russellbryant.com>2007-09-26 21:17:41 +0000
commitcf452dc6f531ebd522cb4e50f8eb8eec95c569d2 (patch)
tree4060d4743c157262def42859147e58cfbcb6362c /channels
parente017737640134f8742a9a9657214fdc263f7da64 (diff)
Merged revisions 83941 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r83941 | russell | 2007-09-26 16:15:15 -0500 (Wed, 26 Sep 2007) | 5 lines Add a log message that was requested by the masses in the developer tutorial session at Astricon. chan_sip did not output any message when a call was rejected because the extension was not found. This adds a verbose message (at verbose level 3) to note when this happens. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index db30792db..04413bcf8 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);