]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Thu, 13 Jul 2006 17:02:17 +0000 (17:02 +0000)
committerAutomerge script <automerge@asterisk.org>
Thu, 13 Jul 2006 17:02:17 +0000 (17:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@37545 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index f9ee4302ae7ff0e91080ded8e2cd1394287aa4c8..0a53303f0708542dec0907ba1bebbdc6cbaba450 100644 (file)
@@ -11095,7 +11095,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;