HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] FaxDispatch and called fax



Nothing even with RingsBeforeAnswer:      3
We've got the same:

[root@vlirofip log]# more c000000237
Jan 25 18:54:12.73: [ 6118]: SESSION BEGIN 000000237 34916405075
Jan 25 18:54:12.73: [ 6118]: HylaFAX (tm) Version 4.3.1
Jan 25 18:54:12.73: [ 6118]: <-- [4:ATA\r]
Jan 25 18:54:12.73: [ 6118]: --> [16:NMBR = 915587599]
Jan 25 18:54:12.73: [ 6118]: --> [16:NDID = 916405008]
Jan 25 18:54:12.73: [ 6118]: --> [4:RING]
Jan 25 18:54:18.08: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:18.08: [ 6118]: RECV FAX: begin
Jan 25 18:54:18.09: [ 6118]: <-- data [32]
Jan 25 18:54:18.09: [ 6118]: <-- data [2]
Jan 25 18:54:19.98: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:19.98: [ 6118]: <-- data [23]
Jan 25 18:54:19.98: [ 6118]: <-- data [2]
Jan 25 18:54:20.70: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:20.70: [ 6118]: <-- data [13]
Jan 25 18:54:20.70: [ 6118]: <-- data [2]
Jan 25 18:54:21.19: [ 6118]: --> [2:OK]
Jan 25 18:54:21.19: [ 6118]: <-- [9:AT+FRH=3\r]
Jan 25 18:54:22.15: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:23.64: [ 6118]: --> [2:OK]
Jan 25 18:54:23.64: [ 6118]: REMOTE TSI "Fax Corporativo"
Jan 25 18:54:23.64: [ 6118]: <-- [9:AT+FRH=3\r]
Jan 25 18:54:23.64: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:23.87: [ 6118]: --> [2:OK]
Jan 25 18:54:23.87: [ 6118]: REMOTE wants 14400 bit/s
Jan 25 18:54:23.87: [ 6118]: REMOTE wants A4 page width (215 mm)
Jan 25 18:54:23.87: [ 6118]: REMOTE wants unlimited page length
Jan 25 18:54:23.87: [ 6118]: REMOTE wants 7.7 line/mm
Jan 25 18:54:23.87: [ 6118]: REMOTE wants 2-D MR
Jan 25 18:54:23.87: [ 6118]: RECV training at v.17 14400 bit/s
Jan 25 18:54:23.87: [ 6118]: <-- [11:AT+FRM=145\r]
Jan 25 18:54:25.70: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:27.17: [ 6118]: RECV: TCF 2710 bytes, 3% non-zero, 2612 zero-run
Jan 25 18:54:27.17: [ 6118]: --> [10:NO CARRIER]
Jan 25 18:54:27.17: [ 6118]: <-- [9:AT+FRS=7\r]
Jan 25 18:54:27.24: [ 6118]: --> [2:OK]
Jan 25 18:54:27.24: [ 6118]: TRAINING succeeded
Jan 25 18:54:27.26: [ 6118]: <-- [9:AT+FTH=3\r]
Jan 25 18:54:27.26: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:27.26: [ 6118]: <-- data [3]
Jan 25 18:54:27.26: [ 6118]: <-- data [2]
Jan 25 18:54:28.30: [ 6118]: --> [2:OK]
Jan 25 18:54:28.30: [ 6118]: <-- [11:AT+FRM=146\r]
Jan 25 18:54:29.51: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:29.51: [ 6118]: MODEM input buffering enabled
Jan 25 18:54:29.51: [ 6118]: RECV: begin page
Jan 25 18:54:35.26: [ 6118]: RECV: 2324 total lines, 0 bad lines, 0
consecutive bad lines
Jan 25 18:54:35.26: [ 6118]: RECV: end page
Jan 25 18:54:35.26: [ 6118]: --> [10:NO CARRIER]
Jan 25 18:54:35.26: [ 6118]: <-- [9:AT+FRH=3\r]
Jan 25 18:54:35.58: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:36.48: [ 6118]: --> [2:OK]
Jan 25 18:54:36.48: [ 6118]: RECV recv EOP (no more pages or documents)
Jan 25 18:54:36.48: [ 6118]: <-- [9:AT+FRS=7\r]
Jan 25 18:54:36.65: [ 6118]: --> [2:OK]
Jan 25 18:54:36.71: [ 6118]: <-- [9:AT+FTH=3\r]
Jan 25 18:54:36.80: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:36.80: [ 6118]: <-- data [3]
Jan 25 18:54:36.80: [ 6118]: <-- data [2]
Jan 25 18:54:37.87: [ 6118]: --> [2:OK]
Jan 25 18:54:37.87: [ 6118]: RECV send MCF (message confirmation)
Jan 25 18:54:37.90: [ 6118]: <-- [9:AT+FRH=3\r]
Jan 25 18:54:38.81: [ 6118]: --> [7:CONNECT]
Jan 25 18:54:39.72: [ 6118]: --> [2:OK]
Jan 25 18:54:39.72: [ 6118]: RECV recv DCN (disconnect)
Jan 25 18:54:39.74: [ 6118]: RECV FAX: end
Jan 25 18:54:39.75: [ 6118]: SESSION END


But we get the line: Jan 25 18:54:12.73: [ 6118]: --> [16:NDID = 916405008]

Couldn't get it from here?
How it works with ModemRingResponse as Aidan said.



2007/1/25, Darren Nickerson <darren.nickerson@xxxxxxxx>:
Try setting:

RingsBeforeAnswer: 2

instead of 1. and let us know if that helps?

-Darren


----- Original Message ----- From: "Fernando" <fernando.alhambra@xxxxxxxxx> To: "Lee Howard" <faxguy@xxxxxxxxxxxxxxxx> Cc: <hylafax-users@xxxxxxxxxxx> Sent: Thursday, January 25, 2007 11:47 AM Subject: Re: [hylafax-users] FaxDispatch and called fax


>I couldn't get it, > > Extract FaxDispatch: > > TEMPLATE=es; > SENDTO=FaxMaster; # by default email to > FaxMaster > > echo "$CALLID1" >> /tmp/fax_CALLID1 # for testing > > case "$CALLID1" in > *5008) SENDTO=cuenta1@xxxxx; FILETYPE=pdf;; > *5010) SENDTO=cuenta2@xxxxx; FILETYPE=pdf;; > esac > > > Extract config.ttyx0-1: > > SessionTracing: 0x2FFF > # > > > # > CountryCode: 34 > AreaCode: > FAXNumber: 916405008 > LongDistancePrefix: > InternationalPrefix: 00 > DialStringRules: etc/dialrules > ServerTracing: 30 > SessionTracing: 30 > RecvFileMode: 0600 > LogFileMode: 0600 > DeviceMode: 0600 > RingsBeforeAnswer: 1 > SpeakerVolume: off > GettyArgs: "-h %l dx_%s" > LocalIdentifier: "HylaFAX" > TagLineFont: etc/lutRS18.pcf > TagLineFormat: "From %%l|%c|Page %%P of %%T" > > ModemType: Class1 # use class 1 interface > ModemFlowControl: rtscts # default > > ModemRevQueryCmd: AT+FREV? > > ModemResetCmds: "AT#CID=10" # enable ANI/DNIS reporting > #RingsBeforeAnswer: 2 # collect info between two RINGs > #CallIDPattern: "NMBR = " # pattern string for calling > number > CallIDPattern: "NDID = " # pattern string for called number > > > After the fax is arrived to the FaxMaster, when I see the file > /tmp/fax_CALLID1, this is empty, no $CALLID1 value. > > I've even try to restart the modem, but no results. > > > 2007/1/25, Lee Howard <faxguy@xxxxxxxxxxxxxxxx>: >> Fernando wrote: >> >> > We have a HylaFAX 4.3.1 on a virtual 2.4.21-37.ELsmp RHE 3 with >> > t38modem and two tty started. One of them with a real fax number but >> > not the other one. So the inbound calls can enter via ttyx0 or via >> > ttyx1 for the same called number. >> > >> > I don't know how to redirect the inbound faxes by the called fax >> > number. Any variable? >> >> >> With t38modem the dialed number (DID) information comes through with the >> Caller*ID as "NDID=dialed_number" >> >> You can gather it by having this in your modem config file: >> >> CallIDPattern: "NDID=" >> >> And then it will be available in FaxDispatch as $CALLIDx where "x" >> corresponds to the sequence number of the above CallIDPattern in your >> config file. (i.e. if it's the only CallIDPattern in your config file >> then it will be $CALLID1.) >> >> Lee. >> > > > -- > FAP > > ____________________ HylaFAX(tm) Users Mailing List > _______________________ > To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi > On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null > *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx* > >




--
FAP

____________________ HylaFAX(tm) Users Mailing List _______________________
 To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions