Asterisk - Receiving calls from Twilio using PJSIP

I recently wanted to setup an asterisk server using Twilio as the phone provider. There wasn't much resource out there, but from what I did find…