From ead48c38cbc087e8110acd52e41e09dbb7442b7d Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 13 Jul 2006 16:47:20 +0000 Subject: [PATCH] Merged revisions 37531 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37531 | kpfleming | 2006-07-13 11:44:23 -0500 (Thu, 13 Jul 2006) | 2 lines report address of peer trying to subscribe to unknown hint ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37532 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 35ac561a64..29b21a36c2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13821,7 +13821,9 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req, } } else { if ((firststate = ast_extension_state(NULL, p->context, p->exten)) < 0) { - ast_log(LOG_ERROR, "Got SUBSCRIBE for extension without hint. Please add hint to %s in context %s\n", p->exten, p->context); + char iabuf[INET_ADDRSTRLEN]; + + ast_log(LOG_ERROR, "Got SUBSCRIBE for extension %s@%s from %s, but there is no hint for that extension\n", p->exten, p->context, ast_inet_ntoa(iabuf, sizeof(iabuf), p->sa.sin_addr)); transmit_response(p, "404 Not found", req); ast_set_flag(&p->flags[0], SIP_NEEDDESTROY); return 0;