home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / conf / test / conf_dial.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-02-08  |  3.5 KB  |  98 lines

  1. #include "util.h"
  2. #include "ll_log.h"
  3. #include "d_proto.h"
  4. #include "d_structs.h"
  5.  
  6. /* **********************  DIALING TAILOR INFO  **********************  */
  7.  
  8. /*  modem speed support definitions  */
  9.  
  10. # define  BELL103        0177     /*  bell 103  0 to 300 baud  */
  11. # define  VA825          0177     /*  vadic 825  0 to 300 baud  */
  12. # define  VA3415         0400     /*  vadic 3415  1200 baud  */
  13.  
  14. /*
  15.  *     structure defining the available dial-out ports.
  16.  */
  17.  
  18. #define NUMPRTS         20
  19. LOCVAR struct dialports  theprts[NUMPRTS] =
  20.   {
  21.   0,             0,                0,           0,    0, 0,      0,   0
  22.   };
  23. struct dialports  *d_prts = theprts;
  24. int d_maxprts = NUMPRTS;
  25. int d_numprts = 0;
  26.  
  27. #define NUMLINES        10
  28. LOCVAR struct directlines  thelines[NUMLINES] =
  29.   {
  30.   0,              0,             0,                 0, 0
  31.   };
  32.  
  33. int d_maxlines = NUMLINES;
  34. int d_numlines = 0;
  35. struct directlines  *d_lines = thelines;
  36.  
  37.  
  38. /*
  39.  *     this is the path name of the file on which outgoing calls are
  40.  *     logged.  it should be owned by the same user as the outgoing
  41.  *     ports and autodialer devices.
  42.  */
  43.  
  44. char  *d_calllog  =  "/usr/mmdf/log/dial_log";
  45.  
  46. /*
  47.  *    this is the name of the programs will actually do dialing
  48.  *    it is called as "dial <line> <number>".  It knows which
  49.  *    acus are attached to which lines.
  50.  */
  51.  
  52. char    *d_dialprog = "/usr/bin/dial";
  53.  
  54. /*  ***************  ILLEGAL CHARACTER TAILORING  ************************* */
  55.  
  56. /*  The following sets the default illegal-character arrays for both
  57.     dial-out (phone) and dial-in (slave) connections.
  58.  */
  59.  
  60.  
  61. unsigned short d_lrill[8] =       /* illegal receive chars              */
  62. {                  /* see d_slvconn & d_masconn          */
  63.     0177777,                      /* nul soh stx etx eot enq ack bel    */
  64.                   /* bs  ht  nl  vt  np  cr  so  si     */
  65.     0177777,                      /* dle dc1 dc2 dc3 dc4 nak syn etb    */
  66.                   /* can em  sub esc fs  gs  rs  us     */
  67.     0000010,                      /* sp  ! " # $ % & ' ( ) * + , - . /  */
  68.     0000000,                      /* 0 1 2 3 4 5 6 7 8 9 : ; < = > ?    */
  69.     0000001,                      /* @ A B C D E F G H I J K L M N O    */
  70.     0010000,                      /* P Q R S T U V W X Y Z [ \\] ^ _    */
  71.     0000000,                      /* ` a b c d e f g h i j k l m n o    */
  72.     0100000                       /* p q r s t u v w x y z { | } ~ del  */
  73. };
  74.  
  75. unsigned short d_lxill[8] =       /* illegal send chars                 */
  76. {                  /* see d_slvconn & d_masconn          */
  77.     0177777,                      /* nul soh stx etx eot enq ack bel    */
  78.                   /* bs  ht  nl  vt  np  cr  so  si     */
  79.     0177777,                      /* dle dc1 dc2 dc3 dc4 nak syn etb    */
  80.                   /* can em  sub esc fs  gs  rs  us     */
  81.     0000010,                      /* sp  ! " # $ % & ' ( ) * + , - . /  */
  82.     0000000,                      /* 0 1 2 3 4 5 6 7 8 9 : ; < = > ?    */
  83.     0000001,                      /* @ A B C D E F G H I J K L M N O    */
  84.     0010000,                      /* P Q R S T U V W X Y Z [ \\] ^ _    */
  85.     0000000,                      /* ` a b c d e f g h i j k l m n o    */
  86.     0100000                       /* p q r s t u v w x y z { | } ~ del  */
  87. };
  88.  
  89. /************************* PHONE LOGGING *************************/
  90.  
  91. struct ll_struct    ph_log =       /* dial-out link-level package log    */
  92. {
  93.     "ph.log", "PH-0000", LLOGFST, 25, LLOGSOME, 0
  94. };
  95.  
  96. char *def_trn = "ph.trn";          /* dial-out link-level i/o transcript */
  97.                   /* does not use ll_log package        */
  98.