Received: by bu-cs.BU.EDU (5.58/4.7) id AA25608; Fri, 20 Jan 89 02:51:07 EST Message-Id: <8901200751.AA25608@bu-cs.BU.EDU> Date: Fri, 20 Jan 89 2:25:50 EST From: The Moderator Reply-To: TELECOM@bu-cs.BU.EDU Subject: TELECOM Digest V9 #22 To: TELECOM@bu-cs.bu.edu TELECOM Digest Fri, 20 Jan 89 2:25:50 EST Volume 9 : Issue 22 Today's Topics: Request For Area Code Program Written In C Here is the areacode program Re: Supplementary Code Numbers Re: 1+ dialing and new AC for SF Bay Area? Pacific Bell Calling Card Blunder [Moderator's Note: This is *part two* of the Digest for Friday 1-20. PT] ---------------------------------------------------------------------- Date: Thu, 19 Jan 89 11:15:28 EST From: Carl Moore (VLD/VMB) To: telecom-request@bu-cs.bu.edu Subject: Request For Area Code Program Written In C Date: 13 Jan 89 17:04:49 GMT [Moderator's note: Carl wrote me to say he tried to reach Mike Stansberry but was unsuccessful. So the program is being presented here; we can all benefit from it. Carl stressed to me in a note that he did NOT write the program; but was merely passing it along.] In article , cmoore@BRL.MIL (VLD/VMB) writes: > A while back, I received an area code program written in C. It has a > few updates from me, mainly for new areacodes added in 1988. > > As for NNX (or NXX, if the area in question has N0X/N1X prefixes), > you could check on the AT&T V&H tape via AT&T Long Lines. As the > Telecom moderator states, this is subject to rapid updates (not to > mention having a LOT of information to begin with). [Mike Stansberry responded] If it wouldn't be any trouble, I would appreciate a copy of the area code program you have written in C. Probably the best way would be to post it to the newsgroup. Other people may be interested also. Thanks, Mike ------------------------------ Date: Thu, 19 Jan 89 11:13:26 EST From: Carl Moore (VLD/VMB) To: telecom-request@bu-cs.bu.edu Subject: areacode program /* Received from Brint Cooper */ #include #include /* areacode.c Translated from AREACODE.MAC. Ken Yap (ken@rochester.arpa, ..!rochester!ken). Compile: cc -O -o areacode areacode.c Run: areacode nnn nnn ... AREACODE.MAC Ver 1.3 as of November 20, 1984 Notes by Carl Moore: Modified 26-28 May 1988 to account for 305/407 split in Florida, 303/719 in Colorado, 617/508 in Massachusetts; also added note about suburbs in area 202. Ver. 1.3 added LA suburbs area code 818, added periods to messages (why not?), deleted double entry for area code 809, removed ungrammatical comma from ASCII string at MSG2: and added a space before the `$' in MSG2: so the first space in messages could be removed, providing an extra space for text without changing the SCAN3: routine's 58-character bias. This version provided for M80/L80 devotees courtesy of Irv Hoff's XLATE5.COM to prevent undue anxiety trying to find a copy of ASM.COM. It has not been tested, so bug fixes from Z80-land are more than welcome. - Bruce Morgen Ver. 1.2 added 718 area code for New York City, and fixed bug in area code 604-804 Harry Kaemmerer Ver. 1.1 update of area codes for new U.S. areas, Mexico, & Eastern Canada. Harvey G. Lord, Storrs, CT 06268 Ver. 1.0 - January 2, 1981 by Kelly Smith AREACODE is used to display the region and state, specified by the user...very handy, when someone leaves a area code number on a CBBS, but no city or state reference. Simple enough to use, just type AREACODE nnn (where 'nnn' is a three digit area code), and in return, you get a geographical region by city(s), and state. Sorry if your particular city is not represented, and feel free to add it as required... ** Entries must be in sorted order because binary search is used. */ char *areacode[] = { "011the International Access Code", "170Northwest Mexico", "190Mexico City, Mexico", "201Hackensack, Morristown, and Newark, New Jersey", "202Washington, District of Columbia (also suburbs)", "203all regions, Connecticut", "204Manitoba, Canada", "205all regions, Alabama", "206Seattle, Tacoma, and Vancouver, Washington", "207all regions, Maine", "208all regions, Idaho", "209Fresno and Stockton, California", "212New York City (Manhattan and Bronx) New York", "213Los Angeles, California", "214Dallas, Texas", "215Allentown, Chester, and Philadelphia, Pennsylvania", "216Akron, Cleveland, Massillon, and Youngstown, Ohio", "217Casey and Springfield, Illinois", "218Duluth, Minnesota", "219Gary, Hammond, Michigan City, and South Bend, Indiana", "301all regions, Maryland", "302all regions, Delaware", "303Denver, Colorado", "304all regions, West Virginia", "305Fort Lauderdale, Key West, and Miami, Florida", "306Saskatchewan, Canada", "307all regions, Wyoming", "308North Platte and Scottsbluff, Nebraska", "309Peoria, Illinois", "312Chicago, Illinois", "313Detroit, Adrian, and Ann Arbor, Michigan", "314Saint Louis, Missouri", "315Syracuse and Utica, New York", "316Dodge City and Wichita, Kansas", "317Indianapolis and Kokomo, Indiana", "318Lake Charles and Shreveport, Louisiana", "319Dubuque, Iowa", "401all regions, Rhode Island", "402Lincoln and Omaha, Nebraska", "403Alberta, Canada", "404Atlanta and Rome, Georgia", "405Oklahoma City, Oklahoma", "406all regions, Montana", "407Orlando and West Palm Beach, Florida", "408San Jose and Sunnyvale, California", "409Galveston, Texas", "412Pittsburgh, Indiana, and Rochester, Pennsylvania", "413Springfield, Massachusetts", "414Green Bay, Milwaukee, and Racine, Wisconsin", "415Oakland and San Francisco, California", "416Toronto, Ontario, Canada", "417Joplin and Springfield, Missouri", "418Quebec, Quebec, Canada", "419Toledo, Ohio", "501all regions, Arkansas", "502Louisville, Paducah, and Shelbyville, Kentucky", "503all regions, Oregon", "504Baton Rouge and New Orleans, Louisiana", "505all regions, New Mexico", "506New Brunswick, Canada", "507Albert Lea and Rochester, Minnesota", "508Framingham and New Bedford, Massachusetts", "509Pullman, Spokane, and Walla Walla, Washington", "512Austin, Corpus Christi, and San Antonio, Texas", "513Cincinnati and Dayton, Ohio", "514Montreal, Canada", "515Des Moines and Mason City, Iowa", "516Hempstead, New York", "517Lansing and Saginaw, Michigan", "518Albany, Greenwich, and Schenectady, New York", "519London, Ontario, Canada", "525the Country and City code for Mexico City, Mexico", "601all regions, Mississippi", "602all regions, Arizona", "603all regions, New Hampshire", "604British Columbia, Canada", "605all regions, South Dakota", "606Ashland and Winchester, Kentucky", "607Elmira, Ithaca, and Stamford, New York", "608Beloit and Madison, Wisconsin", "609Atlantic City, Camden, and Trenton, New Jersey", "612Minneapolis and Saint Paul, Minnesota", "613Ottawa, Ontario, Canada", "614Columbus, Marietta, and Newark, Ohio", "615Chattanooga and Nashville, Tennessee", "616Battle Creek, Cadillac, and Grand Rapids, Michigan", "617Boston, Massachusetts", "618Alton, Mount Vernon, and Centralia, Illinois", "619San Diego, Palm Springs, and the Imperial Valley, California", "700Value Added Special Services, per individual carrier", "701all regions, North Dakota", "702all regions, Nevada", "703Fredericksburg, Roanoke, and Winchester, Virginia", "704Charlotte and Salisbury, North Carolina", "705North Bay, Ontario, Canada", "707Eureka, Napa, and Santa Rosa, California", "708Aurora, Wheaton, Evanston, northeastern Illinois (as of 11-89)", "709Newfoundland, Canada", "712Council Bluffs, Iowa", "713Houston, Texas", "714Orange and Anaheim, California", "715Eau Claire and Wausau, Wisconsin", "716Buffalo, Niagara Falls, and Rochester, New York", "717Harrisburg, Scranton, and Wilkes-Barre, Pennsylvania", "718New York City (Queens, Brooklyn and Staten Island) NY", "719Colorado Springs, Colorado", "800In-WATS Toll Free Calling", "801all regions, Utah", "802all regions, Vermont", "803all regions, South Carolina", "804Charlottesville, Norfolk, and Richmond, Virginia", "805Bakersfield, Ventura, and Simi Valley, California", "806Amarillo, Texas", "807Thunder Bay, Ontario, Canada", "808all regions, Hawaii", "809Bahamas, Bermuda, Puerto Rico, and the Virgin Islands", "812Evansville, Indiana", "813Avon Park, Fort Myers, and Winter Haven, Florida", "814Altoona, Erie, and Punxsutawney, Pennsylvania", "815La Salle, Joliet, and Rockford, Illinois", "816Kansas City and Saint Joseph, Missouri", "817Fort Worth, Temple, and Waco, Texas", "818the suburban area north of Los Angeles, California", "819Malartic and western Quebec, Canada", "900Mass Calling Value Added Information Services", "901Memphis, Tennesee", "902Prince Edward Island and Nova Scotia, Canada", "904Jacksonville, Florida", "906Sault Ste. Marie, Michigan", "907all regions, Alaska", "912Waycross and Savannah, Georgia", "913Ottawa and Topeka, Kansas", "914Monroe, Mount Vernon, and Poughkeepsie, New York", "915El Paso, Texas", "916Sacramento and South Tahoe, California", "918Muskogee and Tulsa, Oklahoma", "919Greenville, Raleigh, and Williamston, North Carolina" }; char *where(code) char *code; { register int i, high, low, mid; int strncmp(); low = 0; high = sizeof(areacode) / sizeof(areacode[0]); while (low <= high) { mid = (low + high) / 2; i = strncmp(code, areacode[mid], 3); if (i < 0) high = mid - 1; else if (i > 0) low = mid + 1; else return (areacode[mid] + 3); } return ("not a valid area code"); } area(code) char *code; { char *where(); if (!isdigit(code[0]) || !isdigit(code[1]) || !isdigit(code[2]) || code[3] != '\0') printf("Area code %s is not a valid area code!\n", code); else printf("Area code %s is %s. \n", code, where(code)); } main(argc, argv) int argc; char *argv[]; { if (argc < 2) { printf("Usage: areacode nnn nnn ...\n"); exit(1); } for (--argc, ++argv; argc > 0; --argc, ++argv) area(*argv); } ------------------------------ To: att!comp-dcom-telecom From: harvard!gatech!cbnews.ATT.COM!alh (Al Housel) Subject: Re: Supplementary Code Numbers Date: 19 Jan 89 19:54:13 GMT Sometime ago I read about a number that you could call to determine the long distance carrier that you had assigned to your telephone service. When this number was called you received a voice message indicating the carrier. Would someone post the number again. Thanks. Does anyone know an easy way of getting an update on the tariff filings filed by the various long distance and local offices ? An address, database, telephone number, etc. would be appreciated. Thanks in advance Al Housel AT&T Bell Laboratories ------------------------------ To: encore!linus!comp-dcom-telecom@seismo.css.gov From: dts@cloud9.Stratus.COM (Daniel Senie) Subject: Re: 1+ dialing and new AC for SF Bay Area? Date: 20 Jan 89 04:26:43 GMT In article , wales@CS.UCLA.EDU writes: > My parents (in San Mateo, CA -- a suburb of San Francisco -- "415" area > code) told me that, starting in February, they will have to start dial- > ing "1" before area codes. (Up till now, they've just dialed the area > code and the seven-digit number.) > When New York City was running out of numbers, they started requiring 1 + for long distance. They then proceeded to use area code style numbers for prefixes. That makes it impossible to sense area codes by the second digit dialed. The phone companies seem to want to get rid of the automatic area code sensing just in case they need to expand exchanges into the area code style numbers. -- Daniel Senie UUCP: harvard!ulowell!cloud9!dts Stratus Computer, Inc. ARPA: anvil!cloud9!dts@harvard.harvard.edu 55 Fairbanks Blvd. CSRV: 74176,1347 Marlboro, MA 01752 TEL.: 508 - 460 - 2686 ------------------------------ Date: Thu, 19 Jan 89 22:32:57 -0800 From: mcb@tis.llnl.gov (Michael C. Berch) Subject: Pacific Bell Calling Card Blunder To: telecom@bu-cs.bu.edu Recently I received in the mail a rather curious packet from Pacific Bell: a new Calling Card (made of paper, not a "credit card" with mag strip like the last one), and a letter of explanation, from which I quote: "YOUR REPLACEMENT PACIFIC BELL CALLING CARD IS HERE! In response to a Federal Court ruling, Pacific Bell has decided to remove the International Number from its Calling Card. Various long-distance companies have arrangements for international calling. Please contact your long-distance company ... [etc.]" I have a couple of questions about this, which will appear below, but the main reason for this message is the following: "We've Added Something New to Make Your Calling Card Even More Convenient... Notice those four extra digits at the end of your phone number? They're your own Special Access Code. You'll need this whenever you use your Calling Card to make a call. Now that your Special Access Code is right on your card, you'll never have to worry about forgetting it." MY GOD! I nearly fainted after reading this. There goes five years of anti-fraud progress out the window in one fell swoop of marketing hype. I looked at it again to make sure I was really seeing it. Yes, they printed the PIN right there on the card. If a bank did that with an ATM card, it would probably make the front page of the newspapers. What PINHEADS!! Every time you think that some people are beginning to understand some security issues, some bozo in the marketing department blows it for everybody. As I have already destroyed the offending card and plan to cancel it (I have been using it regularly for AT&T long distance; it seemed to work just fine) and replace it with an AT&T card, can someone explain what the practical differences, if any, are between the AT&T card and a calling card issued by a telco? Also, what was the issue with respect to the international callback number? I only used it a couple of times, from Japan in 1985, and more recently have used AT&T USA DIRECT >from Germany and the UK, and recommend it highly. Michael C. Berch mcb@tis.llnl.gov / uunet!tis.llnl.gov!mcb / ames!lll-tis!mcb ------------------------------ End of TELECOM Digest *********************