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

I couldn't get it,

Extract FaxDispatch:

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;;

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.)



____________________ 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