How should a FXO GW work with FreePBX?

I’v never used multiple FXO ports gateway in conjunction with freepbx, so i come to ask you how should it be configured.

Let’s say a 24fxo unit: should I create 24 extensions on freepbx and register each one of them, or should I manage them via a single trunk and let the dialplans make all jobs ??

Thank you

Usually you set an extension in FreePBX for each port, then set the programming for each port on the gateway and then they will all register with the same IP as the gateway

Check out the wiki entry I edited on getting an HT-503 gateway working:

https://wiki.freepbx.org/pages/viewpage.action?pageId=33293313

For FXO you normally create a single trunk and go with that. In case you need to group your lines you might need more trunks.