int auto_sip_domains = FALSE;
struct sockaddr_in old_bindaddr = bindaddr;
int registry_count = 0, peer_count = 0, user_count = 0;
+ int debugflag;
cfg = ast_config_load(config);
}
/* Clear all flags before setting default values */
+ /* Preserve debugging settings for console */
+ ast_copy_flags((&debugflag), (&global_flags_page2), SIP_PAGE2_DEBUG_CONSOLE);
ast_clear_flag(&global_flags, AST_FLAGS_ALL);
+ ast_clear_flag(&global_flags_page2, AST_FLAGS_ALL);
+ ast_copy_flags((&global_flags_page2), (&debugflag), SIP_PAGE2_DEBUG_CONSOLE);
/* Reset IP addresses */
memset(&bindaddr, 0, sizeof(bindaddr));