Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rutgers!texbell!vector!telecom-gateway From: jjd@necis.nec.com (Jeff DeSantis) Newsgroups: comp.dcom.telecom Subject: Re: Parsing Dialed Digits Message-ID: Date: 20 Oct 89 14:13:45 GMT Sender: news@vector.Dallas.TX.US Reply-To: jjd@necis.UUCP (Jeff DeSantis) Organization: NEC Information Systems, Acton, MA Lines: 20 Approved: telecom-request@vector.dallas.tx.us X-Submissions-To: telecom@eecs.nwu.edu X-Administrivia-To: telecom-request@vector.dallas.tx.us X-TELECOM-Digest: volume 9, issue 466, message 9 of 11 In article vrdxhq!pbs!PCRABLE@eecs. nwu.edu (VAX WIZZ) writes: > How can I tell whether to take the next two or the next three >digits as the country code ? It depends on the first two digits. If the first two digits are a valid country code, then you do not have to look at the third digit. For example, if the first two digits are 44, you know you have a call to the United Kingdom. Another approach would be to consider all country codes to consist of three digits. In this case all 44X (440-449) country codes would be calls to the United Kingdom. Either approach requires maintaining a list of country codes against which you can verify the call's country code.