简体   繁体   English

Twilio 任务完成后的 Flex 语音邮件消息不可用

[英]Twilio Flex Voicemail messages after task completed are unavailable

We are working on implementing Flex with callback and voicemail functions, as documented in: https://www.twilio.com/docs/flex/solutions-library/queued-callback-and-voicemail我们正在努力实现具有回调和语音邮件功能的 Flex,如记录在: https://www.twilio.com/docs/flex/solutions-library/queued-callback-and-voicemail

Its quite close to what we want, but we would like to be able to access voicemail messages even after an agent handled the task, and the task was completed.它非常接近我们想要的,但我们希望即使在代理处理任务并完成任务后也能够访问语音邮件消息。 I can't seem to find where those recordings can be available from?我似乎无法找到这些录音可以从哪里获得?

In that plugin, the voicemail audio URL is attached to a Task's attributes.在该插件中,语音邮件音频 URL 附加到任务的属性。 According to the TaskRouter documentation on the lifecycle of a Task , once a Task has reached a terminal state (canceled or completed) it is deleted 5 minutes later).根据有关 Task 生命周期的 TaskRouter 文档,一旦 Task 到达终端 state(取消或完成),它会在 5 分钟后被删除)。

So, you cannot retrieve the voicemail URL from the task.因此,您无法从任务中检索语音邮件 URL。

Call recordings are available through the Twilio REST API though.通话录音可通过 Twilio REST API 获得 If you wanted to build a page in Flex that listed the call recordings that have been left as part of this workflow, you could, for example, fetch the recordings from the API (using a Twilio Function) and render them into the Flex page.如果您想在 Flex 中构建一个页面,列出作为此工作流程的一部分保留的通话录音,您可以,例如, 从 API 获取录音(使用 Twilio 函数)并将它们呈现到 Flex 页面中。

That will give you the recordings without any metadata though.不过,这将为您提供没有任何元数据的录音。 If you need to store the metadata further, you will likely need to dig further into the queued callbacks and voicemail plugin to find somewhere to store the data in your own permanent store.如果您需要进一步存储元数据,您可能需要进一步挖掘排队的回调和语音邮件插件,以找到将数据存储在您自己的永久存储中的地方。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM