【问题标题】:JsSIP How to detect call transfer successfulllyJsSIP如何检测呼叫转移成功
【发布时间】:2022-11-15 02:12:09
【问题描述】:

A 与 B 保持会话并调用与 C 的会话。A 通过执行以下代码将 B 转移到 C。如何在 C 中获取 B 的信息,我尝试在 A 中收听 ua.on('newMessage', cb) 并添加 ua.sendMessage(currentSession?.remote_identity.uri, 'dataOfB')ua.on('newMessage', cb) 仅在 A 中触发。 C如何检测呼叫转移成功或从A收到消息。谢谢大家!

    replaces: currentSession,
    mediaConstraints: { audio: true, video: false },
     pcConfig: {
     rtcpMuxPolicy: 'negotiate',
    },
  };
  holdSession?.refer(currentSession?.remote_identity.uri, options);
  currentSession?.terminate();
  holdSession?.terminate();

【问题讨论】:

    标签: javascript typescript webrtc phone-call jssip


    【解决方案1】:

    正如他们的docs所述:

    REFER 方法隐式生成对状态的订阅 参考。从对等方收到的 NOTIFY 请求被处理并 JsSIP.RTCSession.ReferSubscriber 以事件的形式呈现。

    有关这些事件的文档可以在here 找到。

    看一下另一个answer 的工作示例。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-29
      相关资源
      最近更新 更多