question

$$ANON_USER$$ avatar image
$$ANON_USER$$ asked

XML callback does not provide caller name but voice api callback does

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

webhooks
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

·
klane@telnyx.com avatar image
klane@telnyx.com answered

Hi! Thanks for posting your question. We are starting to migrate support away from this site and towards https://joinslack.telnyx.com/ where it is easier to connect with many of experts to decrease delays in support. Can you post your question in that slack and I will start to connect with the necessary team members needed to confirm. TeXML can be more limited than the voice api and from the documentation I don't see caller name as an expected payload for TeXML but would like to confirm with senior developers and product management.391-screenshot-2023-05-15-at-10352-pm.png


10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Manage Your Content