summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-11-08 18:53:14 +0000
committerDavid M. Lee <dlee@digium.com>2013-11-08 18:53:14 +0000
commit4c128198c8bec87ee96cbe434d7d05161da9c760 (patch)
tree16c27da2c953b4f551b43414ad387c2f3d59df70 /res
parentb83a3965b81083d4abd9522283aeaa0037462045 (diff)
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
Diffstat (limited to 'res')
-rw-r--r--res/res_pjsip/config_system.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_pjsip/config_system.c b/res/res_pjsip/config_system.c
index f499e8a23..01067991e 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;