From: David M. Lee Date: Fri, 8 Nov 2013 18:53:14 +0000 (+0000) Subject: res_pjsip: Print a helpful error message if sorcery registration fails X-Git-Tag: 13.0.0-beta1~853 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c128198c8bec87ee96cbe434d7d05161da9c760;p=thirdparty%2Fasterisk.git res_pjsip: Print a helpful error message if sorcery registration fails ........ Merged revisions 402570 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402572 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip/config_system.c b/res/res_pjsip/config_system.c index f499e8a233..01067991ed 100644 --- a/res/res_pjsip/config_system.c +++ b/res/res_pjsip/config_system.c @@ -121,6 +121,7 @@ int ast_sip_initialize_system(void) ast_sorcery_apply_default(system_sorcery, "system", "config", "pjsip.conf,criteria=type=system"); if (ast_sorcery_object_register(system_sorcery, "system", system_alloc, NULL, system_apply)) { + ast_log(LOG_ERROR, "Failed to register with sorcery (is res_sorcery_config loaded?)\n"); ast_sorcery_unref(system_sorcery); system_sorcery = NULL; return -1;