最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - How can I setup SIP_UA in Flutter - Stack Overflow

programmeradmin3浏览0评论

I am trying to build a softphone application and I am having a hard time implementing sip_ua and make calls. There's not a lot of resource online about this specific library. This is the state of the code at the moment.

I tried making a call with this functionality and it doesn't seem to be making a call. No errors, no returns.

final UaSettings uaSettings = UaSettings()
 ..webSocketUrl = "wss://ip:8089/ws"
 ..password = ""
 ..userAgent = ""
 ..transportType = TransportType.WS
 ..webSocketSettings.allowBadCertificate = true
 ..uri = "username@ip"
 ..displayName = "displayName";
await _sipuaHelper.start(uaSettings);


final Map<String, dynamic> mediaConstraints = <String, dynamic>{
 "video": true,
 "audio": true,
};
final MediaStream mediaStream = 
  await navigator.mediaDevices.getUserMedia(mediaConstraints);
await sipuaHelper.call(target, mediaStream: mediaStream);
发布评论

评论列表(0)

  1. 暂无评论