Maximum number of digits dialed is insufficient

It seems the maximum number of digits dialed for PSTN gateway is only 10 digits. This is a problem for me since some area codes in our country is more than 2 digits. So if I dial 9 + area code + 7 digits telephone number, the system tends to outpulse after I dial the 10th digit.