mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 06:38:08 +00:00
dtmf_tester.c: fix previous commit in case of opus not available
This commit is contained in:
parent
7b074dccc6
commit
73ec6eb8d9
1 changed files with 8 additions and 7 deletions
|
|
@ -91,14 +91,15 @@ void send_dtmf_base(bool_t use_rfc2833, bool_t use_sipinfo, char dtmf, char* dtm
|
|||
}
|
||||
|
||||
void send_dtmf_cleanup() {
|
||||
BC_ASSERT_PTR_NULL(marie_call->dtmfs_timer);
|
||||
BC_ASSERT_PTR_NULL(marie_call->dtmf_sequence);
|
||||
|
||||
/*just to sleep*/
|
||||
linphone_core_terminate_all_calls(pauline->lc);
|
||||
BC_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallEnd,1));
|
||||
BC_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&marie->stat.number_of_LinphoneCallEnd,1));
|
||||
if (marie_call) {
|
||||
BC_ASSERT_PTR_NULL(marie_call->dtmfs_timer);
|
||||
BC_ASSERT_PTR_NULL(marie_call->dtmf_sequence);
|
||||
|
||||
/*just to sleep*/
|
||||
linphone_core_terminate_all_calls(pauline->lc);
|
||||
BC_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallEnd,1));
|
||||
BC_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&marie->stat.number_of_LinphoneCallEnd,1));
|
||||
}
|
||||
linphone_core_manager_destroy(marie);
|
||||
linphone_core_manager_destroy(pauline);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue