[asterisk-commits] file: trunk r394103 - /trunk/res/res_sip_exten_state.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 11 11:23:42 CDT 2013


Author: file
Date: Thu Jul 11 11:23:41 2013
New Revision: 394103

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394103
Log:
Tweak the subscription failure warning message to include endpoint name and context.

Modified:
    trunk/res/res_sip_exten_state.c

Modified: trunk/res/res_sip_exten_state.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_sip_exten_state.c?view=diff&rev=394103&r1=394102&r2=394103
==============================================================================
--- trunk/res/res_sip_exten_state.c (original)
+++ trunk/res/res_sip_exten_state.c Thu Jul 11 11:23:41 2013
@@ -452,8 +452,9 @@
 	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;
 	}




More information about the asterisk-commits mailing list