bool call(CString sip)
{
if (sip.IsEmpty()) return false;

char* normalizedUserName = NULL;

LinphoneProxyConfig* proxyCfg = NULL;
//get default proxy
linphone_core_get_default_proxy(the_core, &proxyCfg);

if (proxyCfg != NULL) {
normalizedUserName = linphone_proxy_config_normalize_phone_number(proxyCfg, sip.GetString());
const char * uri = linphone_core_get_identity(the_core);
LinphoneAddress* tmpAddress = linphone_address_new(uri);
linphone_address_set_username(tmpAddress, normalizedUserName);
linphone_address_set_display_name(tmpAddress, "libsipua3");
const char *url = linphone_address_as_string(tmpAddress);
m_linphoneCall = linphone_core_invite(the_core, url);
linphone_address_destroy(tmpAddress);
}
return true;
}

相关文章:

  • 2021-08-21
  • 2021-04-25
  • 2022-01-17
  • 2022-01-29
  • 2022-02-16
  • 2022-01-14
猜你喜欢
  • 2021-12-28
  • 2021-08-14
  • 2022-02-02
  • 2021-11-09
  • 2022-12-23
  • 2021-06-08
  • 2021-12-31
相关资源
相似解决方案