Skip to content

Commit

Permalink
mid_registrar: Add a useful startup error case
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Jul 26, 2017
1 parent f302175 commit 0017951
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/mid_registrar/mid_registrar.c
Expand Up @@ -270,6 +270,11 @@ static int mod_init(void)
return -1;
}

if (ul_api.db_mode != NO_DB) {
LM_ERR("the 2.3 mid_registrar only works with usrloc 'db_mode = 0'!\n");
return -1;
}

if (load_tm_api(&tm_api) < 0) {
LM_ERR("failed to load user location API\n");
return -1;
Expand Down

0 comments on commit 0017951

Please sign in to comment.