Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!texbell!vector!telecom-gateway From: vrdxhq!pbs!PCRABLE@eecs.nwu.edu (VAX WIZZ) Newsgroups: comp.dcom.telecom Subject: Parsing Dialed Digits Message-ID: Date: 4 Oct 89 15:50:35 GMT Sender: news@vector.Dallas.TX.US Organization: PBS:Public Broadcasting Service, Alexandria, VA Lines: 28 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 429, message 4 of 12 Hi out there in telephone land... I'm hoping one of you telephone experts can help me with this problem. I am dealing with a string of numbers returned by a PBX with Call Data Reporting. What I need to do is divide the string into three separate numbers: area_code, exchange and extension. I can parse the digits fine for calls to the US, Canada, and Mexico. The problem comes with international calls. I know to look for the country code after the 011 international access code. (The access code is 011 in New York, right?) How can I tell whether to take the next two or the next three digits as the country code ? Any suggestions are welcome... ============================================================================== Phil Crable PPPPPPP BBBBBBB SSSSSS Public Broadcasting Service (PBS) P P B B S S Computer Services Dept. P P B B S 1320 Braddock Place PPPPPPP BBBBBBB SSSSSS Alexandria, VA 22314 P B B S P B B S S (703) 739-5052 P BBBBBBB SSSSSS ...!uunet!vrdxhq!pbs!pcrable ============================================================================== Don't believe anything you hear and only half of what you see...