LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-21-2004, 05:35 AM   #1
Sailaja Reddy
LQ Newbie
 
Registered: Jul 2004
Location: INDIA
Posts: 14

Rep: Reputation: 0
mgetty+sendfax not working in redhat linux 9


Hi,

First of all, sorry for posing long query.

I am working in mobiles testing tool development project and trying to test the sendfax between the mobiles. I am not able to send the fax. I am getting the following error:

root@aims-pc-111]# sendfax -x 5 -l /dev/ms0 "9848350469" /home/fax_send/fax_doc.g3

Trying fax device '/dev/ms0'... OK.
Dialing 9848350469... OK.
sending '/home/fax_send/fax_doc.g3'...
sendfax: FAILED to transmit '/home/fax_send/fax_doc.g3'.

Transmission error: +FHNG:-4 (Unexpected 'ERROR' or 'NO CARRIER' response (int.))

I have tried with ericsson Z600, T68 and R520 mobiles and getting the same specified error.

Basically I have redhat linux 9 (kernel:2.4.20-8) PC and done the following:
1. Modified the config files (mgetty.config and sendfax.config)
2. Installed the following rpms and tried:
- mgetty-1.1.30-2.i386.rpm
- mgetty-sendfax-1.1.30-2.i386.rpm
- mgetty-voice-1.1.30-2.i386.rpm
- mgetty-viewfax-1.1.30-2.i386.rpm
3. Uninstalled the rpms and installed the source code (mgetty-1.1.31) and tried.

In both the cases (2&3), the same error is coming.

Can somebody please throw some light on the error and tell me where I am going wrong. Please let me know if you need more info.

Your help is highly appreciated.

ps: I have data & fax support for the SIMS

Please see the sendfax.log for the mobiles T68 and Z600:

--
12/21 15:10:56 set modem_quirks: 0x0008
12/21 15:10:56 sendfax: experimental test release 1.1.30-Dec16
12/21 15:10:56 sendfax.c compiled at Jan 25 2003, 00:13:24
12/21 15:10:56 sending fax to 9848898782
12/21 15:10:56 checking fax_doc.g3
12/21 15:10:56 makelock(ms3) called
12/21 15:10:56 do_makelock: lock='/var/lock/LCK..ms3'
12/21 15:10:56 lock made
12/21 15:10:56 tss: set speed to 38400 (017)
12/21 15:10:56 tio_set_flow_control( HARD )
12/21 15:10:56 ms3 fax_open_device succeeded, ms3 -> 4
12/21 15:10:56 ms3 reading specific data for port 'ms3'
12/21 15:10:56 ms3 reading /etc/mgetty+sendfax/sendfax.config...
12/21 15:10:56 ms3 conf lib: read: 'verbose y'
12/21 15:10:56 ms3 conf lib: read: 'debug 5'
12/21 15:10:56 ms3 conf lib: read: 'fax-devices ttyC0:ttyC1:ttyC2:ttyC3'
12/21 15:10:56 ms3 conf lib: read: 'fax-id 49 172 213 5400'
12/21 15:10:56 ms3 conf lib: read: 'max-tries 3'
12/21 15:10:56 ms3 conf lib: read: 'max-tries-continue y'
12/21 15:10:56 ms3 conf lib: read: 'modem-quirks 0x08'
12/21 15:10:56 ms3 key: 'fax-devices', type=1, flags=4, data=(ignored)
12/21 15:10:56 ms3 key: 'modem-init', type=1, flags=0, data=(empty)
12/21 15:10:56 ms3 key: 'modem-handshake', type=1, flags=0, data=(empty)
12/21 15:10:56 ms3 key: 'modem-type', type=1, flags=1, data=auto
12/21 15:10:56 ms3 key: 'modem-quirks', type=0, flags=3, data=8
12/21 15:10:56 ms3 key: 'fax-send-flow', type=4, flags=1, data=7
12/21 15:10:56 ms3 key: 'fax-rec-flow', type=4, flags=1, data=7
12/21 15:10:56 ms3 key: 'max-tries', type=0, flags=3, data=3
12/21 15:10:56 ms3 key: 'max-tries-continue', type=3, flags=3, data=TRUE
12/21 15:10:56 ms3 key: 'speed', type=0, flags=1, data=38400
12/21 15:10:56 ms3 key: 'switchbd', type=0, flags=1, data=0
12/21 15:10:56 ms3 key: 'open-delay', type=0, flags=0, data=(empty)
12/21 15:10:56 ms3 key: 'ignore-carrier', type=3, flags=1, data=TRUE
12/21 15:10:56 ms3 key: 'dial-prefix', type=1, flags=1, data=ATD
12/21 15:10:56 ms3 key: 'fax-id', type=1, flags=3, data=49 172 213 5400
12/21 15:10:56 ms3 key: 'poll-dir', type=1, flags=1, data=.
12/21 15:10:56 ms3 key: 'normal-res', type=3, flags=1, data=FALSE
12/21 15:10:56 ms3 key: 'fax-min-speed', type=0, flags=1, data=0
12/21 15:10:56 ms3 key: 'fax-max-speed', type=0, flags=1, data=14400
12/21 15:10:56 ms3 key: 'debug', type=0, flags=3, data=5
12/21 15:10:56 ms3 key: 'verbose', type=3, flags=3, data=TRUE
12/21 15:10:56 ms3 key: '', type=3, flags=1, data=FALSE
12/21 15:10:56 ms3 key: 'page-header', type=1, flags=0, data=(empty)
12/21 15:10:56 ms3 key: '', type=3, flags=1, data=FALSE
12/21 15:10:56 ms3 key: '', type=3, flags=1, data=FALSE
12/21 15:10:56 ms3 key: '', type=1, flags=1, data=
12/21 15:10:56 ms3 set modem_quirks: 0x0008
12/21 15:10:56 ms3 tss: set speed to 38400 (017)
12/21 15:10:57 ms3 mdm_send: 'ATV1Q0'
12/21 15:11:04 ms3 mdm_command: string '+CPIN: READY'
12/21 15:11:04 ms3 mdm_command: string 'OK' -> OK
12/21 15:11:04 ms3 mdm_send: 'ATI'
12/21 15:11:04 ms3 mdm_gis: string 1: 'T68'
12/21 15:11:04 ms3 mdm_identify: string 'T68'
12/21 15:11:04 ms3 non-numeric ID string: 'T68'
12/21 15:11:04 ms3 modem quirks: 0008
12/21 15:11:04 ms3 mdm_send: 'AT+FCLASS=2.0'
12/21 15:11:04 ms3 mdm_command: string 'ERROR' -> ERROR
12/21 15:11:04 ms3 mdm_send: 'AT+FCLASS=2'
12/21 15:11:04 ms3 mdm_command: string 'OK' -> OK
12/21 15:11:04 ms3 mdm_send: 'AT+FLID="49 172 213 5400"'
12/21 15:11:04 ms3 mdm_command: string 'OK' -> OK
12/21 15:11:04 ms3 mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0'
12/21 15:11:04 ms3 mdm_command: string 'ERROR' -> ERROR
12/21 15:11:05 ms3 mdm_send: 'AT+FDCC=1,3,0,2,0,0,0,0'
12/21 15:11:05 ms3 mdm_command: string 'OK' -> OK
12/21 15:11:05 ms3 mdm_send: 'AT+FBOR=0'
12/21 15:11:05 ms3 mdm_command: string 'OK' -> OK
12/21 15:11:05 ms3 fax_send: 'ATD9848898782'
12/21 15:11:05 ms3 fax_wait_for(OK)
12/21 15:11:05 ms3 fax_wait_for: string '*ECAV: 1,1,4,,,"9848898782",129'
12/21 15:11:06 ms3 fax_wait_for: string '*ECAV: 1,2,4'
12/21 15:11:17 ms3 fax_wait_for: string 'OK'** found **
12/21 15:11:17 ms3 sendfax: IGNORE DCD (carrier) status
12/21 15:11:17 ms3 fax_send_page("fax_doc.g3") started...
12/21 15:11:17 ms3 tio_set_flow_control( HARD )
12/21 15:11:17 ms3 fax_send: 'AT+FDT'
12/21 15:11:17 ms3 fax_wait_for(CONNECT)
12/21 15:11:17 ms3 fax_wait_for: string 'pbb'
12/21 15:11:17 ms3 fax_wait_for: string 'ERROR'
12/21 15:11:17 ms3 ABORTING: line='ERROR'
12/21 15:11:17 ms3 AT+FDT -> some error (-4), abort fax send!
12/21 15:11:17 ##### failed transmitting fax_doc.g3: phone="9848898782", +FHS:-4, dev=ms3, time=12s, acct=""

12/21 15:11:17 ms3 fax_send: 'AT+FCLASS=0'
12/21 15:11:17 ms3 removing lock file
--
12/21 14:58:06 set modem_quirks: 0x0008
12/21 14:58:06 sendfax: experimental test release 1.1.30-Dec16
12/21 14:58:06 sendfax.c compiled at Jan 25 2003, 00:13:24
12/21 14:58:06 sending fax to 9848898742
12/21 14:58:06 checking fax_doc.g3
12/21 14:58:06 makelock(ttyG0_00) called
12/21 14:58:06 do_makelock: lock='/var/lock/LCK..ttyG0_00'
12/21 14:58:06 lock made
12/21 14:58:06 tss: set speed to 38400 (017)
12/21 14:58:06 tio_set_flow_control( HARD )
12/21 14:58:06 _00 fax_open_device succeeded, ttyG0_00 -> 4
12/21 14:58:06 _00 reading specific data for port 'ttyG0_00'
12/21 14:58:06 _00 reading /etc/mgetty+sendfax/sendfax.config...
12/21 14:58:06 _00 conf lib: read: 'verbose y'
12/21 14:58:06 _00 conf lib: read: 'debug 5'
12/21 14:58:06 _00 conf lib: read: 'fax-devices ttyC0:ttyC1:ttyC2:ttyC3'
12/21 14:58:06 _00 conf lib: read: 'fax-id 49 172 213 5400'
12/21 14:58:06 _00 conf lib: read: 'max-tries 3'
12/21 14:58:06 _00 conf lib: read: 'max-tries-continue y'
12/21 14:58:06 _00 conf lib: read: 'modem-quirks 0x08'
12/21 14:58:06 _00 key: 'fax-devices', type=1, flags=4, data=(ignored)
12/21 14:58:06 _00 key: 'modem-init', type=1, flags=0, data=(empty)
12/21 14:58:06 _00 key: 'modem-handshake', type=1, flags=0, data=(empty)
12/21 14:58:06 _00 key: 'modem-type', type=1, flags=1, data=auto
12/21 14:58:06 _00 key: 'modem-quirks', type=0, flags=3, data=8
12/21 14:58:06 _00 key: 'fax-send-flow', type=4, flags=1, data=7
12/21 14:58:06 _00 key: 'fax-rec-flow', type=4, flags=1, data=7
12/21 14:58:06 _00 key: 'max-tries', type=0, flags=3, data=3
12/21 14:58:06 _00 key: 'max-tries-continue', type=3, flags=3, data=TRUE
12/21 14:58:06 _00 key: 'speed', type=0, flags=1, data=38400
12/21 14:58:06 _00 key: 'switchbd', type=0, flags=1, data=0
12/21 14:58:06 _00 key: 'open-delay', type=0, flags=0, data=(empty)
12/21 14:58:06 _00 key: 'ignore-carrier', type=3, flags=1, data=TRUE
12/21 14:58:06 _00 key: 'dial-prefix', type=1, flags=1, data=ATD
12/21 14:58:06 _00 key: 'fax-id', type=1, flags=3, data=49 172 213 5400
12/21 14:58:06 _00 key: 'poll-dir', type=1, flags=1, data=.
12/21 14:58:06 _00 key: 'normal-res', type=3, flags=1, data=FALSE
12/21 14:58:06 _00 key: 'fax-min-speed', type=0, flags=1, data=0
12/21 14:58:06 _00 key: 'fax-max-speed', type=0, flags=1, data=14400
12/21 14:58:06 _00 key: 'debug', type=0, flags=3, data=5
12/21 14:58:06 _00 key: 'verbose', type=3, flags=3, data=TRUE
12/21 14:58:06 _00 key: '', type=3, flags=1, data=FALSE
12/21 14:58:06 _00 key: 'page-header', type=1, flags=0, data=(empty)
12/21 14:58:06 _00 key: '', type=3, flags=1, data=FALSE
12/21 14:58:06 _00 key: '', type=3, flags=1, data=FALSE
12/21 14:58:06 _00 key: '', type=1, flags=1, data=
12/21 14:58:06 _00 set modem_quirks: 0x0008
12/21 14:58:06 _00 tss: set speed to 38400 (017)
12/21 14:58:06 _00 mdm_send: 'ATV1Q0'
12/21 14:58:06 _00 mdm_command: string '+CPIN: READY'
12/21 14:58:07 _00 mdm_command: string 'OK' -> OK
12/21 14:58:07 _00 mdm_send: 'ATI'
12/21 14:58:07 _00 mdm_gis: string 1: 'Z600'
12/21 14:58:07 _00 mdm_identify: string 'Z600'
12/21 14:58:07 _00 non-numeric ID string: 'Z600'
12/21 14:58:07 _00 modem quirks: 0008
12/21 14:58:07 _00 mdm_send: 'AT+FCLASS=2.0'
12/21 14:58:07 _00 mdm_command: string 'ERROR' -> ERROR
12/21 14:58:07 _00 mdm_send: 'AT+FCLASS=2'
12/21 14:58:07 _00 mdm_command: string 'OK' -> OK
12/21 14:58:07 _00 mdm_send: 'AT+FLID="49 172 213 5400"'
12/21 14:58:07 _00 mdm_command: string 'OK' -> OK
12/21 14:58:07 _00 mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0'
12/21 14:58:07 _00 mdm_command: string 'ERROR' -> ERROR
12/21 14:58:07 _00 mdm_send: 'AT+FDCC=1,3,0,2,0,0,0,0'
12/21 14:58:07 _00 mdm_command: string 'OK' -> OK
12/21 14:58:07 _00 mdm_send: 'AT+FBOR=0'
12/21 14:58:07 _00 mdm_command: string 'OK' -> OK
12/21 14:58:07 _00 fax_send: 'ATD9848898742'
12/21 14:58:07 _00 fax_wait_for(OK)
12/21 14:58:07 _00 fax_wait_for: string '*ECAV: 1,1,4,,,"9848898742",129'
12/21 14:58:09 _00 fax_wait_for: string '*ECAV: 1,2,4'
12/21 14:58:29 _00 fax_wait_for: string '+CPIN: READY'
12/21 14:58:29 _00 fax_wait_for: string 'OK'** found **
12/21 14:58:29 _00 sendfax: IGNORE DCD (carrier) status
12/21 14:58:29 _00 fax_send_page("fax_doc.g3") started...
12/21 14:58:29 _00 tio_set_flow_control( HARD )
12/21 14:58:29 _00 fax_send: 'AT+FDT'
12/21 14:58:29 _00 fax_wait_for(CONNECT)
12/21 14:58:29 _00 fax_wait_for: string 'ERROR'
12/21 14:58:29 _00 ABORTING: line='ERROR'
12/21 14:58:29 _00 AT+FDT -> some error (-4), abort fax send!
12/21 14:58:29 ##### failed transmitting fax_doc.g3: phone="9848898742", +FHS:-4, dev=ttyG0_00, time=22s, acct=""

12/21 14:58:29 _00 fax_send: 'AT+FCLASS=0'
12/21 14:58:30 _00 removing lock file

Regards,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need distro that contains mgetty+sendfax lothario Linux - Software 4 11-15-2004 04:02 AM
increasing retry timeout with mgetty/sendfax? rj1 Linux - General 0 11-09-2004 11:39 PM
Dial-In Server not working! Mgetty - DSR is Off! diogo_cc Linux - Networking 0 03-24-2004 02:02 PM
Conexant Drivers + mgetty+sendfax daphantom Mandriva 2 08-24-2003 01:52 PM
mgetty+sendfax+voice I'm confused by that gilkyboy Linux - Newbie 2 06-12-2001 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration