IAX trunk

I am trying to connect to asterisk boxes so when i dial a number from an analog phone connected to one box it will call the other asterisk box. This is all working over an E1 connection between the two asterisk boxes.

How can get them to dial each other over the LAN. I changed the iax.conf but asterisk still trying to connect to the other box through the E1. Is there something else I would have to change?

Sorry I’m quite new to this and the E1 link was already setup. Appreciate your help.

I figured it… Had to change the extension.conf (the obvious one!!).