diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-13 16:44:23 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-13 16:44:23 +0000 |
commit | 10d8ecf70070794e6ae4d1bcf6c41af3febd901d (patch) | |
tree | 28c83d659b5ec7d8c6a0c7bd450dd08fc598e2da | |
parent | 6916c515b41324917295b5672ab3e976d386e9a4 (diff) |
report address of peer trying to subscribe to unknown hint
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@37531 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6b78c2da2..423af01b3 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; |