Author: mjordan
Date: Thu Oct 9 13:33:59 2014
New Revision: 424985
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424985
Log:
res/res_phoneprov: Don't cancel Asterisk load on module load failure
Modified:
branches/12/res/res_phoneprov.c
Modified: branches/12/res/res_phoneprov.c
URL:
http://svnview.digium.com/svn/asterisk/branches/12/res/res_phoneprov.c?view=diff&rev=424985&r1=424984&r2=424985
==============================================================================
--- branches/12/res/res_phoneprov.c (original)
+++ branches/12/res/res_phoneprov.c Thu Oct 9 13:33:59 2014
@@ -1376,7 +1376,7 @@
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 @@
ao2_cleanup(users);
delete_providers();
ao2_cleanup(providers);
- return -1;
+ return AST_MODULE_LOAD_DECLINE;
}
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits