HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Caller ID can not be shown in the received fax



Hi All,

I am pretty new to Hylafax. I just installed the Asterisk 1.6, IAXModem 1.2.0 and Hylafax in Ubuntu 10.04 a few days ago. So far, everything is fine except that the sender number(Caller ID) can not be shown in the received fax file (TIFF) as below:
==============================================================
root@sw-server:/var/spool/hylafax/recvq# faxinfo fax000000005.tif
fax000000005.tif:
    Sender:
     Pages: 1
   Quality: Normal
      Page: ISO A4
  Received: 2010:10:11 09:47:47
TimeToRecv: 0:00:14
SignalRate: 9600 bit/s
DataFormat: 2-D MMR
ErrCorrect: Yes
===============================================================

But in the log file of Linux (var/log/daemon.log), I can see the sender number like below:
===============================================================
Oct 11 09:47:35 sw-server FaxGetty[11045]: STATE CHANGE: RUNNING -> LISTENING
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [9:DATE=1011]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [9:TIME=0947]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [5:NAME=]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [16:NMBR=02158541240]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [11:ANID=<NONE>]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [11:USER=<NONE>]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [11:PASS=<NONE>]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [11:CDID=<NONE>]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [13:NDID=62325369]
Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [4:RING]
Oct 11 09:47:35 sw-server FaxGetty[11045]: STATE CHANGE: LISTENING -> ANSWERING
Oct 11 09:47:35 sw-server FaxGetty[11045]: DynamicConfig: bin/dynconf.php "/dev/ttyIAX0"
Oct 11 09:47:39 sw-server FaxGetty[11045]: ANSWER: FAX CONNECTION  DE VICE '/dev/ttyIAX0'
================================================================
As what we have seen, the line "Oct 11 09:47:35 sw-server FaxGetty[11045]: --> [16:NMBR=02158541240]" has shown the sender number - 02158541240.

And my Modem's configuration file is as below:
================================================================
#
# Generic Class 1.0 modem configuration.
#
# EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP
#
CountryCode:            86
AreaCode:               0531
FAXNumber:              +8653162325369
LongDistancePrefix:     0
InternationalPrefix:    0531
DialStringRules:        etc/dialrules
ServerTracing:       ;    0xFFF
SessionTracing:         11
RecvFileMode:           0644
LogFileMode:            0644
DeviceMode:             0644
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "fax"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25
#
#
# Modem-related stuff: should refle ct modem command interface
# and hardware connection/cabling (e.g. flow control).
#
# We use "ModemType: Class1" with "Class1Cmd: AT+FCLASS=1.0" for now
#
ModemType:              Class1          # use this to supply a hint
#ModemRate:             19200           # rate for DCE-DTE communication
#ModemFlowControl:      xonxoff         # XON/XOFF flow control assumed
#
#ModemSetupDTRCmd:      AT&D2           # setup so DTR drop resets modem
#ModemSetupDCDCmd:      AT&C1           # setup so DCD follows carrier
#GettyArgs:             "-h %l dx_%s"   # modem must auto-detect fax/data
#
# We can append the "@" symbol to the dial string so that
# the modem will wait 5 seconds before attempting to connect
# and return result codes that distinguish between no carrier
# and no answer.  This makes it possible to avoid problems with
# repeatedly dialing a number that doesn't have a fax machine
# (kudos to Stuart Lynne for this trick.)
#
# NB: If you need to prefix phone numbers to get through a PBX,
#     put it in the ModemDialCmd; e.g. "DT9%s@".
#
#ModemDialCmd:          ATDT%s          # T for tone dialing
#
# Other possible configuration stuff.  The default strings are
# shown below.  Only those that are different from the defaults
# need to be included in the configuration file.
#
ModemResetCmds:         AT+VCID=1       # enables CallID display

Class1AdaptRecvCmd:     AT+FAR=1
Class1TMConnectDelay:   400 # counteract quick CONNECT response
Class1RMQueryCmd:       "!24,48,72,96" # V.17 fast-train recv doesn't work well
#
Class1Cmd:              AT+FCLASS=1.0   # command to enter class 1.0
Class1PPMWaitCmd:       AT+FTS=7        # command to stop and wait before PPM
Class1TCFWaitCmd:       AT+FTS=7        # command to stop and wait before TCF
Class1EOPWaitCmd:       AT+FTS=9        # comman d to stop and wait before EOP
Class1SwitchingCmd:     AT+FRS=7        # command to stop and listen for silence
Class1RecvAbortOK:      200             # wait 200ms for abort response
Class1FrameOverhead:    4               # 4 byte overhead in recvd HDLC frames
Class1RecvIdentTimer:   40000           # 35+5secs waiting for ident frames
Class1TCFMaxNonZero:    10              # max 10% of data may be non-zero
Class1TCFMinRun:        1000            # min run is 2/3rds of TCF duration
CallIDPattern:   ;        "NMBR = "
CallIDPattern:          "NAME = "
CallIDPattern:          "ANID = "
CallIDPattern:          "NDID = "
#
## AvantFAX configuration
#
FaxrcvdCmd:     bin/faxrcvd.php
DynamicConfig:  bin/dynconf.php
UseJobTSI:      true
==================================================================

Thanks for your help in advance,

Songtao Yu



Project hosted by iFAX Solutions