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
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.