summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2015-02-14 18:30:34 +0000
committerJoshua Colp <jcolp@digium.com>2015-02-14 18:30:34 +0000
commit8c6e3ad3b4f5fd65578c1381c1f55fdf70d2572b (patch)
treef8f19c357c9d6d55ea673f9765d42dc03494168d
parent3543a363624261f61d7b985a6f5bb2d700f2ab64 (diff)
res_pjsip_exten_state: Improve log message when a subscription is attempted to a non-existent extension.
ASTERISK-24716 #close Reported by: Rusty Newton git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--res/res_pjsip_exten_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_pjsip_exten_state.c b/res/res_pjsip_exten_state.c
index 7649c7c29..45bfff605 100644
--- a/res/res_pjsip_exten_state.c
+++ b/res/res_pjsip_exten_state.c
@@ -334,7 +334,8 @@ static int new_subscribe(struct ast_sip_endpoint *endpoint,
const char *resource)
{
if (!ast_exists_extension(NULL, endpoint->context, resource, PRIORITY_HINT, NULL)) {
- ast_log(LOG_NOTICE, "Extension %s does not exist or has no associated hint\n", resource);
+ ast_log(LOG_NOTICE, "Extension state subscription failed: Extension %s does not exist in context '%s' or has no associated hint\n",
+ endpoint->context, resource);
return 404;
}