telco 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. .TH TELCO 4
  2. .SH NAME
  3. telco, faxreceive, faxsend, fax, telcofax, telcodata \- telephone dialer network
  4. .SH SYNOPSIS
  5. .B telco
  6. [
  7. .B -p
  8. ] [
  9. .B -i
  10. .I source-id
  11. ] [
  12. .B -v
  13. ]
  14. .I dialer-devs
  15. .PP
  16. .B aux/faxsend
  17. .I address
  18. .I page1
  19. \&...
  20. .PP
  21. .B aux/faxreceive
  22. [
  23. .B -s
  24. .I spool-dir
  25. ] [
  26. .B -v
  27. ]
  28. .PP
  29. .B fax
  30. .I telno
  31. .I recipient
  32. [
  33. .I files
  34. ]
  35. .PP
  36. .B service/telcofax
  37. .PP
  38. .B service/telcodata
  39. .SH DESCRIPTION
  40. .I Telco
  41. is a file server that provides a network interface to
  42. Hayes telephone dialers.
  43. The interface is the same as that provided by
  44. .IR ip (3)
  45. and can be used by any program that makes network connections using
  46. .IR dial (2).
  47. The network addresses used by
  48. .I telco
  49. are telephone
  50. numbers.
  51. .PP
  52. The options are
  53. .TP
  54. .B -p
  55. use pulse dialing
  56. .TP
  57. .B -v
  58. verbose: write to the log file all communications with
  59. the dialer.
  60. .TP
  61. .B -i
  62. specify a
  63. .I source-id
  64. to be used during FAX transfers
  65. .PP
  66. Some control of outgoing calls can be encoded
  67. in the address.
  68. Normally, addresses are of the form
  69. .IB telco ! number\f1,
  70. where
  71. .I number
  72. is a decimal telephone number.
  73. However, commas in the telephone number can be used to insert
  74. pauses in the dialing process.
  75. Dialing options can be added to the end of the address, separated
  76. by
  77. .BR ! 's.
  78. The dialing options are
  79. .TF baudrate
  80. .TP
  81. .B compress
  82. turn on compression (default off)
  83. .TP
  84. .I baudrate
  85. a decimal number representing the highest baud
  86. rate with which to make the call
  87. .TP
  88. .B fax
  89. to make a Class 2 facsimile call (used by programs such as
  90. .IR faxsend )
  91. .PD
  92. .PP
  93. .I Telco
  94. also answers incoming calls.
  95. Upon receiving a facsimile call,
  96. .I telco
  97. starts the script
  98. .BR /rc/bin/service/telcofax .
  99. For data calls it starts
  100. .BR /rc/bin/service/telcodata .
  101. Each is started with the network connection as both standard
  102. input and standard output and with two arguments,
  103. the file name of the network connection, e.g.,
  104. .BR /net/telco/0/data ,
  105. and the type of modem.
  106. Currently, the only modem types supported are:
  107. .TF ATT14400
  108. .TP
  109. .B MT1432
  110. Multitech's 14400 baud modem
  111. .TP
  112. .B MT2834
  113. Multitech's 28800 baud modem
  114. .TP
  115. .B ATT14400
  116. the 14400 baud modem in Safaris
  117. .TP
  118. .B VOCAL
  119. the 14400 baud Vocal modem
  120. .PD
  121. .PP
  122. All other modems are assumed to be compatible with the standard
  123. Hayes command subset.
  124. .PP
  125. .I Faxreceive
  126. is normally started by
  127. .BR /rc/bin/service/telcofax .
  128. It inputs and spools a CCITT Group 3 (G3) encoded FAX, and then starts the
  129. script
  130. .BR /sys/lib/fax/receiverc ,
  131. passing it four arguments: the spool file name,
  132. .B Y
  133. (for success) or
  134. .BR N ,
  135. the number of pages, and the id string passed by the caller.
  136. This script sends by
  137. .IR mail (1)
  138. notification to a list of recipients kept in the file
  139. .BR /mail/faxqueue/faxrecipients ;
  140. the script and the list
  141. should be edited to match local needs.
  142. .I Faxreceive's
  143. options are:
  144. .TP
  145. .B -s
  146. specify a different spool directory; the default is
  147. .BR /mail/faxqueue .
  148. .TP
  149. .B -v
  150. verbose: write to the log file all communications with
  151. the modem.
  152. .PP
  153. .I Faxsend
  154. transmits a FAX to
  155. .IR address .
  156. .I Page1
  157. and all arguments that follow
  158. are names of files containing G3 encoded
  159. FAX images, one per page.
  160. .PP
  161. .I Fax
  162. is a shell script that queues
  163. PostScript, G3, or text files to be transmitted to a
  164. FAX machine.
  165. A standard cover sheet, derived from
  166. .BR /sys/lib/fax/h.ps ,
  167. is sent before the message.
  168. .I Telno
  169. is the destination telephone number.
  170. .I Recipient
  171. is the name of the recipient to be placed
  172. on the cover sheet.
  173. If no
  174. .I files
  175. are specified, standard input is sent.
  176. .SH EXAMPLE
  177. Start the dialer on a PC, then use
  178. .I con
  179. to phone out.
  180. .IP
  181. .EX
  182. telco /dev/eia1
  183. con -l telco!18005551212
  184. .EE
  185. .PP
  186. The connection will be made at the highest
  187. negotiable baud rate. To use the
  188. best negotiable compression scheme as well:
  189. .IP
  190. .EX
  191. con -l telco!18005551212!compress
  192. .EE
  193. .SH FILES
  194. .B /mail/faxqueue/*
  195. .br
  196. .B /rc/bin/service/telcodata
  197. .br
  198. .B /rc/bin/service/telcofax
  199. .br
  200. .B /sys/log/telco
  201. .br
  202. .B /sys/lib/fax/receiverc
  203. .br
  204. .B /mail/faxqueue/faxrecipients
  205. .br
  206. .B /sys/lib/fax/h.ps
  207. .br
  208. .B /sys/log/fax
  209. .SH SOURCE
  210. .B /sys/src/cmd/telco/*
  211. .br
  212. .B /sys/src/cmd/fax/*
  213. .SH "SEE ALSO"
  214. .IR con (1),
  215. .IR ip (3)
  216. .SH BUGS
  217. .PP
  218. These programs require the Class 2 facsimile interface. This means that
  219. .I faxsend
  220. and
  221. .I faxreceive
  222. will not work on most portable computers since they have Class 1
  223. interfaces.
  224. .PP
  225. The modem specific information is currently built into the source.
  226. This should be in a user modifiable file.