使用 twilio flex,如何使用外部电话(不是代理或队列)创建热转接

joe*_*oey 5 twilio twilio-flex

我发现开箱即用 (v<=1.11) twilio flex 允许热传输到

  • 代理商
  • 队列

我有兴趣扩展此功能,以便我可以将外部电话号码添加到列表/集合中,并从 UI 角度与外部方进行交互,类似于我与代理/队列交互的方式。换句话说,我希望允许热转移到

  • 代理商
  • 队列
  • 外部联系人(新)

我希望温暖转移到外部电话号码可以有类似的体验,如下所示 https://www.twilio.com/docs/flex/warm-transfer-end-user-guide

我可以使用哪些自定义选项来添加此类功能?我该从哪里开始呢?

I would imagine that many other businesses that use flex have a strong use case to do warm transfers to external phone numbers while using the flex UI. Perhaps to people who are using other types of systems, and are located within an entirely different company. How might they be accomplishing this use case?

Is the 'warm transfer' experience exclusive to transfers that are happening to Agents/Queues only? I hope not.

Any help/guidence is appreciated. Thank you in advance.

UPDATE: Answered my own question below. Next step for me is to figure out how to obtain the conferenceSid upon reserving voice task. Ive created separate question for that

joe*_*oey 0

我找到了答案。我可以简单地使用语音 api 添加参与者,如下所示(C# 库是一种方式)

            const string accountSid = "11";
        const string authToken = "11";

        TwilioClient.Init(accountSid, authToken);

        var participant = ParticipantResource.Create(
            from: new Twilio.Types.PhoneNumber("+1XXX"),
            to: new Twilio.Types.PhoneNumber("+1XXX"),
            pathConferenceSid: "XXX"
        );
Run Code Online (Sandbox Code Playgroud)