[svn-commits] lmadsen: branch 1.8 r321511 - /branches/1.8/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue May 31 11:05:02 CDT 2011


Author: lmadsen
Date: Tue May 31 11:04:47 2011
New Revision: 321511

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321511
Log:
Enhance NOTICE message to know who couldn't access the dialplan.

(closes issue #19390)
Reported by: lmadsen
Patches: 
      __20110531-sip-notice-tweak.txt uploaded by lmadsen (license 10)
Tested by: russell

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=321511&r1=321510&r2=321511
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Tue May 31 11:04:47 2011
@@ -21859,9 +21859,9 @@
 					char *decoded_exten = ast_strdupa(p->exten);
 					transmit_response_reliable(p, "404 Not Found", req);
 					ast_uri_decode(decoded_exten);
-					ast_log(LOG_NOTICE, "Call from '%s' to extension"
+					ast_log(LOG_NOTICE, "Call from '%s' (%s) to extension"
 						" '%s' rejected because extension not found in context '%s'.\n",
-						S_OR(p->username, p->peername), decoded_exten, p->context);
+						S_OR(p->username, p->peername), ast_sockaddr_stringify(&p->recv), decoded_exten, p->context);
 				}
 			} /* end switch */
 




More information about the svn-commits mailing list