diff --git a/tester/call_tester.c b/tester/call_tester.c index 89021f501..64d19c2cb 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -320,9 +320,11 @@ static void cancelled_ringing_call(void) { static void early_declined_call(void) { LinphoneCoreManager* marie = linphone_core_manager_new(liblinphone_tester_file_prefix, "marie_rc"); LinphoneCoreManager* pauline = linphone_core_manager_new(liblinphone_tester_file_prefix, "pauline_rc"); - linphone_core_set_max_calls(marie->lc,0); LinphoneCallLog* in_call; - LinphoneCall* out_call = linphone_core_invite(pauline->lc,"marie"); + LinphoneCall* out_call; + + linphone_core_set_max_calls(marie->lc,0); + out_call = linphone_core_invite(pauline->lc,"marie"); linphone_call_ref(out_call); CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallReleased,1)); diff --git a/tester/message_tester.c b/tester/message_tester.c index 730546a7d..140a369f9 100644 --- a/tester/message_tester.c +++ b/tester/message_tester.c @@ -80,6 +80,7 @@ static void text_message_compatibility_mode(void) { char*tmp; LCSipTransports transport; char* to = linphone_address_as_string(pauline->identity); + LinphoneChatRoom* chat_room; linphone_core_get_default_proxy(marie->lc,&proxy); CU_ASSERT_PTR_NOT_NULL (proxy); @@ -100,7 +101,7 @@ static void text_message_compatibility_mode(void) { CU_ASSERT_TRUE (wait_for(marie->lc,marie->lc,&marie->stat.number_of_LinphoneRegistrationOk,1)); - LinphoneChatRoom* chat_room = linphone_core_create_chat_room(marie->lc,to); + chat_room = linphone_core_create_chat_room(marie->lc,to); linphone_chat_room_send_message(chat_room,"Bla bla bla bla"); CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneMessageReceived,1)); CU_ASSERT_EQUAL(pauline->stat.number_of_LinphoneMessageReceivedLegacy,1);