6 digit extensions in Asterisk

Hi All:

We would like to implement 6 digit extensions within asterisks

for example Paul at ext: 500100

Our problem is that we are using AMP/ Asterisks and all our 6 digit extensions appear as TRUNKS

Is there is setting in the config somewhere that limits the length of an extension number

Please Advise