How do you get call events in BotStream

Botstream supports call status events like started, ringing, answered, hangup, and even call quality. You can receive these events by including your HTTP endpoint in the call_params under datacollection in the makecall API. For example:

"call_params": {
   "datacollection": "https://hrathik.requestcatcher.com/test",
   "token": "U2Fh2Rl"
}

This will send the full call CDR once the call drops with a json that contains the timestamps of all the events.