doujiang1832 2016-02-17 11:28
浏览 85
已采纳

Twilio:第一次成功通话; 第二次和后续调用错误

An extension of this SO question: twilio-webrtc-client-breaks-if-user-always-allows-microphone-access

I'm having the same issue with error Error creating the answer: Failed to set local answer sdp: Called in wrong state: STATE_INPROGRESS.

Does anyone have a work around? For now, I'm reloading the page after successful calls. It worked but it's not good to reload the page every time.

  • 写回答

1条回答 默认 最新

  • douluoqiu4538 2016-02-21 13:52
    关注

    It's a bug in the client at the moment; the workaround is that if you answer() the call in the incoming event handler, it doesn't happen. The problem is that you thus can't use Twilio's own incoming call handling (i.e. "ringing" the client) and have to implement your own instead, which may or may not be a problem for you.

    We did it using a socket.io type effort, so the browser talked to our server side app over websockets and when the browser accepts the call, we direct the call to the client and the Twilio client auto-answers.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失