<div><br>I try to use hylafax to send fax, but i encounter with TRAINING failed error<br>I try many times to send a fax to fax machine whose type is Canon Laser Class 9000 Series<br>I always failed with the TRAINING failed error but succeed 2-3 times<br>I also send fax to another machine whose type is Panasonic<br>And I failed all the time with the same error without any success <br><br>When using windows's fax modem to fax to the fax machine , I can fax successfully,so the fax machine is working well,<br>and the problem is related to the hylafax or something else that i can't figure out<br><br>I hava install spandsp-0.0.6,iaxmodem-1.2.0, hylafax-6.0.3<br>my asterisk version is 1.4.25.1, my TDM card's type is sangoma's 4 FXO port A200TDM card<br><br>and my configure are the following:<br><br>/var/spool/hylafax/etc/config.tty125<br>=================================================================================<br> CountryCode: 86<br> AreaCode: 020<br> FAXNumber: 28683014<br> LongDistancePrefix: 1<br> InternationalPrefix: 011<br> DialStringRules: etc/dialrules<br> ServerTracing: 1<br> SessionTracing: 11<br> RecvFileMode: 0660<br> LogFileMode: 0600<br> DeviceMode: 0600<br> RingsBeforeAnswer: 1<br> SpeakerVolume: off<br> GettyArgs: "-h %l dx_%s"<br> LocalIdentifier: "OC9 Technologies"<br> TagLineFont: etc/lutRS18.pcf<br> TagLineFormat: "From %%l|%c|Page %%P of %%T"<br> MaxRecvPages: 175<br><br> #<br> #<br> # Modem-related stuff: should reflect modem command interface<br> # and hardware connection/cabling (e.g. flow control).<br> #<br> ModemType: Class1 # use this to supply a hint<br><br> #<br> # Enabling this will use the hfaxd-protocol to set Caller*ID<br> #<br> #ModemSetOriginCmd: AT+VSID="%s","%d"<br><br> #<br> # If "glare" during initialization becomes a problem then take<br> # the modem off-hook during initialization, and then place it<br> # back on-hook when done.<br> #<br> #ModemResetCmds: "ATH1\nAT+VCID=1" # enables CallID display<br> #ModemReadyCmds: ATH0<br><br> Class1AdaptRecvCmd: AT+FAR=1<br> Class1TMConnectDelay: 1000 # counteract quick CONNECT response<br><br> #<br> # If you have trouble with V.17 receiving or sending,<br> # you may want to enable one of these, respectively.<br> #<br> Class1RMQueryCmd: "!24,48,72,96" # enable this to disable V.17 receiving<br> Class1TMQueryCmd: "!24,48,72,96" # enable this to disable V.17 sending<br><br> Class1ResponseWaitCmd: AT+FRS=1<br><br> #<br> # You'll likely want Caller*ID display (also displays DID) enabled.<br> #<br> ModemResetCmds: AT+VCID=1 # enables CallID display<br><br> #<br> # The pty does not support changing parity.<br> #<br> PagerTTYParity: none<br><br> #<br> # If you are "missing" Caller*ID data on some calls (but not all)<br> # and if you do not have adequate glare protection you may want to<br> # not answer based on RINGs, but rather enable the CallIDAnswerLength<br> # for NDID, disable AT+VCID=1 and do this:<br> #<br> #RingsBeforeAnswer: 0<br> #ModemRingResponse: AT+VRID=1<br><br> # Uncomment DATE and TIME if you really want them, but you probably don't.<br> #CallIDPattern: "DATE="<br> #CallIDPattern: "TIME="<br> CallIDPattern: "NMBR="<br> CallIDPattern: "NAME="<br> CallIDPattern: "ANID="<br> #CallIDPattern: "USER=" # username provided by call<br> #CallIDPattern: "PASS=" # password provided by call<br> #CallIDPattern: "CDID=" # DID context in call<br> CallIDPattern: "NDID="<br> #CallIDAnswerLength: 4<br>============================================================================================<br><br>/etc/iaxmodem/tty125<br>======================================================================<br>device /dev/tty125<br>owner uucp:uucp<br>mode 660<br>port 4570<br>refresh 50<br>server 127.0.0.1<br>peername 125<br>secret 125<br>codec alaw<br>=======================================================================<br><br>my asterisk's config are following:<br><br>/etc/asterisk/iax.conf<br>=====================================================================<br>[125] <br>type=friend<br>secret=125<br>host=dynamic<br>qualify=yes<br>context=fax_out<br>allow=alaw<br>===========================================================================<br><br>/etc/asterisk/extensions.conf<br>============================================================================<br>[fax_out]<br>exten => _X.,1,answer<br>exten => _X.,n,Dial(ZAP/g0/${EXTEN})<br>==============================================================================<br><br>when I use the command <br>sendfax -n -d 81094660 /var/spool/asterisk/fax/11.tif<br>I can connect to the remote fax machine,but come to a TRAINING failed as an end<br>here's my log's detail:<br>================================================================================================================<br>Aug 29 09:45:30.63: [ 9568]: SESSION BEGIN 000000113 8602028683015<br>Aug 29 09:45:30.63: [ 9568]: HylaFAX (tm) Version 6.0.3<br>Aug 29 09:45:30.63: [ 9568]: SEND FAX: JOB 60 DEST 28683015 COMMID 000000113 DEVICE '/dev/tty125' FROM 'root <<a href="mailto:root@elastix.example.com">root@elastix.example.com</a>>' USER root<br>Aug 29 09:45:30.63: [ 9568]: <-- [12:AT+FCLASS=1\r]<br>Aug 29 09:45:30.63: [ 9568]: --> [2:OK]<br>Aug 29 09:45:30.65: [ 9568]: DIAL 28683015<br>Aug 29 09:45:30.65: [ 9568]: <-- [13:ATDT28683015\r]<br>Aug 29 09:45:44.67: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:46.25: [ 9568]: --> [2:OK]<br>Aug 29 09:45:46.25: [ 9568]: REMOTE NSF "00 00 0E 00 00 00 16 0F 41 07 00 10 00 02 95 C8 08"<br>Aug 29 09:45:46.25: [ 9568]: NSF remote fax equipment: Panasonic <br>Aug 29 09:45:46.25: [ 9568]: <-- [9:AT+FRH=3\r]<br>Aug 29 09:45:46.61: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:46.67: [ 9568]: --> [2:OK]<br>Aug 29 09:45:46.67: [ 9568]: REMOTE best rate 9600 bit/s<br>Aug 29 09:45:46.67: [ 9568]: REMOTE max A4 page width (215 mm)<br>Aug 29 09:45:46.67: [ 9568]: REMOTE max unlimited page length<br>Aug 29 09:45:46.67: [ 9568]: REMOTE best vres 15.4 line/mm<br>Aug 29 09:45:46.67: [ 9568]: REMOTE format support: MH, MR<br>Aug 29 09:45:46.67: [ 9568]: REMOTE best 20 ms/scanline<br>Aug 29 09:45:46.67: [ 9568]: USE 9600 bit/s<br>Aug 29 09:45:46.67: [ 9568]: SEND file "docq/doc60.tif;70"<br>Aug 29 09:45:46.67: [ 9568]: USE A4 page width (215 mm)<br>Aug 29 09:45:46.67: [ 9568]: USE unlimited page length<br>Aug 29 09:45:46.67: [ 9568]: USE 3.85 line/mm<br>Aug 29 09:45:46.67: [ 9568]: USE 2-D MR<br>Aug 29 09:45:46.67: [ 9568]: USE 20 ms/scanline<br>Aug 29 09:45:46.67: [ 9568]: SEND training at v.29 9600 bit/s<br>Aug 29 09:45:46.67: [ 9568]: <-- [9:AT+FRS=7\r]<br>Aug 29 09:45:46.73: [ 9568]: --> [2:OK]<br>Aug 29 09:45:46.73: [ 9568]: <-- [9:AT+FTH=3\r]<br>Aug 29 09:45:46.75: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:46.75: [ 9568]: <-- data [23]<br>Aug 29 09:45:46.75: [ 9568]: <-- data [2]<br>Aug 29 09:45:48.31: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:48.31: [ 9568]: <-- data [6]<br>Aug 29 09:45:48.31: [ 9568]: <-- data [2]<br>Aug 29 09:45:48.67: [ 9568]: --> [2:OK]<br>Aug 29 09:45:48.67: [ 9568]: <-- [9:AT+FTS=7\r]<br>Aug 29 09:45:48.75: [ 9568]: --> [2:OK]<br>Aug 29 09:45:48.75: [ 9568]: <-- [10:AT+FTM=96\r]<br>Aug 29 09:45:48.77: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:48.77: [ 9568]: DELAY 1000 ms<br>Aug 29 09:45:49.77: [ 9568]: <-- data [1024]<br>Aug 29 09:45:49.77: [ 9568]: <-- data [776]<br>Aug 29 09:45:49.77: [ 9568]: <-- data [2]<br>Aug 29 09:45:51.34: [ 9568]: --> [2:OK]<br>Aug 29 09:45:51.34: [ 9568]: <-- [9:AT+FRS=1\r]<br>Aug 29 09:45:51.36: [ 9568]: --> [2:OK]<br>Aug 29 09:45:51.36: [ 9568]: <-- [9:AT+FRH=3\r]<br>Aug 29 09:45:51.54: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:52.69: [ 9568]: --> [2:OK]<br>Aug 29 09:45:52.69: [ 9568]: SEND training at v.29 7200 bit/s<br>Aug 29 09:45:52.69: [ 9568]: <-- [9:AT+FRS=7\r]<br>Aug 29 09:45:52.75: [ 9568]: --> [2:OK]<br>Aug 29 09:45:52.75: [ 9568]: <-- [9:AT+FTH=3\r]<br>Aug 29 09:45:52.76: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:52.76: [ 9568]: <-- data [23]<br>Aug 29 09:45:52.76: [ 9568]: <-- data [2]<br>Aug 29 09:45:54.31: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:54.31: [ 9568]: <-- data [6]<br>Aug 29 09:45:54.31: [ 9568]: <-- data [2]<br>Aug 29 09:45:54.67: [ 9568]: --> [2:OK]<br>Aug 29 09:45:54.67: [ 9568]: <-- [9:AT+FTS=7\r]<br>Aug 29 09:45:54.77: [ 9568]: --> [2:OK]<br>Aug 29 09:45:54.77: [ 9568]: <-- [10:AT+FTM=72\r]<br>Aug 29 09:45:54.79: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:54.79: [ 9568]: DELAY 1000 ms<br>Aug 29 09:45:55.79: [ 9568]: <-- data [1024]<br>Aug 29 09:45:55.79: [ 9568]: <-- data [326]<br>Aug 29 09:45:55.79: [ 9568]: <-- data [2]<br>Aug 29 09:45:57.35: [ 9568]: --> [2:OK]<br>Aug 29 09:45:57.35: [ 9568]: <-- [9:AT+FRS=1\r]<br>Aug 29 09:45:57.37: [ 9568]: --> [2:OK]<br>Aug 29 09:45:57.37: [ 9568]: <-- [9:AT+FRH=3\r]<br>Aug 29 09:45:57.54: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:58.69: [ 9568]: --> [2:OK]<br>Aug 29 09:45:58.69: [ 9568]: SEND training at v.27ter 4800 bit/s<br>Aug 29 09:45:58.69: [ 9568]: <-- [9:AT+FRS=7\r]<br>Aug 29 09:45:58.75: [ 9568]: --> [2:OK]<br>Aug 29 09:45:58.75: [ 9568]: <-- [9:AT+FTH=3\r]<br>Aug 29 09:45:58.77: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:45:58.77: [ 9568]: <-- data [23]<br>Aug 29 09:45:58.77: [ 9568]: <-- data [2]<br>Aug 29 09:46:00.32: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:46:00.32: [ 9568]: <-- data [6]<br>Aug 29 09:46:00.32: [ 9568]: <-- data [2]<br>Aug 29 09:46:00.68: [ 9568]: --> [2:OK]<br>Aug 29 09:46:00.69: [ 9568]: <-- [9:AT+FTS=7\r]<br>Aug 29 09:46:00.77: [ 9568]: --> [2:OK]<br>Aug 29 09:46:00.77: [ 9568]: <-- [10:AT+FTM=48\r]<br>Aug 29 09:46:00.79: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:46:00.79: [ 9568]: DELAY 1000 ms<br>Aug 29 09:46:01.79: [ 9568]: <-- data [900]<br>Aug 29 09:46:01.79: [ 9568]: <-- data [2]<br>Aug 29 09:46:03.37: [ 9568]: --> [2:OK]<br>Aug 29 09:46:03.37: [ 9568]: <-- [9:AT+FRS=1\r]<br>Aug 29 09:46:03.39: [ 9568]: --> [2:OK]<br>Aug 29 09:46:03.39: [ 9568]: <-- [9:AT+FRH=3\r]<br>Aug 29 09:46:04.05: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:46:05.24: [ 9568]: --> [2:OK]<br>Aug 29 09:46:05.24: [ 9568]: SEND training at v.27ter fallback mode 2400 bit/s<br>Aug 29 09:46:05.24: [ 9568]: <-- [9:AT+FRS=7\r]<br>Aug 29 09:46:05.30: [ 9568]: --> [2:OK]<br>Aug 29 09:46:05.30: [ 9568]: <-- [9:AT+FTH=3\r]<br>Aug 29 09:46:05.32: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:46:05.32: [ 9568]: <-- data [23]<br>Aug 29 09:46:05.32: [ 9568]: <-- data [2]<br>Aug 29 09:46:06.88: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:46:06.88: [ 9568]: <-- data [6]<br>Aug 29 09:46:06.88: [ 9568]: <-- data [2]<br>Aug 29 09:46:07.24: [ 9568]: --> [2:OK]<br>Aug 29 09:46:07.24: [ 9568]: <-- [9:AT+FTS=7\r]<br>Aug 29 09:46:07.34: [ 9568]: --> [2:OK]<br>Aug 29 09:46:07.34: [ 9568]: <-- [10:AT+FTM=24\r]<br>Aug 29 09:46:07.36: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:46:07.36: [ 9568]: DELAY 1000 ms<br>Aug 29 09:46:08.36: [ 9568]: <-- data [450]<br>Aug 29 09:46:08.36: [ 9568]: <-- data [2]<br>Aug 29 09:46:09.94: [ 9568]: --> [2:OK]<br>Aug 29 09:46:09.94: [ 9568]: <-- [9:AT+FRS=1\r]<br>Aug 29 09:46:09.96: [ 9568]: --> [2:OK]<br>Aug 29 09:46:09.96: [ 9568]: <-- [9:AT+FRH=3\r]<br>Aug 29 09:46:11.13: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:46:12.30: [ 9568]: --> [2:OK]<br>Aug 29 09:46:12.30: [ 9568]: TRAINING failed<br>Aug 29 09:46:12.30: [ 9568]: <-- [9:AT+FRS=7\r]<br>Aug 29 09:46:12.36: [ 9568]: --> [2:OK]<br>Aug 29 09:46:12.36: [ 9568]: <-- [9:AT+FTH=3\r]<br>Aug 29 09:46:12.38: [ 9568]: --> [7:CONNECT]<br>Aug 29 09:46:12.38: [ 9568]: <-- data [3]<br>Aug 29 09:46:12.38: [ 9568]: <-- data [2]<br>Aug 29 09:46:13.47: [ 9568]: --> [2:OK]<br>Aug 29 09:46:14.47: [ 9568]: <-- [5:ATH0\r]<br>Aug 29 09:46:14.58: [ 9568]: --> [2:OK]<br>Aug 29 09:46:14.58: [ 9568]: SESSION END<br><br>====================================================================================================<br><br>is there something wrong with my configure or this is my TDM card's problem,<br>any help for this is very appreciated, thanks in advance <br><br><br>and before this ,I use rxfax and txfax application to send and receive fax,<br>i can receive fax successfully and failed to send fax, any help for this is <br>a big grace to me, thanks all<br><br><br><br>~ <br></div><br><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net/?from=footer">没有广告的终身免费邮箱,www.yeah.net</a>
</span>