【发布时间】:2015-10-06 06:42:03
【问题描述】:
我只是不明白如何在我的后端/应用上跟踪特定用户正在拨打的特定电话。现在我正在使用 Android SDK 附带的 BasicPhone 应用程序,我将它绑定到我的后端并且所有呼叫都在工作。我现在想在我的后端创建自己的“通话”历史记录(使用 Parse.com)
后端路由:
/token (creates capability for making calls - seems like this is where I pass in who is doing the call??)
/call (create twiml for Dial/Number)
/callstatus (handles status when call is over - intention is to perform some action on my backend to uupdate the specfic user account that started the call)
我不能使用 From/To 数字作为 ID,因为所有用户都将共享一组 FromNumber。
我在/call POST 上记录来自 Twilio 的请求,但只看到:
{"AccountSid":"------","ApplicationSid":"---","Caller":"client:Anonymous","CallStatus":"ringing","Called":" ","To":"","CallSid":"-----","From":"client:Anonymous","Direction":"inbound","ApiVersion":"2010-04-01" }
似乎这是我可以将特定用户绑定到 Twilio 上的 CallSid 的地方,但我的“来电者”始终是“客户端:匿名”
【问题讨论】:
标签: twilio