HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Addmodem script produces incorrect results



Currently using hylafax version 4.3.1 on ubuntu feisy 7.04 on dell laptop 5000e with modem "LT V.92 Data+Fax Modem Version 8.30". This has the agere mars chipset.  I installed martian drivers in order to make it work in Ubuntu.

Using probemodem I received the following:

robing for best speed to talk to modem: 38400 OK.

This looks like a Class 1 modem.

ATI0    RESULT = "OK"   RESPONSE = "LT V.92 Data+Fax Modem Version 8.30"
ATI1    RESULT = "OK"   RESPONSE = "E851"
ATI2    RESULT = "OK"   RESPONSE = "OK"
ATI3    RESULT = "OK"   RESPONSE = "LT V.92 Data+Fax Modem Version 8.30"
ATI4    RESULT = "OK"   RESPONSE = "72"
ATI5    RESULT = "OK"   RESPONSE = "8.30,0,19,11C1,0448,1668,2000"
ATI6    RESULT = "OK"   RESPONSE = "OK"
ATI7    RESULT = "OK"   RESPONSE = "OK"
ATI8    RESULT = "OK"   RESPONSE = "OK"
ATI9    RESULT = "OK"   RESPONSE = "North America"

Class 1 stuff...

AT+FCLASS=?     RESULT = "OK"   RESPONSE = "0,1"
AT+FCLASS?      RESULT = "OK"   RESPONSE = "1"
AT+FCLASS=0     RESULT = "OK"   RESPONSE = "OK"
AT+FCLASS=1     RESULT = "OK"   RESPONSE = "OK"
AT+FCLASS?      RESULT = "OK"   RESPONSE = "1"
AT+FJUNK=?      RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FJUNK?       RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FAA=?        RESULT = "OK"   RESPONSE = "0,1"
AT+FAA? RESULT = "OK"   RESPONSE = "0"
AT+FAE=?        RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FAE? RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FTH=?        RESULT = "OK"   RESPONSE = "3,24,48,72,73,74,96,97,98,121,122,145,146"
AT+FRH=?        RESULT = "OK"   RESPONSE = "3,24,48,72,73,74,96,97,98,121,122,145,146"
AT+FTM=?        RESULT = "OK"   RESPONSE = "3,24,48,72,73,74,96,97,98,121,122,145,146"
AT+FRM=?        RESULT = "OK"   RESPONSE = "3,24,48,72,73,74,96,97,98,121,122,145,146"
AT+FTS=?        RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FRS=?        RESULT = "ERROR"        RESPONSE = "ERROR"


It appears by the output I am unable to send AT+FTS and AT+FRS commands.

This is problematic because the addmodem script returns the following:

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    # command to stop and wait before EOP
Class1SwitchingCmd:    AT+FRS=7    # silence between HDLC recv and trans

When sending a fax with the above config I would receive:
Stop and wait failure (modem on hook)

Based on another post (the only one I could find, I changed the above to:

#Class1PPMWaitCmd:       "<delay\0727>"  # \072 == : to avoid awk problem
#Class1TCFWaitCmd:       "<delay\0727>"
#Class1EOPWaitCmd:       "<delay\0729>"
#Class1SwitchingCmd:     "<delay\0727>"  # assumption: +FRS not supported

Still however I would receive the following (unable to send a fax - Just a sample of the log file):
                                                SEND training at v.27ter 4800 bit/s
May 03 12:03:43.46: [14419]: DELAY 70 ms
May 03 12:03:43.53: [14419]: <-- [9:AT+FTH=3\r]
May 03 12:03:43.53: [14419]: MODEM WRITE ERROR: errno 5
May 03 12:03:43.53: [14419]: Error sending T.30 prologue frames
May 03 12:03:43.53: [14419]: SEND training at v.27ter fallback mode 2400 bit/s
May 03 12:03:43.53: [14419]: DELAY 70 ms
May 03 12:03:43.60: [14419]: <-- [9:AT+FTH=3\r]
May 03 12:03:43.60: [14419]: MODEM WRITE ERROR: errno 5
May 03 12:03:43.60: [14419]: Error sending T.30 prologue frames
May 03 12:03:43.60: [14419]: TRAINING failed
May 03 12:03:43.60: [14419]: SEND: Failure to train remote modem at 2400 bps or minimum speed; Giving up after 3 attempts to send s
ame page "docq/doc12.ps;c1", dirnum 0
May 03 12:03:43.60: [14419]: <-- [9:AT+FTH=3\r]
May 03 12:03:43.60: [14419]: MODEM WRITE ERROR: errno 5
May 03 12:03:43.60: [14419]: <-- [5:ATH0\r]
May 03 12:03:43.60: [14419]: MODEM WRITE ERROR: errno 5
May 03 12:03:43.60: [14419]: SESSION END


What else should I try or is sending faxes for me just totally out of the question.


Kevin Hilton  kev_hilton@xxxxxxxxxxx



Project hosted by iFAX Solutions