Tweak the subscription failure warning message to include endpoint name and context.
authorJoshua Colp <jcolp@digium.com>
Thu, 11 Jul 2013 16:23:41 +0000 (16:23 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 11 Jul 2013 16:23:41 +0000 (16:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394103 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_sip_exten_state.c

index 0693434..e57ac05 100644 (file)
@@ -452,8 +452,9 @@ static struct ast_sip_subscription *new_subscribe(struct ast_sip_endpoint *endpo
        if ((exten_state_sub->id = ast_extension_state_add_destroy_extended(
                     exten_state_sub->context, exten_state_sub->exten,
                     state_changed, state_changed_destroy, exten_state_sub)) < 0) {
-               ast_log(LOG_WARNING, "Unable to subscribe extension %s\n",
-                       exten_state_sub->exten);
+               ast_log(LOG_WARNING, "Unable to subscribe endpoint '%s' to extension '%s@%s'\n",
+                       ast_sorcery_object_get_id(endpoint), exten_state_sub->exten,
+                       exten_state_sub->context);
                pjsip_evsub_terminate(ast_sip_subscription_get_evsub(exten_state_sub->sip_sub), PJ_FALSE);
                return NULL;
        }