Skip to content
Snippets Groups Projects
Commit f5ffcb1b authored by zuul's avatar zuul Committed by Gerrit Code Review
Browse files

Merge "pjsip_distributor.c: Ignore messages until fully booted."

parents 0388c40b df2791da
No related branches found
No related tags found
No related merge requests found
...@@ -397,6 +397,9 @@ res_pjsip ...@@ -397,6 +397,9 @@ res_pjsip
into the "reg_server" field in the ps_contacts table to facilitate into the "reg_server" field in the ps_contacts table to facilitate
multi-server setups. multi-server setups.
* When starting Asterisk, received traffic will now be ignored until Asterisk
has loaded all modules and is fully booted.
res_hep res_hep
------------------ ------------------
* Added a new option, 'uuid_type', that sets the preferred source of the Homer * Added a new option, 'uuid_type', that sets the preferred source of the Homer
......
...@@ -290,11 +290,20 @@ static pjsip_module endpoint_mod = { ...@@ -290,11 +290,20 @@ static pjsip_module endpoint_mod = {
static pj_bool_t distributor(pjsip_rx_data *rdata) static pj_bool_t distributor(pjsip_rx_data *rdata)
{ {
pjsip_dialog *dlg = find_dialog(rdata); pjsip_dialog *dlg;
struct distributor_dialog_data *dist = NULL; struct distributor_dialog_data *dist = NULL;
struct ast_taskprocessor *serializer = NULL; struct ast_taskprocessor *serializer = NULL;
pjsip_rx_data *clone; pjsip_rx_data *clone;
if (!ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)) {
/*
* Ignore everything until we are fully booted. Let the
* peer retransmit messages until we are ready.
*/
return PJ_TRUE;
}
dlg = find_dialog(rdata);
if (dlg) { if (dlg) {
ast_debug(3, "Searching for serializer on dialog %s for %s\n", ast_debug(3, "Searching for serializer on dialog %s for %s\n",
dlg->obj_name, pjsip_rx_data_get_info(rdata)); dlg->obj_name, pjsip_rx_data_get_info(rdata));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment