I'm trying to setup twilio as gateway following this guide:
https://www.twilio.com/docs/sip-trunking/sample-configuration#freeswitch

In their example of twiliotrunk.xml they have twilio-inbound and twilio-outbound.

What is the difference between the two gateways? I know their names indicate inbound and outbound calling, but how can Freeswitch tell the difference between them. Especially how can Freeswitch now to use twilio-inbound for incoming calls from twilio and not just twilit-outbound as the only difference is register-proxy and expire-seconds between the two?

Make sense?