Hello,
An initialized call (calling a telnyx number tied to an XML app) sends events like this to our endpoint:
{ "AccountSid": "...", "CallSid": "...", "CallSidLegacy": "...", "CallStatus": "initiated", "CallbackSource": "call-progress-events", "From": "+15551112323", "ParentCallSid": "...", "ParentCallSidLegacy": "...", "SequenceNumber": "0", "Timestamp": "...", "To": "+15551112222" }
However, calling a Telnyx number that is tied to a voice api app sends events like this to our endpoint:
"data": {
"event_type": "call.initiated",
"id": "...",
"occurred_at": "...",
"payload": {
"call_control_id": "v3:...",
"call_leg_id": "...",
"call_session_id": "...",
"caller_id_name": "Bob Johnson",
"client_state": "...",
"connection_id": "...",
"direction": "incoming",
"from": "+15551115555",
"shaken_stir_attestation": null,
"shaken_stir_validated": null,
"start_time": "...",
"state": "parked",
"to": "+15551112222"
}
"record_type": "event"
}
For voice api example, the caller_id_name is included in the payload but for xml it is not. I understand that there is a telnyx api endpoint to query caller name for a given tel# but it generally does not return the caller name, but instead shows it as null and returns carrier info and other meta data. Is this normal behaviour or am I missing something? The Caller name is important for our application and we need it in our call flow design.
Thanks