mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 22:28:07 +00:00
Add reconnect_to_primary_asap parameter to linphonerc and pass it to belle_sip_stack
This commit is contained in:
parent
2f1be97c10
commit
9d7a943032
2 changed files with 4 additions and 0 deletions
|
|
@ -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=
|
||||
|
|
|
|||
|
|
@ -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);}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue