How to get this workflow (New to FreePBX)

Hello, I want to make an application where sales reps can make calls and call details are recorded in the application such as duration, status (completed or ongoing) and recording.

I will buy phone numbers manually through my phone carrier and would like to use those.

Initially I was going to use twilio for this app but using your own phone numbers with twilio turned out to be difficult.

so I installed Freepbx, I want to know what I should look into to connect my phone numbers to freePBX after that I need to either connect freepbx to twilio and twilio to my app, or freepbx directly to my app if freePBX has an api I can use

Trunking. Twilio FreePBX Trunking: How to Configure Twilio Elastic SIP Trunking with FreePBX | Twilio