These are 2 dialplans that work with Aastra SIP phones in North America. The first one being a good starting point and the second a more sophisticated approach.
"x+#|xx+*"or
"x+#|xx+*|[2-9]XX[2-9]XXXXXX|1[2-9]XX[2-9]XXXXXX|1XXXXXXXXXX"
"x+#|xx+*"or
"x+#|xx+*|[2-9]XX[2-9]XXXXXX|1[2-9]XX[2-9]XXXXXX|1XXXXXXXXXX"