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] No carrier detected



Hello all.
My problem (call to another hylafax server that answer before my modem can hear ringing tone) remains... I don't know how to override it.
Sending fax to a "true" fax machine, that answer after 2 rings, bypass this problem, but remote fax seems not reply to MPS and EOP requests, generating these errors:

Dec 15 11:40:11.23: [11053]: SENT 10990 bytes of data
Dec 15 11:40:11.23: [11053]: SEND 2D RTC
Dec 15 11:40:11.23: [11053]: <-- data [30]
Dec 15 11:40:11.29: [11053]: <-- data [2]
Dec 15 11:40:11.29: [11053]: SEND end page
Dec 15 11:40:12.67: [11053]: --> [2:OK]
Dec 15 11:40:12.67: [11053]: <-- [9:AT+FTS=9\r]
Dec 15 11:40:12.78: [11053]: --> [2:OK]
Dec 15 11:40:12.78: [11053]: SEND send EOP (no more pages or documents)
Dec 15 11:40:12.78: [11053]: <-- [9:AT+FTH=3\r]
Dec 15 11:40:12.95: [11053]: --> [7:CONNECT]
Dec 15 11:40:12.95: [11053]: <-- data [3]
Dec 15 11:40:12.95: [11053]: <-- data [2]
Dec 15 11:40:14.12: [11053]: --> [2:OK]
Dec 15 11:40:14.12: [11053]: <-- [9:AT+FRH=3\r]
Dec 15 11:40:15.46: [11053]: --> [7:CONNECT]
Dec 15 11:40:17.85: [11053]: --> [2:OK]
Dec 15 11:40:17.85: [11053]: SEND recv CRP (command repeat)
Dec 15 11:40:17.85: [11053]: DELAY 70 ms
Dec 15 11:40:17.92: [11053]: SEND send EOP (no more pages or documents)
Dec 15 11:40:17.92: [11053]: <-- [9:AT+FTH=3\r]
Dec 15 11:40:18.13: [11053]: --> [7:CONNECT]
Dec 15 11:40:18.13: [11053]: <-- data [3]
Dec 15 11:40:18.13: [11053]: <-- data [2]
Dec 15 11:40:19.30: [11053]: --> [2:OK]
Dec 15 11:40:19.30: [11053]: <-- [9:AT+FRH=3\r]
Dec 15 11:40:20.70: [11053]: --> [7:CONNECT]
Dec 15 11:40:23.03: [11053]: --> [2:OK]
Dec 15 11:40:23.03: [11053]: SEND recv CRP (command repeat)
Dec 15 11:40:23.03: [11053]: DELAY 70 ms
Dec 15 11:40:23.10: [11053]: SEND send EOP (no more pages or documents)
Dec 15 11:40:23.10: [11053]: <-- [9:AT+FTH=3\r]
Dec 15 11:40:23.31: [11053]: --> [7:CONNECT]
Dec 15 11:40:23.31: [11053]: <-- data [3]
Dec 15 11:40:23.31: [11053]: <-- data [2]
Dec 15 11:40:24.48: [11053]: --> [2:OK]
Dec 15 11:40:24.48: [11053]: <-- [9:AT+FRH=3\r]
Dec 15 11:40:25.86: [11053]: --> [7:CONNECT]
Dec 15 11:40:28.20: [11053]: --> [2:OK]
Dec 15 11:40:28.20: [11053]: SEND recv CRP (command repeat)
Dec 15 11:40:28.20: [11053]: DELAY 70 ms
Dec 15 11:40:28.27: [11053]: Fax protocol error (command repeated 3 times)
Dec 15 11:40:28.27: [11053]: <-- [9:AT+FTH=3\r]
Dec 15 11:40:28.48: [11053]: --> [7:CONNECT]
Dec 15 11:40:28.48: [11053]: <-- data [3]
Dec 15 11:40:28.48: [11053]: <-- data [2]
Dec 15 11:40:29.65: [11053]: --> [2:OK]
Dec 15 11:40:30.65: [11053]: <-- [5:ATH0\r]
Dec 15 11:40:30.89: [11053]: --> [2:OK]
Dec 15 11:40:31.15: [11053]: SESSION END


This is for one page (EOP), but the same happens if I send more then one page (error on MPS command).

Sendig fax to this fax machine from another hylafax server works properly (I've diff the two config.modem, but I can't see were is the problem).

Thanks
Daniele


Daniele Gallarato wrote:
An update about my problem.
Our pbx send tone, I've tested it with a phone.
Problem seems to be when call gone to remote fax machine, in this case another hylafax installation.
This hylafax answer suddenly, so from this side I can't hear ringing tone, and if I understand well, hylafax wait this tone.

Daniele


Daniele Gallarato wrote:
Hi John, thanks for your help.
I'm investigating in this problem, and I've found that its origin is caused by pbx, that doesn't send carrier, so modem try anyway to place the call (and it make the call), but it doesn't hear carrier, so send this error.
I've tried to initialize modem to ignore carrier detect, with AT command

AT&C1

After this command CD led go off, but when I try to make the call, result is the same :(

I think that I need a correct AT command to bypass this problem, so, if any modem guru read, any help will be greatly appreciated :)

Thanks
Daniele


John Hudak wrote:
Hi Daniele:
Without digging into the modems command set, I am sorry I can't help
you more.  As a start, what I would do is see if you can get the setup
for a successful modem session and see how the modem is set up and how
it responds, maybe via minicom?  I would then see what it would take
to modify your config file to reflect the same setup.

I am not sure how hylafax constructs the config file, but, I assume
part of what it does is pull in predefined modem config files from
somewhere, and annotates it with specific environment data during the
course of a faxadd session.  I'd have to unearth the code  to follow
that trail...

Did you do some googling on this modem with the error message?

Perhaps one the modem gurus lurking here can help...(Lee?)

If I have any brain drizzles, I'll let ya know.
John

On Sun, Dec 14, 2008 at 11:20 AM, Daniele Gallarato
<daniele.gallarato@xxxxxxxx> wrote:
  
Thanks John.
I've tried to change my setup to reflect your

ModemSetupDTRCmd

setting, but it doesn't solve my problem :(

I post here my config.ttyUSB0.

root@ubuntu-fax:~# cat /etc/hylafax/config.ttyUSB0
CountryCode:        39
AreaCode:        011
FAXNumber:        19781093
LongDistancePrefix:    00
InternationalPrefix:    39
DialStringRules:    etc/dialrules
ServerTracing:        1
SessionTracing:        11
RecvFileMode:        0600
LogFileMode:        0600
DeviceMode:        0600
RingsBeforeAnswer:    1
SpeakerVolume:        high
GettyArgs:        "-h %l dx_%s"
LocalIdentifier:    "TerFinance S.p.A."
TagLineFont:        etc/lutRS18.pcf
TagLineFormat:        "From %%l|%c|Page %%P of %%T"
PercentGoodLines:    90
MaxConsecutiveBadLines:    3
MaxRecvPages:        25
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:        Class1        # use class 1 interface
ModemRate:        19200        # rate for DCE-DTE communication
ModemFlowControl:    xonxoff        # software flow control
#
#ModemSetupDTRCmd:    ATS13=1&D2    # setup so DTR drop resets modem
ModemSetupDTRCmd:    AT&D2
ModemSetupDCDCmd:    AT&C1        # setup so DCD reflects carrier (or not)
ModemNoFlowCmd:        AT&H0&I0&R1    # setup modem for no flow control
ModemHardFlowCmd:    AT&H1&I0&R2    # setup modem for hardware flow control
ModemSoftFlowCmd:    AT&H2&I2&R1    # setup modem for software flow control
ModemResultCodesCmd:    ATQ0X4        # enable result codes
#
ModemMfrQueryCmd:    !USR
ModemModelQueryCmd:    ATI3
ModemRevQueryCmd:    ATI7        # XXX returns a multi-line result
#
# When AT+FCLASS=1 is issued the modem automatically switches
# to software flow control; these parameters let the fax software
# reset flow control as needed after entering Class 1.
#
Class1NFLOCmd:        AT&H0&I0&R1    # setup modem for no flow control
Class1HFLOCmd:        AT&H1&I0&R2    # setup modem for hardware flow control
Class1SFLOCmd:        ""        # modem does this automatically
#
# This should resolve "DIS/DTC received 3 times" errors:
#
Class1ResponseWaitCmd:    AT+FRS=1    # wait after sending TCF for response
#
# The remainder of this configuration is included so that the
# modem "idles" in Class 0 while not sending or receiving facsimile.
#
ModemSetupAACmd:    AT+FCLASS=0    # leave modem idling in class 0
ModemAnswerCmd:        AT+FCLASS=1A    # answer in Class 1
#
# When using AT+FRS=n we see USR modems reset themselves in the middle of
sessions
# this is not good.  So, we seem to work-around that problem by not using
the
# command.  Unfortunately, this isn't an ideal thing.
#
Class1SwitchingCmd:    "<delay\0727>"


Thanks
Daniele


John Hudak wrote:

Hi:
I am sorry I can't give you specifics because I don't know the details
of that modem, however, it seems that in general, the setup for
detecting the carrier is not correct. This is usually done by
configuring the 'ModemSetupDTRCmd' and the "ModemSetupDCECmd"...Here
is how my setup is accomplished in config.ttyACM0:

For my Conexant RD02-D400 (AKA Dell USB modem)
#
# 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:  412
FAXNumber:     - my number
LongDistancePrefix:   1
InternationalPrefix:  011
DialStringRules:      etc/dialrules
ServerTracing:  1
SessionTracing:       11
RecvFileMode:   0600
LogFileMode:    0600
DeviceMode:     0600
RingsBeforeAnswer:    1
SpeakerVolume:  high
GettyArgs:     "-h %l dx_%s"
LocalIdentifier:      jjh_fax
TagLineFont:    etc/lutRS18.pcf
TagLineFormat:  "From %%l|%c|Page %%P of %%T"
MaxRecvPages:   50
#
#
# 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
# ----------------EOF---------------------------------------------

You can compare this against your config file...noting the ModemSetup
section...
Perhaps you can post yours here?
John


On Sun, Dec 14, 2008 at 5:57 AM, Daniele Gallarato
<daniele.gallarato@xxxxxxxx> wrote:


This is the log of the error

root@ubuntu-fax:~# tail -f /var/spool/hylafax/log/c000000007
Dec 14 11:06:00.90: [29261]: SESSION BEGIN 000000007 391119690902
Dec 14 11:06:00.90: [29261]: HylaFAX (tm) Version 4.4.4
Dec 14 11:06:00.90: [29261]: SEND FAX: JOB 4 DEST 001119690902 COMMID
000000007 DEVICE '/dev/ttyUSB0' FROM 'daniele.gallarato
<daniele.gallarato@xxxxxxxxxxxxx>' USER root
Dec 14 11:06:00.90: [29261]: <-- [12:AT+FCLASS=1\r]
Dec 14 11:06:01.04: [29261]: --> [2:OK]
Dec 14 11:06:01.04: [29261]: DIAL 001119690902
Dec 14 11:06:01.04: [29261]: <-- [17:ATDT001119690902\r]
Dec 14 11:06:57.85: [29261]: --> [10:NO CARRIER]
Dec 14 11:06:57.85: [29261]: SEND FAILED: JOB 4 DEST 001119690902 ERR [2] No
carrier detected
Dec 14 11:06:58.85: [29261]: <-- [5:ATH0\r]
Dec 14 11:06:58.99: [29261]: --> [2:OK]
Dec 14 11:06:59.12: [29261]: SESSION END




Daniele Gallarato wrote:

Yes, config.ttyUSB0.

Modem work perfectly in receiving direction, and in calling direction place
the call, remote fax machine answer and start handshaking, but hylafax reply
with "no carrier detected".

Thanks
Daniele

John Hudak wrote:

Hmmmm, how did you install the USB modem?
config.ttyUSB0 ?
When I installed my USB modem, it was under config.ttyACM0.  My modem
is a Dell USB, with a Conext chips set.

-John

On Fri, Dec 12, 2008 at 11:27 AM, Daniele Gallarato
<daniele.gallarato@xxxxxxxx> wrote:


Hi all, I'm using hylafax 4.4.4-7 on an ubuntu server.
I'm testing it with a usr modem:

Dec 12 17:16:33 ubuntu-fax FaxGetty[18764]: MODEM USR U.S. Robotics 56K FAX
EXT Rev.
11.16.63/Configuration Profile... Product type CTR-21 External Product ID:
24563004 Options
      V32bis,V.80,V.34+,V.90,V.92 Fax Options Class 1/Class 2.0 Line Options
Caller ID, Distinctive
Ring Clock Freq 92.0Mhz EPROM 256k RAM 32k FLASH date 3/28/2005 FLASH rev
11.16.63 DSP date
     3/28/2005 DSP rev 11.16.63

I'm receiving fax very well, but I can't send them, I suppose is a modem
problem.

The error that I can see is:

FaxSend[17607]: SEND FAILED: JOB 3 DEST 00116319664 ERR [2] No carrier
detected

This happens with any destination.

I've tried to make manually the call, with minicom and ATD command, and
remote fax answer and begin
handshaking.

Maybe I need to change my /etc/hylafax/config.ttyUSB0 configuration?

Thanks
Daniele






--
_______________________________________________________________________
I can learn to compromise - Anything but my desires
I can learn to get along - With all the things I cant explain

-- http://www.saicosamangi.info/ --
_______________________________________________________________________


____________________ 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*






____________________ 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*

____________________ 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*




____________________ 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*
    

  
   
____________________ 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*
____________________ 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*
____________________ 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*



Project hosted by iFAX Solutions