summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2013-06-20 21:13:17 +0000
committerJoshua Colp <jcolp@digium.com>2013-06-20 21:13:17 +0000
commitffab4d52f1100021af7e0f4c814c94938d2ae942 (patch)
tree64196ad6117a756eeac0e2f32ab364d0f8d2d661 /res
parentcd40e179a9bb01f10175ac3cecc633d631f69286 (diff)
Add a log message for when an incoming session is rejected due to the extension not being found.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/res_sip_session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_sip_session.c b/res/res_sip_session.c
index 5613078b9..7be75ab1d 100644
--- a/res/res_sip_session.c
+++ b/res/res_sip_session.c
@@ -1167,6 +1167,10 @@ static void handle_new_invite_request(pjsip_rx_data *rdata)
case SIP_GET_DEST_EXTEN_NOT_FOUND:
case SIP_GET_DEST_EXTEN_PARTIAL:
default:
+ ast_log(LOG_NOTICE, "Call from '%s' (%s:%s:%d) to extension '%s' rejected because extension not found in context '%s'.\n",
+ ast_sorcery_object_get_id(session->endpoint), rdata->tp_info.transport->type_name, rdata->pkt_info.src_name,
+ rdata->pkt_info.src_port, session->exten, session->endpoint->context);
+
if (pjsip_inv_initial_answer(inv_session, rdata, 404, NULL, NULL, &tdata) == PJ_SUCCESS) {
ast_sip_session_send_response(session, tdata);
} else {