diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index 8f71c2609ca2b6ad2c967509d7373c1161d9e278..aa082c73825f28d0d848c1a642705a93d38065fb 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -1376,7 +1376,7 @@ static int load_module(void) profiles = ao2_container_alloc(MAX_PROFILE_BUCKETS, phone_profile_hash_fn, phone_profile_cmp_fn); if (!profiles) { ast_log(LOG_ERROR, "Unable to allocate profiles container.\n"); - return -1; + return AST_MODULE_LOAD_DECLINE; } http_routes = ao2_container_alloc(MAX_ROUTE_BUCKETS, http_route_hash_fn, http_route_cmp_fn); @@ -1424,7 +1424,7 @@ error: ao2_cleanup(users); delete_providers(); ao2_cleanup(providers); - return -1; + return AST_MODULE_LOAD_DECLINE; }