you have to make such a dial plan that you are able to convert any dialed number to a "canonical" format. you then can use the canonical prefixes for gw selection. -- juha