That is very easy indeed. Just need to work with the lampattern and lamreplace codes on the PSTN.
Forget asbout using area code and country code. They only create confusion:
1)Take out the country setting if it is cero. Not the country code, the country setting. Use 1 for Canada,everywhere
2) Delete the country code and area code.
3) Put the country code and area code on the lampattern on the PSTNTG groups. Lot easier and more flexible.
On the lamreplace of each entry, relace what the quintum deleted on the previus step.
If you hae any questions, write me and I will provide a sample