Twilio Voice associating CallSid with UserID -


i don't how can keep track on backend/app specific users making specific calls. right using basicphone app came android sdk, have tied backend , calls working. want create own 'call' history on backend (using parse.com)

backend routes:

/token (creates capability making calls - seems pass in doing call??) /call (create twiml dial/number) /callstatus (handles status when call on - intention perform action on backend uupdate specfic user account started call) 

i can't use from/to numbers id, since users sharing set of fromnumbers.

i logging request twilio on /call post , see:

{"accountsid":"------","applicationsid":"---","caller":"client:anonymous","callstatus":"ringing","called":"","to":"","callsid":"-----","from":"client:anonymous","direction":"inbound","apiversion":"2010-04-01"}

seems can tie specific user callsid on twilio, "caller" "client:anonymous"

megan twilio here.

you don't have use client:anonymous. if go through android sdk quickstart can see how naming works:

https://www.twilio.com/docs/quickstart/php/android-client/make-outgoing-call

specifically can add optional params sent twilio application - (twiml) associated device's capability token so:

var connection = twilio.device.connect({   agent: "smith",   location: "matrix" }); 

hope proves helpful.


Comments