summaryrefslogtreecommitdiff
path: root/res/res_pjsip_exten_state.c
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-05-22 12:18:31 -0500
committerMatt Jordan <mjordan@digium.com>2015-05-22 12:18:31 -0500
commit7950b65e4f707d36cb8d17e82288e913c4d86f22 (patch)
tree89d3486a960020f8821d7161286f4c9771a06d39 /res/res_pjsip_exten_state.c
parent9d8a462356a938eea82e8424242d89a682495b57 (diff)
res/res_pjsip_exten_state: Fix confusing NOTICE message
When a SUBSCRIBE request is made to a dialplan hint that doesn't exist, the current NOTICE message informing users of this swaps the context and extension parameters. This can cause a bit of confusion. Thanks to CptBurger in #asterisk for helping to point this out. Change-Id: Ie584d1a58ae217385c87a450ca25b55ca0e36e43
Diffstat (limited to 'res/res_pjsip_exten_state.c')
-rw-r--r--res/res_pjsip_exten_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_exten_state.c b/res/res_pjsip_exten_state.c
index a05e1915d..3dc8c1a8d 100644
--- a/res/res_pjsip_exten_state.c
+++ b/res/res_pjsip_exten_state.c
@@ -354,7 +354,7 @@ static int new_subscribe(struct ast_sip_endpoint *endpoint,
{
if (!ast_exists_extension(NULL, endpoint->context, resource, PRIORITY_HINT, NULL)) {
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);
+ resource, endpoint->context);
return 404;
}