Outgoing route based on areacode

Hi,

I have 3 AsteriskNow (FreePBX) on HO + branch A & B, how to outgoing route based on areacode to branch A or B?

ie.

if user at HO dials to 022xxxxx then it should be routed to branch A and get the PSTN line from branch A.

if user at HO dials to 031xxxxx then it should be routed to branch B and get the PSTN line from branch B.

if either user at branch A or B dials to 021xxxxx then it should be routed to HO and get the PSTN line from HO.

could any body please help

thanks & regards
Winanjaya

Have you already linked the boxes with sip or iax? If not, Google, for entries on linking PBX/Asterisk boxes. When you get the boxes playing nice with one another,

Google “FreePBX outbound routes”. Also try downloading “PiaF without tears”. There are literally hundreds of pages of docs that explain exactly what you want to do.

Bill/W5WAF