I would like to set up FS to run as a small SBC.

Profile "internal" (nic em1) would be source for N asterisks that will register in FS. Some Asterisks should be trusted by IP (acl)

Profile "external" (nic em2) would connect in an SIP Provider.

So call coming from internal would routed to external gateway and vice-versa in dialplan.

To mimic external profile I added in internal

  <gateways>
    <X-PRE-PROCESS cmd="include" data="internal/*.xml"/>
  </gateways>

Asterisks are unable to register. I guess that the problem is internal gateway should be in directory instead of in sip_profile.

Thanks,

Valter