Author: mjordan
Date: Thu Oct  9 13:37:04 2014
New Revision: 424986

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424986
Log:
res/res_phoneprov: Don't cancel Asterisk load on module load failure
........

Merged revisions 424985 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    branches/13/   (props changed)
    branches/13/res/res_phoneprov.c

Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: branches/13/res/res_phoneprov.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/13/res/res_phoneprov.c?view=diff&rev=424986&r1=424985&r2=424986
==============================================================================
--- branches/13/res/res_phoneprov.c (original)
+++ branches/13/res/res_phoneprov.c Thu Oct  9 13:37:04 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

Reply via email to