简体   繁体   English

如何在 Twilio 上拒绝第三台设备上的呼叫

[英]How to reject a call on a 3rd device on Twilio

I'm using android sdk and have a case like this:我正在使用 android sdk 并有这样的案例:

  • client_A calls client_B and client_B accepted -> client_A and client_B connected. client_A 调用 client_B 和 client_B 接受 -> client_A 和 client_B 连接。
  • client_C calls client_A that is talking to client_B -> there is an incoming call for person A. client_C 呼叫正在与 client_B 通话的 client_A -> 有人 A 有来电。

I want client_C to receive busy status as soon as I make a call.我希望 client_C 在我拨打电话后立即收到忙状态。 How to reject client_C in this case.在这种情况下如何拒绝 client_C。

You could reject the call from the application by immediately calling reject on the CallInvite when there is an existing call.当有现有呼叫时,您可以通过立即CallInvite上调用reject来拒绝来自应用程序的呼叫。

Or, in your webhook you could use the Calls resource to list calls where your client identity is either the To or the From .或者,在您的 webhook 中,您可以使用 Calls 资源列出您的客户端身份为ToFrom的呼叫。 If there are any calls, then instead of returning the <Dial> to the <Client> you can return <Reject reason="busy"> to reject the call.如果有任何呼叫,那么您可以返回<Reject reason="busy">来拒绝呼叫,而不是将<Dial>返回给<Client>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Twilio Flex - 拒绝后发送呼叫到 IVR - Twilio Flex - Send Call To IVR After Reject 如何获取 GCP 服务帐户 SignedJWT,以便我可以调用接受 GCP 身份验证的第 3 方服务 - How to Get GCP Service Account SignedJWT so I can call a 3rd party service that accepts GCP auth Javascript - 第 3 方 API 调用仅在某些情况下失败 - Javascript - 3RD party API call only fails in some cases 如何在 Angular 应用程序中为来电设置 twilio 设备(即 API 在 .NET 6 中)? - How to setup twilio device in Angular app for the incoming call (i.e. API is in .NET 6)? 如何拒绝 AWS IoT Device Shadow 中的“所需”更改 - How to reject a "desired" change in AWS IoT Device Shadow 如何在 Twilio Serverless 中从 Function 调用 Function? - How to call a Function from a Function in Twilio Serverless? Twilio:将呼叫转移到 Twilio 中的流 - Twilio: forward a call to a flow in Twilio 如何在呼出电话中使用 DTMF 音 Twilio - How to use DTMF Tones on Outbound Call Twilio 如何在重定向到第 3 方云页面的 AWS Route 53 中添加记录? - How to add record in AWS Route 53 that redirects to 3rd party cloud page? twilio - 如何在php中拨打语音电话 - twilio - how to make an outbound voice call in php
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM