[asterisk-commits] file: trunk r392364 - /trunk/res/res_sip_session.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 20 16:13:19 CDT 2013
Author: file
Date: Thu Jun 20 16:13:17 2013
New Revision: 392364
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392364
Log:
Add a log message for when an incoming session is rejected due to the extension not being found.
Modified:
trunk/res/res_sip_session.c
Modified: trunk/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_sip_session.c?view=diff&rev=392364&r1=392363&r2=392364
==============================================================================
--- trunk/res/res_sip_session.c (original)
+++ trunk/res/res_sip_session.c Thu Jun 20 16:13:17 2013
@@ -1167,6 +1167,10 @@
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 {
More information about the asterisk-commits
mailing list