Commit 705384eb authored by jehan's avatar jehan
Browse files

add test for // REGISTER sent for same account with configured realm

parent 1baa97a7
...@@ -1413,8 +1413,11 @@ void linphone_call_unref(LinphoneCall *obj){ ...@@ -1413,8 +1413,11 @@ void linphone_call_unref(LinphoneCall *obj){
belle_sip_object_unref(obj); belle_sip_object_unref(obj);
} }
static unsigned int linphone_call_get_n_active_streams(const LinphoneCall *call) { static unsigned int linphone_call_get_n_active_streams(const LinphoneCall *call) {
SalMediaDescription *md = sal_call_get_remote_media_description(call->op); SalMediaDescription *md=NULL;
if (!md) return 0; if (call->op)
md = sal_call_get_remote_media_description(call->op);
if (!md)
return 0;
return sal_media_description_nb_active_streams_of_type(md, SalAudio) + sal_media_description_nb_active_streams_of_type(md, SalVideo); return sal_media_description_nb_active_streams_of_type(md, SalAudio) + sal_media_description_nb_active_streams_of_type(md, SalVideo);
} }
......
...@@ -51,5 +51,14 @@ reg_expires=3600 ...@@ -51,5 +51,14 @@ reg_expires=3600
reg_sendregister=1 reg_sendregister=1
publish=0 publish=0
dial_escape_plus=0 dial_escape_plus=0
realm=auth1.example.org
[proxy_3]
reg_proxy=auth1.example.org
reg_identity=sip:liblinphone_tester@auth1.example.org
reg_expires=600
reg_sendregister=1
publish=0
dial_escape_plus=0
realm=auth1.example.org
...@@ -461,6 +461,7 @@ static LinphoneCoreManager* configure_lcm(void) { ...@@ -461,6 +461,7 @@ static LinphoneCoreManager* configure_lcm(void) {
LinphoneCoreManager *mgr=linphone_core_manager_new( "multi_account_rc"); LinphoneCoreManager *mgr=linphone_core_manager_new( "multi_account_rc");
stats *counters=&mgr->stat; stats *counters=&mgr->stat;
CU_ASSERT_TRUE(wait_for(mgr->lc,mgr->lc,&counters->number_of_LinphoneRegistrationOk,ms_list_size(linphone_core_get_proxy_config_list(mgr->lc)))); CU_ASSERT_TRUE(wait_for(mgr->lc,mgr->lc,&counters->number_of_LinphoneRegistrationOk,ms_list_size(linphone_core_get_proxy_config_list(mgr->lc))));
CU_ASSERT_EQUAL(counters->number_of_LinphoneRegistrationFailed,0);
return mgr; return mgr;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment