HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] HylaFax + Sendpage use different "modem"



Here's what I have ran:
sendpage -h ttyS0@localhost:444 -p VERIZONFTWxxxx TEST PAGE

It sits on the screen with for about 2 minutes: destination pin VERIZONFTWxxxx: request id is 1 for host localhost

/var/spool/hylafax/etc/config
LogFacility:            daemon
CountryCode:            1
AreaCode:               817
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
ServerTracing:          1


/var/spool/hylafax/etc/config.ttyS0
# $Id$
#
# HylaFAX Facsimile Software
#
# Copyright (c) 1990-1996 Sam Leffler
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
# HylaFAX is a trademark of Silicon Graphics, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#

#
# Configuration for a Rockwell RC288DPi-based Class 1 modem.
#    Hayes Optima 28800         firmware rev ???
#    Microcom DeskPorte 28.8S   firmware rev V1.100K-V34_DS
#    PPI PM288FXMT              firmware rev 1.57
#
# Note that the modem does not lock the line rate for fax
# receive (at least not the PM288FXMT); but not sure whether
# current flow control settings are maintained or if it
# switches to XON/XOFF (testing host was too fast to see).
#
#
CountryCode:            1
AreaCode:               817
FAXNumber:              +1.817.xxx.xxxx
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0600
LogFileMode:            0600
DeviceMode:             0600
RingsBeforeAnswer:      10
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        Modem
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:              Class1          # use this to supply a hint
ModemRate:              19200           # rate for DCE-DTE communication
ModemFlowControl:       rtscts          # default
#
ModemNoFlowCmd:         AT&K0           # setup no flow control
ModemHardFlowCmd:       AT&K3           # setup hardware flow control
ModemSoftFlowCmd:       AT&K4           # setup software flow control
ModemSetupDTRCmd:       AT&D2           # setup so DTR drop resets modem
ModemSetupDCDCmd:       AT&C1           # setup so DCD reflects carrier (or not)
#
ModemMfrQueryCmd:       !Rockwell
ModemModelQueryCmd:     !RC288DPi
ModemRevQueryCmd:       ATI3            # product information
#
ModemDialCmd:           ATDT%s          # T for tone dialing


/var/spool/hylafax/info/1817817XXXXXXX
supportsVRes:1
supports2DEncoding:yes
supportsMMR:yes
hasV34Trouble:no
hasV17Trouble:no
supportsPostScript:no
supportsBatching:yes
calledBefore:no
maxPageWidth:2432
maxPageLength:65535
maxSignallingRate:"14400"
minScanlineTime:"0ms"
remoteCSI:""
remoteNSF:""
remoteDIS:""
sendFailures:0
dialFailures:1
lastDialFailure:"No carrier detected"
pagingProtocol:"ixo"
pagerTTYParity:"even"

/var/spool/hylafax/etc/dialrules
! $Id$
!
! HylaFAX (tm) Dialing String Processing Rules.
!
! This file describes how to process user-specified dialing strings
! to create two items:
!
! CanonicalNumber: a unique string that is derived from all dialing
! strings to the same destination phone number.  This string is used
! by the fax server for ``naming'' the destination.
!
! DialString: the string passed to the modem for use in dialing the
! telephone.  This string should be void of any characters that might
! confuse the modem.
!
Area=${AreaCode}                ! local area code
Country=${CountryCode}          ! local country code
IDPrefix=${InternationalPrefix} ! prefix for placing an international call
LDPrefix=${LongDistancePrefix}  ! prefix for placing a long distance call
!
WS="    "                       ! our notion of white space
!
! Convert a phone number to a canonical format:
!
!    +<country><areacode><rest>
!
! by (possibly) stripping off leading dialing prefixes for
! long distance and/or international dialing.
!
CanonicalNumber := [
%.*                     =                       ! strip calling card stuff
[abcABC]                = 2                     ! these convert alpha to numbers
[defDEF]                = 3
[ghiGHI]                = 4
[jklJKL]                = 5
[mnoMNO]                = 6
[prsPRS]                = 7
[tuvTUV]                = 8
[wxyWXY]                = 9
[^+0-9]+                =                       ! strip white space etc.
^${IDPrefix}            = +                     ! replace int. dialing code
^${LDPrefix}            = +${Country}           ! replace l.d. dialing code
^[^+]                   = +${Country}${Area}&   ! otherwise, insert canon form
]
!
! Process a dialing string according to local requirements.
! These rules do only one transformation: they convert in-country
! international calls to long-distance calls.
!
DialString := [
[-${WS}.]+              =                       ! strip syntactic sugar
[abcABC]                = 2                     ! these convert alpha to numbers
[defDEF]                = 3
[ghiGHI]                = 4
[jklJKL]                = 5
[mnoMNO]                = 6
[prsPRS]                = 7
[tuvTUV]                = 8
[wxyWXY]                = 9
^[+]${Country}          = ${LDPrefix}           ! long distance call
^[+]                    = ${IDPrefix}           ! international call
]

/var/spool/hylafax/sendq/q1
tts:1290648941
killtime:1290649241
retrytime:60
state:5
npages:0
totpages:0
ntries:0
ndials:0
totdials:0
maxdials:12
tottries:0
maxtries:3
pagewidth:0
resolution:98
pagelength:0
priority:127
schedpri:127
minbr:0
desiredbr:13
desiredst:0
desiredec:2
desireddf:3
desiredtl:0
useccover:1
usexvres:0
external:8174180100
number:8174180100
mailaddr:root@xxxxxxxxx
sender:root
jobid:1
jobtag:
pagehandling:
modem:ttyS0
faxnumber:
tsi:
receiver:
company:
location:
voice:
fromcompany:
fromlocation:
fromvoice:
regarding:
comments:
cover:
client:pbx.local
owner:root
groupid:1
signalrate:
dataformat:
jobtype:pager
tagline:
subaddr:
passwd:
doneop:default
commid:
csi:
nsf:
status:
statuscode:0
returned:0
notify:none
pagechop:default
chopthreshold:3
page:0::XXXXXXX
!page:0::XXXXXXX
data:0::docq/doc1.page.1

Email:
Your job to  could not be completed before the appointed
deadline.

------- Unsent job status -------
      Destination:=20
            JobID: 1
          GroupID: 1
           Sender: root
         Mailaddr: root@xxxxxxxxx
           CommID:=20
            Modem: ttyS0
   Submitted From: pbx.local
       Page Width: 0  (mm)
      Page Length: 0 (mm)
       Resolution: 98 (lpi)
           Status: Kill time expired
          Dialogs: 0
            Dials: 0
            Calls: 0
            Pages: 0
         TotPages: 0
         Attempts: 0
           Dirnum:=20

/var/spool/hylafax/doneq/q1
tts:1290649241
killtime:1290649241
retrytime:60
state:8
npages:0
totpages:0
ntries:0
ndials:0
totdials:0
maxdials:12
tottries:0
maxtries:3
pagewidth:0
resolution:98
pagelength:0
priority:127
schedpri:127
minbr:0
desiredbr:13
desiredst:0
desiredec:2
desireddf:3
desiredtl:0
useccover:1
usexvres:0
external:8174180100
number:8174180100
mailaddr:root@xxxxxxxxx
sender:root
jobid:1
jobtag:
pagehandling:
modem:ttyS0
faxnumber:
tsi:
receiver:
company:
location:
voice:
fromcompany:
fromlocation:
fromvoice:
regarding:
comments:
cover:
client:pbx.local
owner:root
groupid:1
signalrate:
dataformat:
jobtype:pager
tagline:
subaddr:
passwd:
doneop:default
commid:
csi:
nsf:
status:Kill time expired
statuscode:325
returned:0
notify:none
pagechop:default
chopthreshold:3
page:0::2274282
!page:0::2274282
data:0::docq/doc1.page.1

There's nothing in the logs folder.
I don't even hear it try  to dial the modem

tail -f /dev/ttyS0
Nothing seen.

On Tue, Nov 23, 2010 at 11:42 PM, Kenneth "Ellis" McCall <xellisx@xxxxxxxxx> wrote:
I've tried the sendpage -h ttys0@localhost
but the message sticks in the queue and ever sends.



On Tue, Nov 23, 2010 at 10:37 PM, Lee Howard <faxguy@xxxxxxxxxxxxxxxx> wrote:
Kenneth "Ellis" McCall wrote:
Currently I have HylaFax sending faxes on an IAX modem, but need to send alpha pages. I tried to set for 7e1, but apparently you can't do that, so I do have an external modem and was wondering how I can send the faxes through the modem instead of the IAX.

Use the "sendpage -h modem@" option.

Thanks,

Lee.



--
Kenneth Ellis McCall
Developer for <a href="" href="http://www.dealtaker.com" target="_blank">http://www.dealtaker.com">a coupon and deal website</a>.



--
Kenneth Ellis McCall
Developer for <a href="" href="http://www.dealtaker.com" target="_blank">http://www.dealtaker.com">a coupon and deal website</a>.



Project hosted by iFAX Solutions