0

我们将 linphone 用于 VoIP 应用程序,并在电话会议持续时间方面遇到了问题。合并调用成功后持​​续时间未增加。每次显示 00:00 但通话成功生成。我们使用以下代码进行电话会议

LinphoneAddress* linphoneAddress = linphone_core_interpret_url([LinphoneManager 
getLc], [username cStringUsingEncoding:[NSString defaultCStringEncoding]]);
 if (linphoneAddress == NULL) {
     return;

  }

  linphone_core_enter_conference(LC);
   LinphoneCall *call = linphone_core_invite_address(LC, linphoneAddress);

-(NSString *)getCallDuration
{
 LinphoneCore *lc = [LinphoneManager getLc];

int duration =
linphone_core_get_current_call(lc) ? 
linphone_call_get_duration(linphone_core_get_current_call(lc)) : 
0;
NSString *str_duration = [LinphoneUtils 
durationToString:duration];
return  str_duration;
 }

所以任何人都有任何解决方案,请帮助我们。

谢谢你。

4

0 回答 0