Extensions.conf help

Hello all… What is wrong with my dialing extensions.conf file. When i try to dial a 10 digit number the box gives up after 4 digits. But if i take the _XXX part of the extensions.conf it works fine. but then of course i can’t dial my 3 digit extensions on my other box

[pstn-out]
exten=_1NXXNXXXXXX,1,Dial(IAX2/${VOIPTERM}/${EXTEN}
exten=_1NXXNXXXXXX,2,Busy
exten=_1NXXNXXXXXX,3,Hangup
exten => _XXX,1,Dial,IAX2/${VOIPTERM}/${EXTEN}
exten => _XXX,2,Congestion

FreePBX takes care of this for you, you should not have to write any Asterisk code.