summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-05-22 12:18:31 -0500
committerJoshua Colp <jcolp@digium.com>2015-05-22 12:23:52 -0500
commitad7192a8fdfd56c8d5099306f358e1169fc135d0 (patch)
tree57c821027165140eacc1a018dcafc0fbc6601ebf
parentf7dc49b1f056cf1c948814f8010723a814c9f862 (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
-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 5e8a0175e..a8a11bc7f 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;
}