我正在创建一个创建多个会议室的应用程序。这些会议室将有一名专家/主持人,他将与会议室中的一个或多个人交谈。对于计费,我需要能够找到电话会议的时长。这段时间必须从专家进入会议室(如果有其他人在会议室)到最后一个人(不是专家)离开。有什么想法吗?
发布于 2014-11-26 22:34:46
Twilio开发者布道者在这里。
在这里使用Conferences list resource可能会对您有所帮助。您可以像这样拉取会议的详细信息:
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "{{ account_id }}"
auth_token = "{{ auth_token }}"
client = TwilioRestClient(account_sid, auth_token)
# A list of conference objects with the properties described above
conferences = client.conferences.list()每个会议都有一个date_created和date_updated属性,您可以使用它们来确定长度。我链接的文档显示了如何根据房间名称和呼叫状态等信息过滤此会议列表。
如果您需要更精确地基于参与者,您可以使用participants resource来找出单个参与者在通话中花费的时间。
希望这能有所帮助!
https://stackoverflow.com/questions/27140366
复制相似问题