[英]How to reject a call on a 3rd device on Twilio
I'm using android sdk and have a case like this:我正在使用 android sdk 并有这样的案例:
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 资源列出您的客户端身份为
To
或From
的呼叫。 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.