Add reconnect_to_primary_asap parameter to linphonerc and pass it to belle_sip_stack

This commit is contained in:
Mickaël Turnel 2018-03-06 17:04:16 +01:00
parent 2f1be97c10
commit 9d7a943032
2 changed files with 4 additions and 0 deletions

View file

@ -1395,6 +1395,9 @@ static void sip_config_read(LinphoneCore *lc) {
/*this is to filter out unsupported encryption schemes*/
linphone_core_set_media_encryption(lc,linphone_core_get_media_encryption(lc));
/*enable the reconnection to the primary server when it is up again asap*/
lc->sal->enable_reconnect_to_primary_asap(!!lp_config_get_int(lc->config,"sip","reconnect_to_primary_asap",0));
/*for tuning or test*/
lc->sip_conf.sdp_200_ack = !!lp_config_get_int(lc->config,"sip","sdp_200_ack",0);
lc->sip_conf.register_only_when_network_is_up=

View file

@ -171,6 +171,7 @@ public:
void enable_test_features(bool_t enabled) {this->_enable_test_features=enabled;}
void use_no_initial_route(bool_t enabled) {this->no_initial_route=enabled;}
void enable_unconditional_answer(int value) {belle_sip_provider_enable_unconditional_answer(this->prov,value);}
void enable_reconnect_to_primary_asap(bool_t enabled) {belle_sip_stack_enable_reconnect_to_primary_asap(this->stack,enabled);}
bctbx_list_t *get_pending_auths() const {return bctbx_list_copy(this->pending_auths);}