Menu

Sending fax erro: No carrier detected

Help
Léo
2007-01-15
2013-04-05
  • Léo

    Léo - 2007-01-15

    I'm try to send a fax through Hylafax + iaxmodem + asterisk and I receive this messager error:

    Jan 15 11:49:30.78: [ 6593]: SESSION BEGIN 000000028 55715010
    Jan 15 11:49:30.78: [ 6593]: HylaFAX (tm) Version 4.3.1
    Jan 15 11:49:30.78: [ 6593]: SEND FAX: JOB 1 DEST 5010 COMMID 000000028 DEVICE '/dev/ttyIAX0' FROM 'root <root@ngn10.ngnbr.net>' USER root
    Jan 15 11:49:30.78: [ 6593]: STATE CHANGE: RUNNING -> SENDING
    Jan 15 11:49:30.78: [ 6593]: <-- [12:AT+FCLASS=1\r]
    Jan 15 11:49:30.78: [ 6593]: --> [2:OK]
    Jan 15 11:49:30.78: [ 6593]: MODEM set XON/XOFF/FLUSH: input ignored, output disabled
    Jan 15 11:49:30.78: [ 6593]: DIAL 5010
    Jan 15 11:49:30.78: [ 6593]: <-- [9:ATDT5010\r]

    Jan 15 11:50:14.05: [ 6593]: --> [10:NO CARRIER]

    Jan 15 11:50:14.05: [ 6593]: SEND FAILED: JOB 1 DEST 5010 ERR No carrier detected
    Jan 15 11:50:14.05: [ 6593]: <-- [5:ATH0\r]
    Jan 15 11:50:14.05: [ 6593]: --> [2:OK]
    Jan 15 11:50:14.05: [ 6593]: MODEM set DTR OFF
    Jan 15 11:50:14.05: [ 6593]: MODEM set baud rate: 0 baud (flow control unchanged)
    Jan 15 11:50:14.05: [ 6593]: STATE CHANGE: SENDING -> MODEMWAIT (timeout 5)
    Jan 15 11:50:14.05: [ 6593]: SESSION END

    Thanks!

     
    • Lee Howard

      Lee Howard - 2007-01-15

      "NO CARRIER" means that the modem does not detect a fax machine on the receiving end of that call.  Are you really calling (and reaching) a fax machine, and the fax machine is answering?

       
    • Léo

      Léo - 2007-01-15

      Hi Lee, first off eval, thanks!!

      My asterisk can reach the fax machine and it answer. The fax display show "RECEIVING", but no paper out.

      See my conf files bellow:

      [/var/spool/hylafax/etc/ttyIAX0]

      CountryCode:            55
      AreaCode:               XX
      FAXNumber:              +XX.XX.XXXX.XXXX
      LongDistancePrefix:     23
      InternationalPrefix:    00
      DialStringRules:        etc/dialrules
      ServerTracing:          0xFFF
      SessionTracing:         0xFFF
      RecvFileMode:           0600
      LogFileMode:            0600
      DeviceMode:             0600
      RingsBeforeAnswer:      1
      SpeakerVolume:          off
      GettyArgs:              "-h %l dx_%s"
      LocalIdentifier:        "IAXmodem"
      TagLineFont:            etc/lutRS18.pcf
      TagLineFormat:          "From %%l|%c|Page %%P of %%T"
      MaxRecvPages:           200
      #
      #
      # Modem-related stuff: should reflect modem command interface
      # and hardware connection/cabling (e.g. flow control).
      #
      ModemType:              Class1          # use this to supply a hint

      #
      # Enabling this will use the hfaxd-protocol to set Caller*ID
      #
      ModemSetOriginCmd:      AT+VSID="%s","%d"

      #
      # If "glare" during initialization becomes a problem then take
      # the modem off-hook during initialization, and then place it
      # back on-hook when done.
      #
      ModemResetCmds: "ATH1\nAT+VCID=1"       # enables CallID display
      ModemReadyCmds: ATH0

      Class1AdaptRecvCmd:     AT+FAR=1
      Class1TMConnectDelay:   400             # counteract quick CONNECT response

      Class1RMQueryCmd:       "!24,48,72,96"  # enable this to disable V.17

      #
      # You'll likely want Caller*ID display (also displays DID) enabled.
      #
      ModemResetCmds:         AT+VCID=1       # enables CallID display

      #
      # The pty does not support changing parity.
      #
      PagerTTYParity:         none

      #
      # If you are "missing" Caller*ID data on some calls (but not all)
      # and if you do not have adequate glare protection you may want to
      # not answer based on RINGs, but rather enable the CallIDAnswerLength
      # for NDID, disable AT+VCID=1 and do this:
      #
      RingsBeforeAnswer: 1
      ModemRingResponse: AT+VRID=1

      # Uncomment DATE and TIME if you really want them, but you probably don't.
      #CallIDPattern:          "DATE="
      #CallIDPattern:          "TIME="
      CallIDPattern:          "NMBR="
      CallIDPattern:          "NAME="
      CallIDPattern:          "ANID="
      #CallIDPattern:          "USER="        # username provided by call
      #CallIDPattern:          "PASS="        # password provided by call
      #CallIDPattern:          "CDID="        # DID context in call
      CallIDPattern:          "NDID="
      #CallIDAnswerLength:    4

      [/etc/iaxmodem/ttyIAX0]

      device          /dev/ttyIAX0
      owner           uucp:uucp
      mode            660
      port            4571
      refresh         300
      server          XXX.XXX.XXX.XXX
      peername        iax0
      secret          iax0
      cidname         Leo
      cidnumber       55555555
      codec           ulaw

      -------
      Thanks!!                                                                                   

       
      • Lee Howard

        Lee Howard - 2007-01-15

        If you really are connecting with a fax machine then I will need to examine the audio.

        Please put "record" in your iaxmodem config file (/etc/iaxmodem/___) and then restart iaxmodem and reattempt the call.  After the call is done check to make sure that it did error as you expected, and see that there are two *.raw files in /tmp/.  Please e-mail me these files: faxguy@howardsilvan.com.

         
    • Léo

      Léo - 2007-01-15

      I sent the .raw files to your email.

      -------------------            ----------------------------           -------------
      -------------------            ----------------------------           -------------

      Thanks!!

       
      • Lee Howard

        Lee Howard - 2007-01-15

        I received your audio recordings.  However, the iax recording doesn't really contain any audio.  Look at the file size.  This means that iaxmodem isn't getting any audio from Asterisk... for some reason.  That's what you need to investigate.

         
    • Léo

      Léo - 2007-01-15

      Ok!! I'll check it! But, I don't have any idea to solve this problem! :) !

      Thanks!!

       
    • Léo

      Léo - 2007-01-15

      Lee,

      Everything is Ok now!!

      A change my asterisk version of 1.0.9 to 1.2.14, and works OK!!

      Now, I'll test the receive!!!

      Thank you so much!!!!

       

Log in to post a comment.