Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] [hylafax-devel] RE : Multiple modems



Comment regarding inittab entry.

From the man page:

       id     is a unique sequence of 1-4 characters which identifies an entry
              in inittab (for versions of sysvinit compiled with the old libc5
              (< 5.2.18) or a.out libraries the limit is 2 characters).

              Note:  traditionally,  for  getty and other login processes, the
              value of the id field is kept the same as the suffix of the cor-
              responding  tty,  e.g. 1 for tty1. Some ancient login accounting
              programs might expect this, though I can't think of any.

-Jeff H.


At 03:45 AM 8/24/2004, Sipho Mothobi wrote:





I have run it, here is the trace. I have also added this to me innitab

 ---- LOG TRACE OF FAXADDMODEM -------
[root@smo2 root]# faxaddmodem
Serial port that modem is connected to []? ttySL1

Ok, time to setup a configuration file for the modem.  The manual
page config(5F) may be useful during this process.  Also be aware
that at any time you can safely interrupt this procedure.

Reading scheduler config file /var/spool/hylafax/etc/config.

Hey, there is an existing config file
/var/spool/hylafax/etc/config.ttySL1...

The non-default server configuration parameters are:

CountryCode:            27
AreaCode:               011
FAXNumber:              +27.011.282.8980
LongDistancePrefix:     0
InternationalPrefix:    09
DialStringRules:        etc/dialrules
SessionTracing:         11
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25

Are these ok [yes]? no
Country code [27]?
Area code [011]? 11
Phone number of fax modem [+27.011.282.8980]? +27.011.282.8979
Local identification string (for TSI/CIG) ["NothingSetup"]?
Long distance dialing prefix [0]? 0
International dialing prefix [09]?
Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]?
Tracing during normal server operation [1]?
Tracing during send and receive sessions [11]?
Protection mode for received facsimile [0600]?
Protection mode for session logs [0600]?
Protection mode for ttySL1 [0600]?
Rings to wait before answering [1]? 0
Modem speaker volume [off]?
Command line arguments to getty program ["-h %l dx_%s"]?
Pathname of TSI access control list file (relative to /var/spool/hylafax)
[""]?
Pathname of Caller-ID access control list file (relative to
/var/spool/hylafax) [""]?
Tag line font file (relative to /var/spool/hylafax) [etc/lutRS18.pcf]?
Tag line format string ["From %%l|%c|Page %%P of %%T"]?
Time before purging a stale UUCP lock file (secs) [30]?
Hold UUCP lockfile during inbound data calls [Yes]?
Hold UUCP lockfile during inbound voice calls [Yes]?
Percent good lines to accept during copy quality checking [95]?
Max consecutive bad lines to accept during copy quality checking [5]?
Max number of pages to accept in a received facsimile [25]?
Syslog facility name for ServerTracing messages [daemon]?
Set UID to 0 to manipulate CLOCAL [""]?
Use available priority job scheduling mechanism [""]?

Your facsimile phone number (+27.011.282.8979) does not agree with your
country code (27) or area code (11).  The number
should be a fully qualified international dialing number of the form:

+27 11 <local phone number>

Spaces, hyphens, and periods can be included for legibility. For example,

+27.11.555.1212

is a possible phone number (using your country and area codes).

The non-default server configuration parameters are:

CountryCode:            27
AreaCode:               11
FAXNumber:              +27.011.282.8979
LongDistancePrefix:     0
InternationalPrefix:    09
DialStringRules:        etc/dialrules
SessionTracing:         11
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25

Are these ok [yes]? yes

Now we are going to probe the tty port to figure out the type
of modem that is attached.  This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the
modem is turned off, this may hang (just go and cable up the modem
or turn it on, or whatever).

Probing for best speed to talk to modem: 38400
 OK.

Hmm, this looks like a Class 1 modem.
Product code (ATI0) is "SmartLink Soft Modem".
Other information (ATI3) is "/dev/slusb1".
DTE-DCE flow control scheme [default]? Modem manufacturer is "Unknown".
Modem model is "Unknown".

Using prototype configuration file class1...

There is no prototype configuration file for your modem, so we will
have to fill in the appropriate parameters by hand.  You will need the
manual for how to program your modem to do this task.  In case you are
uncertain of the meaning of a configuration parameter you should
consult the config(5F) manual page for an explanation.

Note that modem commands must be specified exactly as they are to be
sent to the modem.  Note also that quote marks (") will not be displayed
and will automatically be deleted.  You can use this facility to supply
null parameters as "".

Finally, beware that the set of parameters is long.  If you prefer to
use your favorite editor instead of this script you should fill things
in here as best you can and then edit the configuration file

"/var/spool/hylafax/etc/config.ttySL1"

after completing this procedure.

Command to enter Class 1 [AT+FCLASS=1]?
Command to stop and wait prior to sending PPM [AT+FTS=7]?
Command to stop and wait prior to sending TCF [AT+FTS=7]?
Command to stop and wait prior to sending EOP [AT+FTS=9]?
Extra bytes in a received HDLC frame [4]?
Command to avoid +FCERROR before image data [""]?
Maximum time to wait for OK after aborting a receive (ms) [200]?
Maximum wait for initial identification frame (ms) [40000]?
Delay after completing training (ms) [75]?
Command to ensure silence after receiving HDLC and before sending
[AT+FRS=7]?
Delay before sending DCS and TCF (ms) [75]?
Delay after failed training (ms) [1500]?

The modem configuration parameters are:

Class1Cmd:              AT+FCLASS=1
Class1PPMWaitCmd:       AT+FTS=7
Class1TCFWaitCmd:       AT+FTS=7
Class1EOPWaitCmd:       AT+FTS=9
Class1FrameOverhead:    4
Class1MsgRecvHackCmd:   ""
Class1RecvAbortOK:      200
Class1RecvIdentTimer:   40000
Class1SendMsgDelay:     75
Class1SwitchingCmd:     AT+FRS=7
Class1TCFMaxNonZero:    10
Class1TCFMinRun:        1000
Class1TCFResponseDelay: 75
Class1TrainingRecovery: 1500

Are these ok [yes]? yes

Creating new configuration file /var/spool/hylafax/etc/config.ttySL1...
...saving current file as /var/spool/hylafax/etc/config.ttySL1.sav.
Done setting up the modem configuration.

Checking /var/spool/hylafax/etc/config for consistency...
...some parameters are different.

The non-default scheduler parameters are:

CountryCode:            27
AreaCode:               11
LongDistancePrefix:     0
InternationalPrefix:    09
DialStringRules:        etc/dialrules
TimeOfDay:              any

Are these ok [yes]? yes

Creating new configuration file /var/spool/hylafax/etc/config...
...saving current file as /var/spool/hylafax/etc/config.sav.

Don't forget to run faxmodem(8C) (if you have a send-only environment)
or configure init to run faxgetty on ttySL1.


------- innittab ----


.
.
.
# Modem configuration
mo:2345:respawn:/usr/sbin/faxgetty ttySL0
mo:2345:respawn:/usr/sbin/faxgetty ttySL1
.
.



____________________ HylaFAX(tm) Developers Mailing List ____________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-devel-request@xxxxxxxxxxx < /dev/null

--------------------------------------
Jeff Herring / jeffh@xxxxxxxxx
--------------------------------------



____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services