https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r334616 | alecdavis | 2011-09-07 19:33:39 +1200 (Wed, 07 Sep 2011) | 10 lines
Prevent segfault if call arrives before Asterisk is fully booted.
Prevent ast_pbx_start and ast_run_start from starting a new thread unless asterisk
is fully booted.
alecdavis (license 585)
Tested by: alecdavis
Review: https://reviewboard.asterisk.org/r/1407/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@334617
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
return AST_PBX_FAILED;
}
+ if (!ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)) {
+ ast_log(LOG_WARNING, "PBX requires Asterisk to be fully booted\n");
+ return AST_PBX_FAILED;
+ }
+
if (increase_call_count(c))
return AST_PBX_CALL_LIMIT;
{
enum ast_pbx_result res = AST_PBX_SUCCESS;
+ if (!ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)) {
+ ast_log(LOG_WARNING, "PBX requires Asterisk to be fully booted\n");
+ return AST_PBX_FAILED;
+ }
+
if (increase_call_count(c)) {
return AST_PBX_CALL_LIMIT;
}