HylaFAX The world's
most advanced open source fax server
Re: [hylafax-users] FaxDispatch and called fax
I couldn't get it,
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;;
GettyArgs: "-h %l dx_%s"
TagLineFormat: "From %%l|%c|Page %%P of %%T"
ModemType: Class1 # use class 1 interface
ModemFlowControl: rtscts # default
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
I've even try to restart the modem, but no results.
After the fax is arrived to the FaxMaster, when I see the file
/tmp/fax_CALLID1, this is empty, no $CALLID1 value.
2007/1/25, Lee Howard <faxguy@xxxxxxxxxxxxxxxx>:
> 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:
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*