From: Leif Madsen Date: Tue, 31 May 2011 16:04:47 +0000 (+0000) Subject: Enhance NOTICE message to know who couldn't access the dialplan. X-Git-Tag: 1.8.5-rc1~11^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4f0e4b5c9f80e7f6145f99c204332c4a2833f54;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@321511 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 82dfef76e4..08277b88fa 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -21859,9 +21859,9 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int 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 */