Call routing between 3 freepbx servers

Hello,

I have three FreePBX servers, They are all connected by IAX trunks. I need calls from fpbx1 to be routed to fpbx2, and then fpbx2 should forward them to fpbx3. How can I achieve this?
[ fpbx1 ] --IAX–> [ fpbx2 ] --IAX–> [ fpbx3 ]

Inbound calls or outbound calls ?
Is your goal to have PBX3 do all of the work and 1 and 2 just send over to 3 ?

Inbound Calls

and ?

Inbound calls mostly. The goal is for PBX3 to handle the main processing, yes — with PBX1 and PBX2 forwarding calls to PBX3 where possible.