]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip: Print a helpful error message if sorcery registration fails
authorDavid M. Lee <dlee@digium.com>
Fri, 8 Nov 2013 18:48:28 +0000 (18:48 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 8 Nov 2013 18:48:28 +0000 (18:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402570 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pjsip/config_system.c

index f499e8a233a53046953e4f2e068e297c1770c7ca..01067991ed86c871dbe7503fa0d3c5683c2ecf4a 100644 (file)
@@ -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;