Skip to main content

Hi, i need to get access to the information of the inbound call receiver. In the API response we just get the phonenumber. With this i cannot join it with my main table because of the duplicates (One phone number used by more than 2 people). So how may i get acceess to it ? Should i use the LEG attribute in the Detailed API and get it from there ?

Help please. Thanks


From the call log result, look for the extension object in the main call record (or the master leg), use the extension id to read the extension info and you can find the extension name and other info. If this process is needed repeatedly or for multiple users, you can read all extensions info and keep them in an array with just the id and the metadata you need. Then you can quickly access the data without the need to call the extension API every time you parse the call log.


For Inbound call i'm not receiving that exntension obtject. When i try to access to that atribute, i get a traceback errror. This object doesn't appear neither in the main object or when i acces to the "TO" object or the "LEG" object. It just appear when it's a internal company call or Outbound, but we do really need it from all directions. Any suggestion ?

note: in the image below, the extensio attribute doesn't show up.

Thank for your help. Please

1689702711146.png


Can you share the response in JSON string or expanded all the JSON objects. Remember to mask or erase sensitive info such as real phone number, name etc.


.


Reply