From: Kevin P. Fleming Date: Thu, 13 Jul 2006 16:44:23 +0000 (+0000) Subject: report address of peer trying to subscribe to unknown hint X-Git-Tag: 1.2.10~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ccb628f9840672bad1947fe085bbd3472eb9a9;p=thirdparty%2Fasterisk.git report address of peer trying to subscribe to unknown hint git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37531 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6b78c2da22..423af01b33 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10985,7 +10985,9 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req, sip_scheddestroy(p, (p->expiry + 10) * 1000); /* Set timer for destruction of call at expiration */ if ((firststate = ast_extension_state(NULL, p->context, p->exten)) < 0) { - ast_log(LOG_ERROR, "Got SUBSCRIBE for extensions 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, SIP_NEEDDESTROY); return 0;