From 7950b65e4f707d36cb8d17e82288e913c4d86f22 Mon Sep 17 00:00:00 2001 From: Matt Jordan Date: Fri, 22 May 2015 12:18:31 -0500 Subject: 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 --- res/res_pjsip_exten_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/res_pjsip_exten_state.c') 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; } -- cgit v1.2.3