Trunks IAX - Two servers

Hi, i need some help.

I have two servers FreePBX with a IAX trunks between them. One has the 4XX extensions and the other has the 1XX extensions.
The users can do calls but the problem is when a person calls to the out line, the ivr catch the call telling that have to deal the extension and the extension that the person inserts is the extension of the other server. The ivr gives a message telling that the extension is incorrect.

Can you help me?