我可以通过哪些方式跟踪每个客户的 min/call

What are the way i can keep track of min/call by each of customer

我们的用例以简化的方式: 1) 定制来到我们的网站 2) 他看到 phone 个号码的列表 3) 他点击 phone 号码拨打电话。

以上我正在阅读 https://www.twilio.com/docs/quickstart/java/client/outgoing-calls

我们的计划是将此呼叫功能作为附加功能提供,我们将向最终客户收取 twilio 向我们收取的费用。

现在我需要跟踪 call/min 每个客户使用的数量。这样我就可以向他收取同样的费用。

我可以通过哪些方式跟踪每个客户的 min/call?

编辑: 是否有任何 api/webhock 可用于跟踪特定通话的开始和结束时间,以便我们可以节省通话时间和费用。

此处为 Twilio 开发人员布道师。

好消息!您可以通过多种方式找到此信息。

首先,您可以设置 StatusCallback URL 来接收有关调用的 webhook 信息。您可以使用 phone numbers section of the Twilio portal. Or you can set a StatusCallback parameter when you create calls using the REST API. Or you can set a StatusCallback attribute when creating calls using the <Number> noun in TwiML.

在数字级别设置它

无论您以何种方式设置回调,您都会在通话结束时获得返回到您设置的 URL 的 Webhook。那webhook will include a CallDuration parameter with the duration of the call in seconds.

为了更准确的价格报告,您实际上可以查询 REST API。 Call instance resources have a Price property。这里唯一的缺点是 Price 属性 可能不会立即可用。因此,您可能需要安排作业在通话结束后检查价格。

如果这有帮助,请告诉我。