我有12个调制解调器连接到我的HylaFax服务器,似乎有时我的一些调制解调器卡在"发送作业"状态,直到我断开调制解调器的线路以终止作业。
调制解调器可以永远保持这种状态而不需要任何通知,以下是我在服务器跟踪中得到的关于被卡住的作业的信息:
Jan 26 10:33:53.57: [29579]: SESSION BEGIN 000028267 79137356
Jan 26 10:33:53.57: [29579]: HylaFAX (tm) Version 6.0.6
Jan 26 10:33:53.57: [29579]: SEND FAX: JOB 5166 DEST 79137356 COMMID 000028267 DEVICE '/dev/ttyT38-23' FROM 'tuxfax <tuxfax@tuxfax.tux>' USER apache
Jan 26 10:33:53.57: [29579]: STATE CHANGE: RUNNING -> SENDING
Jan 26 10:33:53.57: [29579]: <-- [12:AT+FCLASS=1r]
Jan 26 10:33:53.57: [29579]: --> [2:OK]
Jan 26 10:33:53.57: [29579]: DIAL 79137356
Jan 26 10:33:53.57: [29579]: <-- [10:ATDT79137356r]
Jan 26 10:34:09.51: [29579]: --> [7:CONNECT]
Jan 26 10:34:17.55: [29579]: --> HDLC<40:FF C0 04 FF FF FF FF 73 1D 01 01 88 A1 B0 BB 00 00 BB BB 00 00 BB BB 00 00 00 00 00 00 00 00 B7 44 0D 00 00 09 00 E1 4F>
Jan 26 10:34:17.55: [29579]: --> [2:OK]
Jan 26 10:34:17.55: [29579]: REMOTE NSF "FF FF FF FF CE B8 80 80 11 85 0D DD 00 00 DD DD 00 00 DD DD 00 00 00 00 00 00 00 00 ED 22 B0 00 00 90 00"
Jan 26 10:34:17.55: [29579]: NSF remote fax equipment: unknown
Jan 26 10:34:17.55: [29579]: <-- [9:AT+FRH=3r]
Jan 26 10:34:17.56: [29579]: --> [7:CONNECT]
Jan 26 10:34:18.27: [29579]: --> HDLC<25:FF C0 02 CC 9C 4C AC 1C 4C 4C EC 04 04 04 04 04 04 04 04 04 04 04 04 8B C9>
Jan 26 10:34:18.27: [29579]: --> [2:OK]
Jan 26 10:34:18.27: [29579]: REMOTE CSI "77225292"
Jan 26 10:34:18.27: [29579]: <-- [9:AT+FRH=3r]
Jan 26 10:34:18.28: [29579]: --> [7:CONNECT]
Jan 26 10:34:18.61: [29579]: --> HDLC<11:FF C8 01 00 73 1D 01 01 88 03 AE>
Jan 26 10:34:18.61: [29579]: --> [2:OK]
Jan 26 10:34:18.61: [29579]: REMOTE best rate 9600 bit/s
Jan 26 10:34:18.61: [29579]: REMOTE max A4 page width (215 mm)
Jan 26 10:34:18.61: [29579]: REMOTE max unlimited page length
Jan 26 10:34:18.61: [29579]: REMOTE best vres 15.4 line/mm
Jan 26 10:34:18.61: [29579]: REMOTE format support: MH, MR
Jan 26 10:34:18.61: [29579]: REMOTE best 20 ms, 10 ms/scanline
Jan 26 10:34:18.61: [29579]: USE 9600 bit/s
Jan 26 10:34:18.61: [29579]: SEND file "docq/doc5166.pdf;f0"
Jan 26 10:34:18.61: [29579]: USE A4 page width (215 mm)
Jan 26 10:34:18.61: [29579]: USE unlimited page length
Jan 26 10:34:18.61: [29579]: USE 3.85 line/mm
Jan 26 10:34:18.61: [29579]: USE 2-D MR
Jan 26 10:34:18.61: [29579]: USE 20 ms/scanline
Jan 26 10:34:18.61: [29579]: SEND training at v.29 9600 bit/s
Jan 26 10:34:18.61: [29579]: <-- [9:AT+FRS=7r]
Jan 26 10:34:18.69: [29579]: --> [2:OK]
Jan 26 10:34:18.69: [29579]: <-- [9:AT+FTH=3r]
Jan 26 10:34:18.69: [29579]: --> [7:CONNECT]
Jan 26 10:34:18.69: [29579]: <-- HDLC<23:FF C0 C2 1C 1C 1C 0C 2C CC 8C EC F4 0C AC EC 4C CC 04 0A F2 C2 22 04>
Jan 26 10:34:18.69: [29579]: <-- data [23]
Jan 26 10:34:18.69: [29579]: <-- data [2]
Jan 26 10:34:20.23: [29579]: --> [7:CONNECT]
Jan 26 10:34:20.23: [29579]: <-- HDLC<6:FF C8 C1 00 61 10>
Jan 26 10:34:20.23: [29579]: <-- data [6]
Jan 26 10:34:20.23: [29579]: <-- data [2]
Jan 26 10:34:20.53: [29579]: --> [2:OK]
Jan 26 10:34:20.53: [29579]: <-- [9:AT+FTS=7r]
Jan 26 10:34:20.66: [29579]: --> [2:OK]
Jan 26 10:34:20.66: [29579]: <-- [10:AT+FTM=96r]
Jan 26 10:34:20.66: [29579]: --> [7:CONNECT]
Jan 26 10:34:20.66: [29579]: <-- data [1024]
Jan 26 10:34:20.66: [29579]: <-- data [776]
Jan 26 10:34:20.66: [29579]: <-- data [2]
Jan 26 10:34:22.52: [29579]: --> [2:OK]
Jan 26 10:34:22.52: [29579]: <-- [9:AT+FRH=3r]
Jan 26 10:34:23.47: [29579]: --> [7:CONNECT]
Jan 26 10:34:24.51: [29579]: --> HDLC<5:FF C8 21 57 BE>
Jan 26 10:34:24.51: [29579]: --> [2:OK]
Jan 26 10:34:24.51: [29579]: TRAINING succeeded
Jan 26 10:34:24.51: [29579]: <-- [9:AT+FRS=7r]
Jan 26 10:34:24.59: [29579]: --> [2:OK]
Jan 26 10:34:24.59: [29579]: <-- [10:AT+FTM=96r]
Jan 26 10:34:24.59: [29579]: --> [7:CONNECT]
Jan 26 10:34:24.59: [29579]: SEND begin page
Jan 26 10:34:24.59: [29579]: Reading MMR-compressed image file
Jan 26 10:34:24.60: [29579]: <-- data [1029]
Jan 26 10:34:24.60: [29579]: <-- data [1024]
Jan 26 10:34:24.60: [29579]: <-- data [1024]
Jan 26 10:34:24.60: [29579]: <-- data [1024]
Jan 26 10:34:24.60: [29579]: <-- data [1024]
Jan 26 10:34:24.60: [29579]: <-- data [1026]
Jan 26 10:34:24.60: [29579]: <-- data [1043]
Jan 26 10:34:24.60: [29579]: <-- data [1039]
Jan 26 10:34:24.60: [29579]: <-- data [1042]
Jan 26 10:34:24.60: [29579]: <-- data [1034]
Jan 26 10:34:24.60: [29579]: <-- data [1034]
Jan 26 10:34:24.60: [29579]: <-- data [1036]
Jan 26 10:34:24.60: [29579]: <-- data [1032]
Jan 26 10:34:24.60: [29579]: <-- data [1028]
Jan 26 10:34:24.60: [29579]: <-- data [1035]
Jan 26 10:34:24.60: [29579]: <-- data [1033]
Jan 26 10:34:24.60: [29579]: <-- data [1033]
Jan 26 10:34:24.60: [29579]: <-- data [1030]
Jan 26 10:34:24.60: [29579]: <-- data [1027]
Jan 26 10:34:24.60: [29579]: <-- data [1026]
Jan 26 10:34:24.60: [29579]: <-- data [1025]
Jan 26 10:34:24.60: [29579]: <-- data [1035]
Jan 26 10:34:24.60: [29579]: <-- data [1028]
Jan 26 10:34:24.60: [29579]: <-- data [1024]
Jan 26 10:34:24.60: [29579]: <-- data [1030]
Jan 26 10:34:24.60: [29579]: <-- data [264]
Jan 26 10:34:24.60: [29579]: SENT 25864 bytes of data
Jan 26 10:34:24.60: [29579]: <-- data [1031]
Jan 26 10:34:24.60: [29579]: <-- data [1038]
Jan 26 10:34:24.60: [29579]: <-- data [1039]
Jan 26 10:34:24.60: [29579]: <-- data [868]
Jan 26 10:34:24.60: [29579]: SENT 3931 bytes of data
Jan 26 10:34:24.60: [29579]: SEND 2D RTC
Jan 26 10:34:24.60: [29579]: <-- data [30]
Jan 26 10:34:24.60: [29579]: <-- data [2]
Jan 26 10:34:24.60: [29579]: SEND end page
Jan 26 10:34:49.80: [29579]: --> [2:OK]
Jan 26 10:34:49.80: [29579]: <-- [9:AT+FTS=9r]
Jan 26 10:34:49.96: [29579]: --> [2:OK]
Jan 26 10:34:49.96: [29579]: SEND send EOP (no more pages or documents)
Jan 26 10:34:49.96: [29579]: <-- [9:AT+FTH=3r]
Jan 26 10:34:49.96: [29579]: --> [7:CONNECT]
Jan 26 10:34:49.96: [29579]: <-- HDLC<3:FF C8 F4>
Jan 26 10:34:49.96: [29579]: <-- data [3]
Jan 26 10:34:49.96: [29579]: <-- data [2]
Jan 26 10:34:51.00: [29579]: --> [2:OK]
Jan 26 10:34:51.00: [29579]: <-- [9:AT+FRH=3r]
Jan 26 10:34:51.87: [29579]: --> [7:CONNECT]
Jan 26 10:34:52.91: [29579]: --> HDLC<5:FF C8 5F C8 E7>
Jan 26 10:34:52.91: [29579]: --> [2:OK]
Jan 26 10:34:52.91: [29579]: SEND recv DCN (disconnect)
Jan 26 10:34:52.91: [29579]: Remote fax disconnected prematurely
Jan 26 10:34:52.91: [29579]: <-- [9:AT+FRS=7r]
Jan 26 10:34:52.98: [29579]: --> [2:OK]
Jan 26 10:34:52.98: [29579]: <-- [9:AT+FTH=3r]
Jan 26 10:34:52.99: [29579]: --> [7:CONNECT]
Jan 26 10:34:52.99: [29579]: <-- HDLC<3:FF C8 DF>
Jan 26 10:34:52.99: [29579]: <-- data [3]
Jan 26 10:34:52.99: [29579]: <-- data [2]
据我所知,调制解调器(永远)在等待远程传真的响应。
服务器配置为:HylaFax 6.0.6/CentOS 6.3
问题是:
- 有没有任何配置参数可以避免海拉法克斯的这种冻结
- 作为一个快速的解决方法,我可以编写一个脚本来监控发送作业,并终止在"发送作业"中持续的作业,但我无论如何都找不到终止正在运行的作业(而不是排队的作业)的方法
在开发手机时,我只接触过一些传真,但我了解到传真是一个"测试、测试、测试"的问题,需要付出很大的努力才能开始工作(在GSM上运行时,由于一些不可能的时间问题,传真代码在某些情况下甚至不得不开始发送对预期接收到的东西的响应)。即使您按照规范实现了所有内容,也不能保证一切正常。今天,大多数(所有?)移动网络和手机都放弃了对传真的支持,这是有原因的。
据我所知,调制解调器(永远)在等待远程传真的响应。
可能是这种情况,据我所知,既不怪远程传真机,也不怪hylafax。实现一些监控服务似乎是处理此问题的唯一明智和可靠的方法。