Open matiasgarciaisaia opened 1 year ago
For reference, I'd expect the Workflow Logs to look like SIP/Twilio's calls'.
And this is what Africa's Talking's current call logs show (to draw inspiration from):
@matiasgarciaisaia I don't see the Network Logs
(aka PbxLog
) for calls to Twilio.
Searching into the Broker, only the Asterisk PBX associates a PbxLog
to a CallLog.
Yes, that's true. Twilio calls only show Workflow Logs.
I guess it may make sense to log both ways? Have the Workflow Logs as a "logic" view of the call (in terms of playing a message, asking for input, recording a message), and then have the Network Logs show the request/responses we have for each call?
Both for Africa's Talking and Twilio.
I can't reproduce. I hacked the twilio simulator to behave like AFT, created an AFT channel, simulated a basic questionnaire from Surveda using it, and... I do get a Workflow Logs:
The session as recorded by the simulator. It uses proper XML as per Africa's Talking. The Workflow Logs feels like TwiML but I guess that's caused by the Verboice flow (which might be TwiML)?
{
"calls": {
"fd9f95de": {
"id": "fd9f95de",
"username": "sandbox",
"to": "3308",
"from": "+33100000000",
"no_reply": false,
"status": "completed",
"messages": [
{
"sid": "fd9f95de",
"status": "in-progress",
"sent_at": "2023-05-16T22:24:59Z"
},
{
"message": "<?xml version=\"1.0\"?><Response><GetDigits timeout=\"5\" numDigits=\"1\"><Say language=\"en\">#oneof:1,0</Say></GetDigits><Redirect>http://broker.verboice.lvh.me:8080/africas_talking</Redirect></Response>",
"received_at": "2023-05-16T22:24:59Z"
},
{
"sid": "fd9f95de",
"status": "in-progress",
"digits": "0",
"sent_at": "2023-05-16T22:25:01Z"
},
{
"message": "<?xml version=\"1.0\"?><Response><Say language=\"en\">Thank you</Say><Say language=\"en\">.</Say></Response>",
"received_at": "2023-05-16T22:25:01Z"
}
]
}
}
}
Africa's Talking calls are not showing Workflow Logs nor Network Logs.
We should show the Workflow Logs the same way with do with other providers, and also show Network Logs with every request/response that we send to and receive from Africa's Talking for each specific phone call.