home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / fax-faq / mgetty+sendfax+vgetty < prev    next >
Internet Message Format  |  2002-07-18  |  50KB

  1. Message-ID: <mgettyfaq_1026968401@ferret.ocunix.on.ca>
  2. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!torn!qcarhaaa.nortelnetworks.com!bcarh189.ca.nortel.com!zcarh46f.ca.nortel.com!ferret.ocunix.on.ca!not-for-mail
  3. Date: 18 Jul 2002 05:00:04 GMT
  4. Supersedes: <mgettyfaq_1025067601@ferret.ocunix.on.ca>
  5. Expires: 22 Aug 2002 05:00:01 GMT
  6. Subject: Mgetty+Sendfax with Vgetty Extensions (FAQ)
  7. Newsgroups: comp.dcom.fax,comp.dcom.modems,comp.answers,news.answers
  8. Followup-To: poster
  9. From: Lichtenwalder@ACM.org
  10. Summary: Information about mgetty+sendfax, a Unix getty replacement
  11. Keywords: class2 fax mgetty sendfax modem digifax
  12. Approved: news-answers-request@mit.edu
  13. Lines: 1156
  14. Xref: senator-bedfellow.mit.edu comp.dcom.fax:32929 comp.dcom.modems:304257 comp.answers:50696 news.answers:234127
  15.  
  16. Archive-name: fax-faq/mgetty+sendfax+vgetty
  17. Last-modified: 1998/03/12
  18. URL: http://www.webforum.de/mgetty-faq.txt
  19. Maintainer: Klaus Lichtenwalder <Lichtenwalder@ACM.org>
  20.  
  21.               ``mgetty+sendfax''
  22.         Answers to Frequently-Asked Questions
  23.        regarding Gert Doering's Fax-enabled getty replacement,
  24.        with Klaus Weidner and Marc Eberhard's voice extensions
  25.  
  26.              Klaus Lichtenwalder
  27.                 Lichtenwalder@ACM.org
  28.  
  29.         Posted by: Chris Lewis, clewis@ferret.ocunix.on.ca
  30.  
  31. ------------------------------
  32.  
  33. Subject: Introduction
  34.  
  35. This document attempts to answer the most frequently asked questions
  36. about mgetty+sendfax/vgetty, Gert Doering's fax-enabled getty
  37. replacement with Klaus Weidner's and Marc Eberhard's voice processing
  38. extensions.
  39. The official release of mgetty is now (at least) 1.0. Gert adopted
  40. the numbering scheme of the Linux kernel, with even release numbers (1.0,
  41. 1.2,...) being production version and uneven numbers being development
  42. versions. Pls note that in 1.0 there's no vgetty support as that is
  43. being revamped. If you need voice, you have to go for older versions or,
  44. far better, for the newer development tree.
  45.  
  46. Subject: Japanese Version
  47.  
  48. I'm glad I can announce a Japanese Version made by chie nakatani
  49. <jeanne@mbox.kyoto-inet.or.jp>. You can find it at
  50. <URL:http://epsenewsc.gee.kyoto-u.ac.jp/JF/JF-ftp/euc/mgetty_j.euc>
  51.  
  52. Subject: Legalese
  53.  
  54. This document is copyrighted by the FAQ Maintainer,
  55. K.Lichtenwalder. It may not be reproduced in part or in full without
  56. the written consent of the FAQ Maintainer.
  57.  
  58. ------------------------------
  59.  
  60. Subject: Table of Contents
  61.  
  62. Part I: "Deciding whether to use it" questions
  63.  What is it?
  64.  What does it look like when it runs?
  65.  What do I need to use mgetty+sendfax/vgetty?
  66.  What other software do I need?
  67.  What terms cover my use of mgetty+sendfax/vgetty?
  68.  Where can I get mgetty+sendfax?
  69.  How can I integrate it into an office environment?
  70.  What's going on with those Class 1 modems?
  71.  What modems are recommended?
  72.  Where is the list archived?
  73. Part 2: Other questions
  74.  How can I contact mgetty/vgetty users and developers?
  75.  What image file formats can sendfax send?
  76.  Why doesn't mgetty accept other file formats besides G3?
  77.  Why doesn't mgetty use the modem's autoanswer capabilities?
  78.  Why mgetty ignores /dev/tty* dialin, /dev/cua* dialout conventions:
  79.  Troubleshooting questions & answers
  80.  Programs generating "invalid" Postscript that can't converted
  81.       to the G3 format for sendfax
  82.  My ZyXEL doesn't work right after a ROM upgrade: What's wrong?
  83.  When is mgetty actually running? (i.e. what can mgetty control?)
  84.  The user's shell doesn't get killed after the line drops
  85.  AutoPPP appears in "who" listing
  86.  Things to think of if using AutoPPP, or, as you might call it, ppp connections
  87. Part 3: Compatibility Issues
  88.  Suspicious fax machines
  89. Part 4: Compiling, installing and using vgetty
  90.  Compiling vgetty
  91.  US Robotics voice format converter
  92.  
  93. ---------------------------
  94.  
  95. Subject: Part I: "Deciding whether to use it" questions
  96.  
  97. ------------------------------
  98.  
  99. Subject:  What is it?
  100. From: steve@work.bellingham.wa.us (Steve Work)
  101.  
  102. Mgetty+sendfax is a collection of programs to send and receive faxes
  103. in a unix environment using a class 2.0 or 2 (they're different)
  104. faxmodem.  vgetty is an extension to mgetty, distributed with it, that
  105. implements incoming voice call handling for certain voice-capable
  106. modems, with new ones added regularly, if specs are available.
  107.  
  108. More specifically, the program `mgetty' allows you to use a class 2.0
  109. or 2 fax modem for receiving faxes and handling external logins
  110. without interfering with outgoing calls.  `sendfax' is a standalone
  111. program which sends fax files.  `vgetty' is an extended version of
  112. mgetty that can answer the telephone like an answering machine and
  113. record a voice-mail message (if it finds one), or perform `mgetty's
  114. fax or data call handling otherwise.  The mgetty+sendfax distribution
  115. includes vgetty and a good-sized gob of utility programs that help you
  116. manage faxes and voice messages.
  117.  
  118. ------------------------------
  119.  
  120. Subject:  What does it look like when it runs?
  121. From: steve@work.bellingham.wa.us (Steven Work) and the distribution
  122. CC: clewis@ferret.ocunix.on.ca (Chris Lewis)
  123.  
  124. Like a smarter `getty'.  getty is the program that manages the
  125. first step of the login procedure on a Unix computer; when used
  126. with a modem, it watches for an incoming call and (ordinarily)
  127. prints the "login:" prompt (and reads the username, and passes off
  128. to "login").
  129.  
  130. Unlike traditional versions of getty or uugetty, which will put a
  131. modem into auto-answer mode, mgetty does not.  When an incoming call
  132. occurs, mgetty sees the "RING"s when they occur.  When they do occur,
  133. mgetty tells the modem to answer, and the modem will tell mgetty what
  134. kind of connection happens.  If it is FAX, mgetty will receive the
  135. FAX.  If data, mgetty prompts for a userid, then hands the open line
  136. off to login for a normal data login.
  137.  
  138. Note that it's the modem's job to distinguish a FAX call from a data
  139. call.  Not all fax modems can do this, and if yours _can't_ there is no way
  140. for mgetty to do this for it.  mgetty can be used with modems that
  141. cannot distinguish a fax call from a data call, but you must tell it
  142. ahead of time what type of call to expect.
  143.  
  144. mgetty is also configurable to select programs other than login for
  145. special connections (eg: uucico, fido or other programs) depending
  146. on the login userid.
  147.  
  148. mgetty also supports caller-id and can deny connections based on
  149. originating telephone number.
  150.  
  151. vgetty is an extension to mgetty that works with voice-capable
  152. modems to provide additional call-handling capabilities.  When the
  153. modem reports a RING, vgetty has the modem pick up the line and
  154. play a voice message (the greeting).  If the modem detects a data or
  155. fax calling tone, it reports this back to vgetty with special codes
  156. (DLE-sequences) which causes vgetty to switch to either mode. Else
  157. voice mode is used.
  158.  
  159. If instead the modem hears nothing following the greeting (a
  160. certain level of silence that continues for a certain number of
  161. seconds) it assumes the caller is a data modem and attempts a data
  162. connection.
  163.  
  164. vgetty implements the normal answering-machine functions of
  165. remote message playback as well; its operation is driven from shell
  166. scripts, so you can extend it to a full voice-mail jail if you
  167. wish.  (This description of voice modem behavior applies to the
  168. ZyXELs; I [steve@work.bellingham.wa.us] assume other voice modems
  169. are similar.)
  170.  
  171. For an example on how a voice mail system looks like, there is the
  172. voice_mail.sh script in voice/scripts from Marc Schaefer. Since the voice
  173. shell is independent of the real modem hardware, it works on all supported
  174. modems, not just ZyXELs. The hardware drivers hide the modem specific stuff,
  175. so that the voice shell can provide a general interface that is completely
  176. modem independant. Of course the reliability of the whole systems relies on
  177. the reliability of the used voice modem. And there are quite notably
  178. differences between different modems.
  179.  
  180. vgetty is intended for people who want to share a phone line for
  181. data and voice use, with the main focus being voice calls. It is
  182. *NOT* intended for a dialup system that occasionally gets a voice
  183. call, since some modems are confused by hearing a recorded voice
  184. message and won't connect.
  185.  
  186. If you have distinctive ring, you still can have one line, but vgetty can
  187. detect the type of the call from the RING message and switch directly
  188. to data/fax mode. In countries where distinctive ring is supported,
  189. you can have dialup and voice on the same line without problems.
  190.  
  191. Voice extensions were originally written by Klaus Weidner
  192. (klaus@snarc.greenie.muc.de) but are now maintained by Marc Eberhard
  193. (Marc.Eberhard@Uni-Duesseldorf.DE).  Direct questions about them to that
  194. address.
  195.  
  196. More from the distribution (some edits):
  197.  
  198. This is what you can do with `sendfax' if you have a standard class
  199. 2.0 or 2 fax modem:
  200.  
  201. * send faxes directly or using shell scripts (easily integrated into
  202.   other applications).
  203.  
  204. * do "fax polling", this means you can call the weather station and
  205.   get them to send you a fax containing the current weather map.
  206.   (Not all modem manufacturers implement this feature in their
  207.   modems!)
  208.  
  209. * create a "fax queue", outgoing faxes get sent automatically, the
  210.   user is informed by mail about the result.
  211.  
  212. `mgetty' allows you to use a single modem line for receiving calls
  213. and dialing out.
  214.  
  215. * `mgetty' knows about "smart" modems, and will make sure that the
  216.   modem is always in a defined state (specific modem initialization
  217.   possible)
  218.  
  219. * Incoming calls are answered manually (`RING' -> `ATA' ->
  220.   `CONNECT') instead of using auto-answer (`ATS0=1'), this way the
  221.   modem won't pick up the phone when the machine is down or logins
  222.   are not allowed.
  223.  
  224. * mgetty completely replaces getty and/or uugetty.  Like uugetty,
  225.   supports lock files in a fashion compatible with almost all known
  226.   versions of UUCP (HDB/BNU, SVR4, V7, Taylor in various flavours).
  227.   uugetty has some features mgetty doesn't support; see "How does
  228.   mgetty differ from uugetty?" below.
  229.  
  230. * mgetty supports System V style gettydefs terminal configurations.
  231.  
  232. * mgetty can receive class 2 faxes (if your modem supports it).
  233.  
  234. * mgetty knows about incoming FidoNet calls.
  235.  
  236. * mgetty has extensive logging / debugging features
  237.  
  238. * do "fax poll sending", that is, you can setup your machine as fax
  239.   poll server, to send some fax pages to "fax poll" callers. (Send
  240.   informations about your system, the current wheather map, ...). Be
  241.   warned, even less modems support this feature.
  242.  
  243. * mgetty can selectively refuse calls based upon CallerID, if your
  244.   modem supports it, and you're subscribed to the service. CallerID
  245.   is also logged.
  246.  
  247. * mgetty has facilities to allow you to refuse incoming FAXes when
  248.   available disk space is low.
  249.  
  250. * mgetty knows about incoming PPP calls, and can hand them off
  251.   to the PPP-daemon, without requiring a login/password sequence. This
  252.   feature is also known as AutoPPP
  253.  
  254. vgetty inherits all of mgettys features, and offers some additional
  255. ones:
  256.  
  257. * behaves like a normal answering machine for human callers
  258.  
  259. * automatic fax reception when a T.30 calling tone is detected
  260.  
  261. * If the caller isn't a human or fax, a data connect is attempted,
  262.   if this is successful, the caller will get a normal login
  263.  
  264. * does not interfere with dialouts
  265.  
  266. * remote playback of messages via a DTMF code
  267.  
  268. * toll saver -- if there are new messages, pick up the phone
  269.   earlier, this way you can hang up in time to avoid a useless call
  270.  
  271. * message light - the autoanswer LED of your modem (if it has one)
  272.   is turned on if there are new messages
  273.  
  274. * easy playback - on some modems, you can play back the new messages
  275.   just by pressing DATA/VOICE
  276.  
  277. * using a speech synthesizer is possible - add the date and time to 
  278.   messages (not included by default). The scripts show how to use a 
  279.   speech synthesizer like rsynth, but it is not included in the 
  280.   package. To use this feature, you need a voice modem for that; 
  281.   a converter from the pvf format to the rmd (raw modem data) format
  282.   exists. This is not true for all supported modems.
  283.  
  284. * voice conversion utilities - play messages on /dev/audio
  285.   (Not for all supported modems, some voice modems use a proprietary
  286.   format)
  287.  
  288. ------------------------------
  289.  
  290. Subject:  What do I need to use mgetty+sendfax/vgetty?
  291. From: steve@work.bellingham.wa.us (Steve Work), and distribution
  292. CC: clewis@ferret.ocunix.on.ca (Chris Lewis)
  293.  
  294. Several things.  A computer running some (most) variants of the Unix
  295. operating system.  (The operating system must support termio.h or
  296. termios.h; this generally rules out "pure BSD" systems.)  For support
  297. of dial-in data connections (a la "getty"), you need a modem (probably
  298. one somewhat compatable with the H*yes "AT" command set).  For sending
  299. and receiving faxes, you need a modem that understands the Class 2 (or
  300. 2.0) fax command set.  For voice processing, you need a modem that is
  301. capable of doing voice.  
  302.  
  303. Vgetty currently supports Dolphin, Dr. Neuhaus Cybermod, Elsa, IS 101
  304. compatible, Rockwell, Sierra, US Robotics and all ZyXEL modems.
  305.  
  306. The Cirrus Logic, ISDN4Linux and UMC drivers are basically working,
  307. but they need to be updated to the new internal interface between the
  308. generic vgetty parts and the hardware dirver. This change was
  309. necessary to be strictly ANSI C compatible. Vgetty now compiles with
  310. gcc -Wall -pedantic without a warning.
  311.  
  312. Mgetty has been successfully installed and run on at least the
  313. following systems, probably more by the time you read this list:
  314.  
  315.       SCO Unix 3.2.1 (ODT 1.0)           (very well tested)
  316.       SCO Unix 3.2.4 (ODT 2.0 + 3.0)     (very well tested)
  317.       SCO Open Server 5.0         (Gert uses it ...)
  318.       Linux 0.99pl1 .. 2.1               (very well tested)
  319.       ISC Unix 3.0                       (tested)
  320.       SVR4 Unix                          (well tested)
  321.       AT&T 3B1 3.51m                     (well tested)
  322.       HP-UX 8.x                          (well tested)
  323.       AIX 3.2.5, 4.1.4, 4.2              (mgetty, not vgetty)
  324.       SunOS 4.1.x                        (well tested)
  325.       SunOS 5.x                          (at least with USR 33.6
  326.                         Misha Pavlov <oj@interport.net>)
  327.       NetBSD / FreeBSD                   (works)
  328.       BSDI v1.1                          (under work, not done --
  329.                                                     greg@wwa.com)
  330.  
  331. It should be possible to run mgetty on any other Unix with
  332. `termio.h' or `termios.h'. For best results, `select(S)' or
  333. `poll(S)' are recommended, but there's a workaround. (Warning: for
  334. Unix SVR3.1 or earlier, *do not use poll()*, it will not work on
  335. tty devices.) 
  336.  
  337. Up to now, it has been successfully used with at least the following
  338. modems, and probably more:
  339.  
  340. Here's a short list of often used modems. For an up to date list check
  341. with doc/modems.db from the distribution:
  342.  
  343.   * Aceex 1496
  344.   * Boca V.32bis
  345.   * Creatix LC 288 FC
  346.   * Practical Peripherals PM14400FXMT
  347.   * TKR Terbo Line
  348.   * U.S. Robotics Courier V.34 Fax
  349.   * U.S. Robotics Sportster V.34 28.800 Fax Modem
  350.   * Zoltrix Platinum Series 14.4
  351.   * ZyXEL 1496E+, always recommended
  352.  
  353. Mgetty *should* work with all class 2 faxmodems. Maybe the DC2
  354. character sent at the beginning of a page by `faxrec.c' must be
  355. changed to XON, for old class 2 modems (implementing very old drafts
  356. of the standard).  Unfortunately, each class 2 modem can be a tiny bit
  357. different.  
  358.  
  359. Early USR fax modems did a bad job of conforming to the Class 2.0 (and
  360. maybe Class 2) operating standards.  Reports are that current USR
  361. modems (Sportster and Courier) work without excuses.
  362.  
  363. ------------------------------
  364.  
  365. Subject:  What other software do I need?
  366. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  367. CC: gert@greenie.muc.de (Gert Doering)
  368.  
  369. For data only, no other software is needed.
  370.  
  371. mgetty itself can only send or receive G3 (raster) format.  However,
  372. the distribution includes tools to convert raw G3 files to or from the
  373. format used by "pbmplus", the Portable Bitmap Toolkit.  The pbmplus
  374. formats support (or are supported by) most raster-image programs and
  375. file formats generally used in the Unix world.  pbmplus is available
  376. at this URL (among others): 
  377.  
  378.   ftp://sunsite.unc.edu/pub/X11/contrib/pbmplus10dec91.tar
  379.  
  380. The mgetty+sendfax distribution contains a patch to fix pbmplus's
  381. broken pbmtog3 converter -- using the unpatched pbmtog3 can cause
  382. errors during transmission. 
  383.  
  384. GhostScript, the free Postscript page description language
  385. interpreter, can convert PostScript to G3.  Ghostscript is available
  386. at this URL (among others): 
  387.  
  388.   ftp://sunsite.unc.edu/pub/gnu/applications/ghostscript-2.6.1.tar.gz
  389.      (also check out patch files in same directory.)
  390.  
  391. Hp2pbm, available from ftp:// ??, can convert text and PCL (HP
  392. Laserjet language) to G3 or PBM.  It also contains programs for
  393. converting PBM to PostScript, PCL and Epson printers.
  394.  
  395. PBMPLUS has converters from most existing raster formats or ASCII
  396. to PBM, and from PBM to most raster formats.  You'd use the pbm2g3
  397. and g32pbm utilities in mgetty to convert between PBM and G3.
  398.  
  399. In essence, you can run with hp2pbm or PBMPLUS alone.  With GhostScript,
  400. you also need PBMPLUS or hp2pbm to convert ASCII (used for page headers
  401. etc.) to G3.
  402.  
  403. Mgetty+sendfax includes some voice processing utilities in the voice/
  404. subdirectory. These tools (pvftools) can convert ZyXEL, Rockwell and
  405. ISDN4Linux voice formats. Other formats are coming. People reported
  406. success in translating GSM encoded voice formats, so support for that
  407. will also be added in the future. This means that vgetty currently
  408. supports the three above and support for more modems is planned.
  409.  
  410. ------------------------------
  411.  
  412. Subject:  What terms cover my use of mgetty+sendfax/vgetty?
  413.  
  414. >From the distribution:
  415.  
  416. "The mgetty+sendfax package is Copyright (c) 1993 Gert Doering. You
  417. are permitted to do anything you want with this program -
  418. redistribute it, use parts of the code in your own programs, ...,
  419. but you have to give me credit - do not remove my name.
  420.  
  421. "If the program works for you, and you want to honour my efforts,
  422. you are invited to donate as much as you want.
  423.  
  424. "If you make money with mgetty, I want a share. What I mean by that
  425. is: it's perfectly OK with me to get paid for mgetty installation
  426. or support, but if you want to actually sell mgetty, or pack mgetty
  427. with a modem and sell it as "unix fax package", contact me first.
  428.  
  429. "*WARNING:* This package is still BETA software. Use it at your own
  430. risk, there is *no* warranty. If it erases all the data on your
  431. hard disk, damages your hardware, or kills your dog, that is
  432. entirely your problem. Anyway, the program works for me and quite a
  433. lot of other people."
  434.  
  435. Marc put the voice part under the GPL. To avoid misunderstandings,
  436. Gert decided to not include the GPL text into the distribution,
  437. though. The copyright for the voice stuff is GPL.
  438.  
  439. ------------------------------
  440.  
  441. Subject:  Where can I get mgetty+sendfax?
  442.  
  443. The home page is at http://www.leo.org/~doering/mgetty/
  444.  
  445. The official release sites are these URLs:
  446.  
  447.   ftp://ftp.leo.org/pub/comp/networking/communication/modem/mgetty
  448.   ftp://sunsite.unc.edu/pub/Linux/system/Serial/mgetty+sendfax*
  449.   ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin/... (or so)
  450.   ftp://linux.nrao.edu/pub/packages/mgetty+sendfax/
  451.  
  452. ------------------------------
  453.  
  454. Subject: How can I integrate it into an office environment?
  455. From: Klaus Lichtenwalder <Lichtenwalder@ACM.org> and the mgetty dist.
  456.  
  457. With mgetty, you get a subdirectory called frontends/. There are a lot
  458. of more or less documented programs for viewing/printing/organizing
  459. received faxes, for entering them into the queue from all kinds of
  460. different programs.
  461.     
  462. ------------------------------
  463.  
  464. Subject: What's going on with those Class 1 modems?
  465. From: Klaus Lichtenwalder <Lichtenwalder@ACM.org>, modifying comments
  466.     from Gert Doering
  467.     
  468. While Class 2 and Class 2.0 modems do most of the dirty work
  469. themselves, clever modem manufacturers seem to drift toward implementing
  470. only class 1 fax modes. Probably so they can use smaller proms while
  471. also integrating voice functionality. Well, they want to see $$$,
  472. too..
  473. The bad thing with Class 1 is, the modem expects all the dirty work to
  474. be done by the host computer. After all, why did you buy a Pentium II
  475. 300MHz? Just for hitting on a few keys from time to time? So you have
  476. a very fast cpu and there should be no problem to do something every n
  477. ms? Right? Wrong! Most of the Unix systems out there don't have
  478. realtime extensions (this *is* a real time job, after all), and if
  479. they have, there's no real standard to these extensions, so generally
  480. it's not possible to maintain that strain. Windows knows how to use
  481. class 1 modems? Yeah, sure, the multitasking is quite different, you
  482. can quite easily exclude other processes from running, because you
  483. just want to have that high priority process. And if you insist in
  484. doing some other time consuming tasks, your fax might no be very
  485. readable... So, so much prosa for this situation, you still might see
  486. some class 1 support in the near future. Just hang on and in the
  487. meantime, boycott modem manufacturers who only support class 1 modes.
  488.  
  489. ------------------------------
  490.  
  491. Subject: What modems are recommended?
  492. From: Gert Doering <gert@greenie.muc.de> and the List
  493.  
  494. ----------------------------------------------------
  495. MODEM Recommendations for use with mgetty/vgetty
  496. ------------------------------------------------
  497.  
  498. What modem to recommend depends on your needs.  There are very few modems
  499. that handle fax + data + voice perfectly, but quite a number that are
  500. well suited for two of the categories, and less good (or sometimes not
  501. at all) for the third.
  502.  
  503. For Fax+Data:  
  504.     * USR Courier V.34/X.2 (no voice)
  505.  
  506. For FAX+Voice: 
  507.     * ZyXEL 1496 (data only up to 19200, but best fax implementation)
  508.  
  509. For Data+Voice:
  510.     * USR Sportster VI series (fax implementation is VERY bad)
  511.  
  512. For FAX+DATA+Voice
  513.     * ZyXEL 2864
  514.     * MultiTech MT2834ZDXv
  515.     * ELSA MicroLink TQV series (fax is not perfect, but works ok)
  516.  
  517. Last updated: February 1998
  518.  
  519. ------------------------------
  520.  
  521. Subject: Where is the list archived?
  522. From: Gert Doering <gert@greenie.muc.de>
  523.  
  524. A pointer to the archive as well as lots of other documentation can be
  525. found at <URL:http://www.leo.org/~doering/mgetty>. The archive itself
  526. can be found at <URL:http://eli.wariat.org/mgarc/index.html>
  527.  
  528. ------------------------------
  529.  
  530. Subject: Part 2: Other questions
  531.  
  532. ------------------------------
  533.  
  534. Subject:  How can I contact mgetty/vgetty users and developers?
  535. From: ezmlm at crynwr
  536.  
  537. A mailing list exists. Due to its international character, the only
  538. supported language on this list is *English*, though it's gated to
  539. some local newsgroups, de.alt.comm.mgetty for example. To subscribe to
  540. the list, send mail to mgetty-subscribe@crynwr.com, to unsubscribe, 
  541. send a mail to mgetty-unsubscribe@crynwr.com, NOT to mgetty@muc.de.
  542. If you want to specify a different e-mail address for your subscribtion
  543. than the address you send your subscribe request, send it to
  544. mgetty-subscribe-<your e-mail address with @ replaced by =>@crynwr.com.
  545. This address gets checked by sending a confirmation message.
  546.  
  547. Example (from mgetty-help@crynwr.com): to specify God@heaven.af.mil as
  548. your subscription address, send mail to
  549. <mgetty-subscribe-God=heaven.af.mil@crynwr.com>.  I'll send a
  550. confirmation message to that address; when you receive that message,
  551. simply reply to it to complete your subscription.
  552.  
  553. The volume on mgetty@muc.de varies from one or two messages a week to
  554. ten or so a day, depending on development activity.
  555.  
  556. If you have questions because of a misbehaving mgetty or vgetty, be
  557. sure to include the relevant parts of your log file, usually obtained
  558. with a loglevel of 6 The default location of these log files is /tmp/
  559. for mgetty and /var/log for vgetty.
  560.  
  561. ------------------------------
  562. Subject:  What image file formats can sendfax send?
  563. From:    gert@greenie.muc.de (Gert Doering)
  564.  
  565. Fax input format:
  566.  
  567.    raw G3 data (according to CCITT standard T.4, 1-dimensionally
  568.    compressed). Can be created by GhostScript's "dfaxhigh" or "dfaxlow"
  569.    drivers (they will create raw G3 data with a 64 byte header, that
  570.    sendfax + g3cat + g32pbm will recognize and skip) or by the "pbm2g3"
  571.    program.
  572.    Warning: the pbmtog3 program from the "pbmplus" distribution does *not*
  573.    create valid G3 data according to T.4, to be precise, the lines are
  574.    shorter than 1728 pixels and the leading EOL code is missing. To fix
  575.    it, use the patch that is provided in "patches/pbmtog3.p1". Even
  576.    better, use my own utility. (The patch is *NOT* needed for my pbm2g3
  577.    program!).
  578.    Use of a unpatched pbmtog3 will most likely cause +FHNG:50 or +FHNG:54
  579.    error codes.
  580.  
  581.    Do not use "tiff-G3" data as input. Though the data itself is G3 encoded,
  582.    it's wrapped into a complex layer of TIFF headers that would
  583.    require non-trivial parsing that's simply not needed for sendfax.
  584.    Faxing a TIFF file will result in a warning message from sendfax, and,
  585.    most likely, in a failed transmission.
  586.  
  587.  
  588. Fax output format:
  589.  
  590.    The files that mgetty places into FAX_SPOOL_IN are in the same format
  591.    as the files that sendfax wants to send, raw G3 data as of CCITT T.4.
  592.    To convert them to "pbm", use the g32pbm program. To convert them to
  593.    X-Windows xwd format, use the "contrib/g3toxwd" program.
  594.  
  595.    If the files are received without transmission errors, it is possibly
  596.    to send received fax files without any additional conversion. Since
  597.    some modems insert filling zero-bits, a run through "g3cat" is
  598.    recommended anyway, this will remove any surplus stuff, and clean up
  599.    garbled lines.
  600.  
  601. ------------------------------
  602.  
  603. Subject:  Why doesn't mgetty accept other file formats besides G3?
  604.  
  605. Why does mgetty only send raw G3 fax files, instead of converting
  606. arbitrary image files (like TIFF) on the fly?
  607.  
  608. >From Chris Lewis:
  609.  
  610. "As I understand it, in addition to its own formats, TIFF can encapsulate
  611. some number of other formats.  Put another way, TIFF is, at least to some
  612. extent, simply a way of getting magic numbers into other formats so that
  613. TIFF-capable converters can handle multiple formats transparently.
  614.  
  615. "Yes, you certainly can have TIFF encapsulate a G3, and mgetty wouldn't
  616. have much trouble with that.  However, that leaves you with the question -
  617. what does mgetty do if it's not a G3 that's been encapsulated?  It
  618. would have to convert it.  And then we would encounter situations where
  619. mgetty's conversion speeds couldn't meet the class II FAX transmission
  620. timeouts, and you've wasted telephone time...  Ditto on reception.  Indeed,
  621. there is a real possibility that mgetty would not be able to keep up
  622. if the input or output file was anything other than a G3.
  623.  
  624. "Approaching this from another viewpoint, we should also remember that
  625. mgetty is a transfer protocol and implementation.  *Not* conversion
  626. software.  mgetty needs to read and write G3s, and that's all.  Leave
  627. conversions to other software."
  628.  
  629. And from Gert Doering:
  630.  
  631. "Well, TIFF is a very complex file format, that can support dozens of
  632. different page data encodings, different byte / bit orderings,
  633. multiple pages per file, and so on.  While TIFF is a flexible format,
  634. parsing it is a complex task.
  635.  
  636. "In contrast, mgetty's "g3" files are raw G3 data. No headers, no
  637. formatting, no need for the transmission code to dig around in the file
  638. to find the actual page data.  One page per file, simplest possible.
  639.  
  640. "Ignoring TIFF (leaving TIFF conversions to outside software)
  641. simplifies mgetty and sendfax enormously, but doesn't complicate the
  642. user interface much, as long as "faxspool" or similar tools are used
  643. that will hide the internals, that is, how the fax backend expect its
  644. data, from the user. To be precise, leaving out TIFF support
  645. *simplifies* mgetty.  Many Unix programs can read pbm and converting
  646. g3 -> pbm is very easy, while I haven't seen a good *multipage*-Tiff -
  647. to - PBM converter yet."
  648.  
  649. ------------------------------
  650.  
  651. Subject:  Why doesn't mgetty use the modem's autoanswer capabilities?
  652.  
  653. 1. Because it isn't possible to distinguish a fax from a data call if you
  654. don't have full modem control. Besides, it will make sure that the modem
  655. doesn't answer the phone while the host isn't ready for it.
  656.  
  657. 2. And callerid won't work without extreme difficulty.
  658.  
  659. ------------------------------
  660.  
  661. Subject:  Why mgetty ignores /dev/tty* dialin, /dev/cua* dialout conventions:
  662.  
  663. [Under Linux and most other Unices (excepting SunOS) mgetty should be
  664. set on the tty* devices, and the cua* devices should be ignored
  665. entirely:]
  666.  
  667. From: "Theodore Y. Ts'o" <tytso@mit.edu>
  668.  
  669. /dev/ttySxx devices are fully POSIX-compliant TTY devices.  If you are
  670. only going to be using one set of tty devices, you should be using
  671. /dev/ttySxx. 
  672.  
  673. /dev/cuaXX devices are different from /dev/ttySXX in two ways --- first
  674. of all, they will allow you to open the device even if CLOCAL is not set
  675. and the O_NONBLOCK flag was not given to the open device.  This allows
  676. programs that don't use the POSIX-mondated interface for opening
  677. /dev/ttySxx devices to be able to use /dev/cuaXX to make outgoing phone
  678. calls on their modem (cu stands for "callout", and is taken from SunOS).
  679.  
  680. The second way in which /dev/cuaXX differs from /dev/ttySXX is that if
  681. they are used, they will trigger a simplistic kernel-based locking
  682. scheme:  If /dev/ttySXX is opened by one or more processes, then an
  683. attempt to open /dev/cuaXX will return EAGAIN.  If /dev/cuaXX is opened
  684. by one or more processes, then an attempt to open /dev/ttySXX will
  685. result the open blocking until /dev/cuaXX is closed, and the carrier
  686. detect line goes high.
  687.  
  688. While this will allow for simple lockouts between a user using a modem
  689. for callout and a getty listening on the line for logins, it doesn't
  690. work if you need to arbitrate between multiple programs wanting to do
  691. dialout --- for example, users wanting to do dialout and UUCP.
  692.  
  693. I originally implemented the cuaXX/ttySXX lockout mechanism back before
  694. FSSTND established a standard convention for the use of tty lock files.
  695. Now that it's there, people should use the tty lock files and not try
  696. using /dev/cuaXX.  The only reason why /dev/cuaXX hasn't disappeared yet
  697. is for backwards compatibility reasons.
  698.                         - Ted
  699.  
  700. [Under SunOS *everything* should use cua*, as follows:]
  701. From: Gert Doering <gert@muc.de>
  702.  
  703. The two-device scheme is meant to prevent multiple processes from
  704. accessing the same physical device at the same time. Since mgetty
  705. opens the port with O_NDELAY, the kernel sees a process on tty*
  706. (mgetty) and prevents any open() on cua* (uucico, cu, ...). So, you
  707. have to use the same device for both program types, and that's cua*.
  708.  
  709. ------------------------------
  710.  
  711. Subject:  Troubleshooting questions & answers
  712. From: gert@greenie.muc.de
  713.  
  714. Q: I keep getting the error code +FHNG:50 or +FHNG:54 after sending a
  715.    page. Sometimes it says "page bad, retrain requested" and infinitely
  716.    resends the page.
  717.  
  718. A: This error means that something went wrong between the two machines,
  719.    while your end was sending the page data. In the case of +FHNG:50 or
  720.    +FHNG:54, the other end most likely simply hung up (so your modem
  721.    couldn't get any page transfer status at all), in the other case, the
  722.    receiver complained that it didn't like the data on the page.
  723.  
  724.    The most common reason for this behaviour is that you used a copy
  725.    of ``pbmtog3'' that came from the ``pbmplus'' distribution and doesn't
  726.    have my patch included (Mind you, the pbmtog3 program is required for
  727.    the page headers that faxspool puts on top of each page!).
  728.  
  729.    If that is not the reason, there may be flow control problems, or the
  730.    line have simply has been very noisy, or so. Get in touch with the
  731.    receiver, and find out whether the page looks good or whether there are
  732.    lines missing, others corrupted, ... - if there are errors, check your
  733.    flow control setting.
  734.  
  735.    If there are no errors whatsoever, and you're sure that you use my
  736.    version of pbmtog3 (called pbm2g3 or a patched version of pbmplus', 
  737.    then I'm out of wits - something's broken in the modem. Maybe you 
  738.    should upgrade your ROM version.
  739.  
  740.  
  741. Q: When receiving faxes, I get the +FCON message logged, then mgetty says
  742.    "starting fax receiver". fax_wait_for(OK) is called, logs some random
  743.    junk bytes, and gives up after a minute, complaining about "timeout".
  744.  
  745. A: Most likely, you have a modem that switches baud rate to 19200 bps
  746.    right after sending the +FCON message to the host, and the normal port
  747.    speed is something else. Check policy.h whether FAX_RECEIVE_SWITCHBD
  748.    is defined, and change the setting (if the modem does *not* change
  749.    speed, but the define is *set*, the effect will be similar).
  750.    Better yet, with the runtime configurable stuff, is to add the entry
  751.    switchbd <nnn>" in mgetty.config
  752.  
  753.  
  754. Q: I keep changing values in policy.h, but nothing changes.
  755.  
  756. A: maybe you've had an older version of mgetty installed to
  757.    /usr/local/bin/mgetty and are calling this from /etc/init? Newer
  758.    versions are installed in /usr/local/sbin/mgetty. Check the time
  759.    stamp on the mgetty you just compiled vs. the mgetty listed in
  760.    /etc/inittab.
  761.  
  762.  
  763. Q: Half of the faxes that I receive are too short, they look as if every
  764.    second pixel line is missing.
  765.  
  766. A: Well, they *are* short: most likely, they are received in normal
  767.    resolution (204x98 dpi) instead of fine resolution (204x196 dpi). You
  768.    can see it in the filename, if it starts with "ff*", it's fine, if it
  769.    starts with "fn*", it's normal resolution. To ``stretch'' a normal
  770.    resolution fax to proper proportions, use ``g32pbm -stretch fn...''
  771.  
  772.  
  773. Q: login complains with ``no utmp entry, must execute login from the
  774.    lowest level sh''
  775.  
  776. A: I *told* you not to fiddle with the ``utmp'' field... - most likely,
  777.    in your ``login.config'' file, the utmp field for the entry calling
  778.    /bin/login isn't "-".
  779.  
  780.    Another reason could be a faulty /etc/init (hits only Linux users) or a
  781.    corrupted /etc/utmp file. In that case, reboot your machine.
  782.  
  783. Q: When mgetty is running and I dial out, I do not get "CONNECT" but only
  784.    junk, as "+FCO", "+FTI:", "+FHS:20"
  785.  
  786. A: Well, yes, that's a problem with the 2.0 implementation in mgetty. That
  787.    is: while mgetty is running, the modem is in "AT+FCLASS=2.0" mode and
  788.    expects to connect to a fax on the remote side. (With class 2, we
  789.    worked around this by setting +FCLASS=0;+FAA=1, but that will make the
  790.    modem answer in class 2, not 2.0 [subject to further testing!])
  791.  
  792.    Solution: in the program dialing out, initialize the modem with
  793.    "AT+FCLASS=0".  Most likely, a modem reset (ATZ) will also help.
  794.  
  795. Q: every time mgetty starts up, the permissions of my tty device get
  796.    changed and I have to issue "chmod +w /dev/ttySx" to be able to
  797.    dial out.
  798.  
  799. A: that's not a bug, that's a feature. You don't *want* to allow anybody
  800.    using your machine to be able to dial out (think of your phone costs!),
  801.    so it's a security issue.
  802.    If you *want* to allow dialout for everyone, #define FILE_MODE 0666
  803.    in policy.h. I would not recommend it, I would give access to a
  804.    special group, and put every one that may dial out into this group.
  805.  
  806. Q: I have a Linux system, and while trying to dial out on /dev/cua1
  807.    (mgetty is running on /dev/ttyS1), it says "device busy" (EBUSY)???
  808.  
  809. A: use the same device (always!!) for dial-in and dial-out.
  810.    On Linux, use /dev/ttySx, on SunOS and *BSD use /dev/cuax.
  811.  
  812. Q: If I create a fax file with "gs -sDEVICE=dfaxhigh ..." and send it with
  813.    sendfax, everything works *great*. If I run it through "faxspool", the
  814.    receiving side reports an error. Is the "g3cat" program broken?
  815.  
  816. A: No, g3cat isn't the problem. The real problem is "pbmtog3", and I bet
  817.    you have the pbmtog3 program from the pbmplus distribution installed.
  818.    This program is *broken* (patch is in mgetty/patches/pbmtog3.p1), that
  819.    is, it doesn't create proper T.4/G3 fax data. Thus, the receiving fax
  820.    machine will get a fax that has some corrupt lines (the page header)
  821.    and will complain about it.
  822.    Patch pbmtog3, or use mgetty's pbm2g3. It's faster anyway.
  823.  
  824. Q: mgetty doesn't accept FidoNet calls. I get log entries like this:
  825.  
  826.      10/30 01:54:54 ##### data dev=ttyS1, pid=3401, caller=none,
  827.      conn='38400/V32b 14400/V42b', name='', cmd='/bin/login',
  828.      user='**EMSI_INQC816**EMSI_INQC816q.'
  829.  
  830.    or this:
  831.  
  832.      10/30 05:31:03 ##### data dev=ttyS1, pid=7238, caller=none,
  833.      conn='38400/ZyX  16800/V42b', name='', cmd='/bin/login', user='q.q.q.'
  834.  
  835. A: did you compile mgetty with -DFIDO defined? I don't think so. If
  836.    -DFIDO isn't set, mgetty doesn't know about fido.
  837.  
  838. Q: Some of my programs use binary lockfiles and some use ASCII
  839.    lockfiles.  Why does mgetty complain?  Can't it recognize both?
  840.  
  841. A: Mgetty complains because your system configuration is _wrong_.
  842.    These error messages are there to help the system administrator
  843.    notice a *severe configuration error* on his site.
  844.  
  845.    If all programs would understand both types of Locking, the
  846.    messages would be silly, but since kermit usually simply ignores
  847.    ascii locks, and uucico does so for binary locks, the situation is
  848.    *highly* error-prone, and sysadmins should *SEE* this.
  849.  
  850.    Recompile your applications that use the modem so that all agree on
  851.    the lockfile types.
  852.  
  853. Q: My modem and I share one phone line. Now I answered the phone
  854.    and a modem greets me. How can I make mgetty take over?
  855.  
  856. A: Send the signal SIGUSR1 to the mgetty process. It will then answer
  857.    the phone.
  858.  
  859.  
  860. Q: I can fax only one page, then I get an error
  861.  
  862. A: When you see something like this in your log:
  863.   > 03/22 19:15:58 yS1  fax_wait_for: string 'OK'** found **
  864.   > 03/22 19:15:58 yS1  fax_send: 'AT+FET=0'
  865.   > 03/22 19:15:58 yS1  fax_wait_for(OK)
  866.   > 03/22 19:15:58 yS1  fax_read_byte: read returned 0: Unknown error
  867.   > 03/22 19:15:58 yS1  fax_get_line: cannot read byte, return: Unknown error
  868.   > 03/22 19:15:58 ##### failed transmitting f1.g3: +FHS:-4, time=55s
  869.   you should define FAX_SEND_IGNORE_CARRIER in policy.h and recompile
  870.   your binaries. There are some modems that drop the DCD line between
  871.   pages. Alternatively, you can define ''ignore-carrier true'' in your
  872.   config file.
  873.  
  874. Q: The message "WARING: DSR off - modem turned off or bad cable?" keeps
  875.    showing up in the mgetty logfile.
  876.  
  877. A: If you see this message, it basically means that mgetty can't get
  878.    the status of dsr (data set ready). This can be because the cable
  879.    is bad or because you are using mgetty on solaris. Solaris doesn't
  880.    give you the status of dsr. If you are running mgetty on a different
  881.    platform, you might consider checking your cable or the modem
  882.    setting.
  883.  
  884. ------------------------------
  885.  
  886. Subject: Programs generating "invalid" Postscript that can't converted
  887.          to the G3 format for sendfax
  888. From: Gert Doering <gert@greenie.muc.de>
  889.  
  890. Right now the list of programs generating "invalid" postscript (causing
  891. Ghostscript to create G3 files with wrong line width, in turn causing
  892. sendfax to fail) includes:
  893.  
  894. FrameMaker 4.0
  895. WinWord (dunno which version)
  896. dvipsk 5.58f 
  897.  
  898. Gert Doering wrote on Sun, 22 Dec 1996 00:26:55 +0100 in message
  899.    <m0vbaoh-0004B5C@greenie.muc.de>:
  900.  
  901. Interesting enough, I tried dvipsk 5.58f today, and it does *NOT* emit any
  902. of those bad "setpagedevice" commands, and thus the resulting postscript
  903. *will* generate correct page sizes. So maybe it's sufficient to upgrade
  904. your dvips program to the most recent version.
  905.  
  906. Maybe it's necessary to tell *ghostscript* what the "right" paper size is
  907. supposed to be (A4 -- but you must make sure that dvips makes "a4" as
  908. well!), by specifying "gs -sPAPERSIZE=a4". 
  909.  
  910. For some people, even that does not suffice (some strange interaction
  911. between different paper sizes in different programs), so it may help to
  912. post-process the G3 files with "g3cat" (from mgetty 0.99*, versions 
  913. after July 96!), or with "g32pbm badfile.g3  | pbm2g3 >goodfile.g3". The
  914. latter will definitely help.
  915.  
  916.  
  917. ------------------------------
  918.  
  919. Subject:  My ZyXEL doesn't work right after a ROM upgrade: What's wrong?
  920. From: felix@escape.vsse.in-berlin.de
  921.  
  922. Do a full modem reset after upgrading the firmware. This is not
  923. described in the German ZyXEL manual (is it described in the
  924. English one?) but should be done in any case.
  925.  
  926. ------------------------------
  927.  
  928. Subject: Why the occasional "tcsetattr failed: I/O error" message?
  929. From: gert@greenie.muc.de
  930.  
  931. Q: Occasionally, mainly after "clean" user logouts (that is, the user
  932.    typed "exit" instead of just hanging up), I get the message
  933.     09/08 21:26:26 yS2  lowering DTR to reset Modem
  934.     09/08 21:26:27 yS2  tcsetattr failed: I/O error
  935.    in the mgetty log file, and a similar I/O error message in the syslog
  936.    file.
  937.  
  938. A: Well, this is a Linux and SunOS specific problem: if the modem is still
  939.    connected to the other end when mgetty starts, mgetty will force it to
  940.    hangup by lowering DTR (and sending +++ATH, in case DTR drop won't
  941.    suffice).  This will make the modem lower the DCD (carrier detect)
  942.    line.  Unfortunately, this will trigger a security mechanism in the
  943.    Linux kernel, which will prevent all further access via that file
  944.    descriptor.  This is done to prevent one well-known password hack
  945.    (I won't that explain in detail).
  946.  
  947.    Mgetty knows about that problem, and, upon noticing an error at this
  948.    point during modem initialization, will simply reopen the port and
  949.    redo all modem / port setup stuff.
  950.  
  951.    Because suppressing that error message would be messy, it keeps
  952.    appearing, but it is harmless (... "trying again").
  953.  
  954.  
  955.  
  956. ------------------------------
  957.  
  958. Subject: When is mgetty actually running? (i.e. what can mgetty control?)
  959. From: Klaus Lichtenwalder <Lichtenwalder@ACM.org>
  960.  
  961. At what moments can mgetty exert control over the line? Let's
  962. consider mgetty's life span: at some time (e.g. system boot, init
  963. assumes the specified run level and starts mgetty) mgetty starts and
  964. (simplified) checks for the lock file on the device it has to
  965. control. If there's no lock file, it initializes the modem and wait's
  966. for an event on the line. If a character arrives, mgetty does not read
  967. it but first checks the lock file. 
  968.  
  969. * If a lock file is present, mgetty knows some{body,thing} wants to
  970. dial out and periodically checks for the existence of the lock
  971. file. After the lock file is gone, the device is free and mgetty
  972. simply exits. It'll get restarted by init, so the modem line will
  973. get reinitialized. 
  974. * If no lock file is present, the modem most probably sent a RING, so
  975. we go check for the expected word (= RING) and send our
  976. answer_chat. If it's a fax call (and the modem can receive faxes and
  977. we allow receiving them) we get the pages, store 'em away and exit,
  978. thus restarting mgetty, see above. If it's a data call (I ignore
  979. DISTINGIVE_RING and Caller_ID features for now), we prompt for the
  980. login and wait for an answer. After the answer is read, it's checked
  981. against the login.config file and the appropriate program get's exec'd
  982. by mgetty, which means, there's *no* mgetty for that line. Only after
  983. the termination of the connection, when the other process(es) exit(s),
  984. mgetty will be restarted by init.
  985.  
  986. ------------------------------
  987.  
  988. Subject: The user's shell doesn't get killed after the line drops
  989. From: Gert Doering <gert@greenie.muc.de>
  990.  
  991. > why doesn't mgetty kill the user's shell when the user just hangs up
  992. > the modem, without doing 'logout'? [Mod: or the line simply crashes]
  993.  
  994. How should mgetty kill a user's shell? While the user is logged in, mgetty
  995. is *not running*.
  996.  
  997. The kernel will signal the shell via the SIGHUP signal when the DCD line
  998. on the modem drops. Then the shell will exit, and init will re-start
  999. mgetty. Unfortunately, the BASH shell is very broken in various versions
  1000. and will ignore the SIGHUP signal, so that could be one reason why it
  1001. isn't exiting. 
  1002.  
  1003. Another reason could be an improper modem setup (AT&C0), make sure
  1004. that the modem raises and lowers the DCD line properly (check with the
  1005. modem manual) and that your serial cable is OK (swap it with another
  1006. one for testing).
  1007.  
  1008.  
  1009. ------------------------------
  1010.  
  1011. Subject: AutoPPP appears in the "who" listing
  1012. From: Gert Doering <gert@greenie.muc.de>
  1013.  
  1014. If you use the /AutoPPP/ option for automatically creating a ppp 
  1015. connection, the user name does not appear in the who list. Instead,
  1016. something like AutoPPP or ppp is displayed. Solution: you have to
  1017. patch pppd, that's not mgetty's issue and thus can't resolved patching
  1018. mgetty. 
  1019. If you have the patched pppd, this is how it works. You have
  1020. to add the option "login" to pppd in login.config and change the third
  1021. column to "-" (in the example it's a_ppp or ppp).
  1022.  
  1023. ------------------------------
  1024.  
  1025. Subject: Things to think of if using AutoPPP, or, as you might call it,
  1026.     ppp connections
  1027. From: Gert Doering <gert@greenie.muc.de>
  1028.  
  1029. You can't get a ppp connection going. So, what should you check before
  1030. calling for help in the list.
  1031.  
  1032. Run mgetty with a debug level high enough to see what login it will
  1033. try. It might not be wrong to just use level 9 to see everything
  1034. happening.
  1035.  
  1036. Scenario 1: mgetty recognizes AutoPPP:
  1037.   03/11 12:06:31 yS1   match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
  1038.   03/11 12:06:31 yS1   login: utmp entry: ppp
  1039.   03/11 12:06:31 yS1    looking for utmp entry... (my PID: 5313)
  1040.   03/11 12:06:31 yS1   utmp + wtmp entry made
  1041.   03/11 12:06:31 yS1   calling login: cmd='/usr/sbin/pppd', argv[]='pppd...
  1042.   03/11 12:06:31 ##### data dev=ttyS1, pid=5313, caller=none, conn='LAPM', name=''
  1043. At this point, mgetty executes pppd and has nothing to do with
  1044. connection failures, failing authorization, the police banging at your
  1045. door or anything else. Check pppd's logs for any trouble.
  1046.  
  1047. If you use "who" and the only thing you can see is "a_ppp", go check
  1048. your pppd sources. It's pppd's job to forge a utmp entry
  1049.  
  1050. It looks like some unix clients should explicitely send the string
  1051. "/AutoPPP/" as there seems to be a problem in connecting. Mgetty
  1052. doesn't seem to get ppp-frames and waits for something it can decide
  1053. what to do. As you are most probably using a script for the
  1054. connection, there should be no problem to send that string.
  1055.  
  1056. ------------------------------
  1057.  
  1058. Subject: Part 3: Compatibility Issues
  1059.  
  1060. ------------------------------
  1061.  
  1062. Subject:  Suspicious fax machines
  1063. From: hm@ix.de (Harald Milz)
  1064.  
  1065. I'm collecting all data concerning suspective fax
  1066. machines, i.e. those which made problems in cooperating
  1067. with sendfax. The main reason is to find out whether
  1068. there are specific fax machines that refuse to work
  1069. with sendfax and/or your fax modem. As a goal, we will
  1070. be able to track down the bug(s). 
  1071.  
  1072. To contribute, please fill in the following template
  1073. and send it to me (hm@ix.de):
  1074.  
  1075. 1. <fax machine's brand and model>
  1076. 2. <corresponding fax number> (optional)
  1077. 3. <fax modem brand and model>
  1078. 4. <fax modem's firmware revision>      # tbd from ATI1
  1079. 5. <protocol parameters>        # tbd from Faxlog
  1080. 6. <errlog line from Faxlog>        # tbd from Faxlog
  1081. 7. <remarks>
  1082.  
  1083. If you encounter problems with a fax machine, please
  1084. call the receiving party and ask them for their fax
  1085. machine's brand & model and if they are willing to
  1086. offer their machine for some (limited) testing. 
  1087.  
  1088. The more exact your data is (the first 3 entries aren't
  1089. too good :-} ), the better the result will be,
  1090. hopefully.
  1091.  
  1092. This list is posted once a month (automatically) and if
  1093. five new entries were added to it (manually).
  1094.  
  1095. Here's what's already in the list:
  1096.  
  1097.  
  1098.  
  1099. 1. Panasonic Panafax UF311
  1100. 2. +49 89 74824899
  1101. 3. ZyXEL U1496EG+
  1102. 4. U1496EG V 6.10g P
  1103. 5. +FDCS:1,3,0,2,0,0,0,4
  1104. 6. +FHNG:50 (Unspecified Transmit Phase D error)
  1105. 7. when sending 15 pg, connection broke after 6 pg. 
  1106.  
  1107.  
  1108. 1. NEC Nefax 17
  1109. 2. +49 2242 82114
  1110. 3. ZyXEL U1496EG+
  1111. 4. U1496EG V 6.10g P
  1112. 5. +FDCS:1,3,0,2,1,0,0,4
  1113. 6. +FHNG:50 (Unspecified Transmit Phase D error)
  1114. 7. machine didn't refuse when sending only 3 pages
  1115.    earlier. This time, 15 pg were sent.
  1116.  
  1117.  
  1118. 1. Telekom AF-310
  1119. 2. +49 7231 560851
  1120. 3. ZyXEL U1496 E / 6.10a, E+ / 6.01, E+ / 6.11a
  1121. 4. 
  1122. 5. +FDCS:1,3,0,2,0,0,0,4
  1123. 6. +FTPS:2 -> page bad, retrain requested
  1124. 7. sendfax hangs up after three tries.
  1125.    received fax shows black and white boxes at the
  1126.    footer, such as,
  1127.    ###   ###   ###   ###   ###
  1128.    ###   ###   ###   ###   ###  ...
  1129.    ###   ###   ###   ###   ###
  1130.  
  1131. ------------------------------
  1132.  
  1133. Subject: Part 4: Compiling, installing and using vgetty
  1134.  
  1135. ------------------------------
  1136.  
  1137. Subject: Compiling vgetty
  1138. From: Marc Eberhard <marc@poseidon.thphy.uni-duesseldorf.de>,
  1139.       Klaus Lichtenwalder <Lichtenwalder@ACM.org>
  1140.  
  1141. After having set up mgetty for compile (i.e. copying policy.h-dist to
  1142. policy.h and editing it), you change to the voice/ directory and type
  1143. make. For installation (make install) be sure to copy voice.conf-dist
  1144. to the mgetty configuration directory (usually
  1145. /usr/local/etc/mgetty+sendfax) as voice.conf and edit it, using the
  1146. comments in that file.
  1147.  
  1148. ------------------------------
  1149.  
  1150. Subject: US Robotics voice format converter
  1151. From: Scott Hutton <shutton@indiana.edu>
  1152.  
  1153. There's a script I wrote in voice/pvftools called "extract_gsm" that
  1154. extracts the GSM data from a US Robotics "rmd" file.  Once you have
  1155. that, and you have a version of "sox" that can convert .gsm files in
  1156. to .au (or other format) files, you're in business.
  1157.  
  1158. I found the necessary patches for sox after a bit of digging:
  1159.  
  1160.   http://kbs.cs.tu-berlin.de/~jutta/toast.html
  1161.  
  1162. You'll need the GSM library before you try to apply the sox patches.
  1163. It's too bad sox doesn't come with GSM support--it seems to have
  1164. about everything else...
  1165.  
  1166. Also, Thomas Hellstroem (thomas@vtd.volvo.se) had some C programs to
  1167. extract GSM data and to "pack" GSM data into rmd files off of his page.
  1168. Unforutnately, I didn't save the URL.
  1169.  
  1170.  -Scott Hutton, UCS Messaging Team, Indiana Univeristy
  1171.  
  1172.