Hairpin connect

Not sure if this has been asked before. I searched but cannot find it. What we have is FreePBX 12.0.41. We would like to have incoming DID’s come in and then immediately be sent via SIP over a trunk to another number, for example 315261xxxx comes in hits out freepbx box we then SIP that call to 400232xxxx@{trunkID}.

We currently do this now with hacked up FreeSwitch boxes but are looking to replace those with FreePBX.

Thanks in advance guys any questions feel free to ask…

This sounds like you want a sip router not a PBX. Perhaps kamailio