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] Replace numbers in the subject with character



Anton Setiyono wrote:

I'm using hylaFAX+ 4.3.0.4 and is wondering if hylaFAX supports replacing numbers (e.g Facsimile received from +62 232 233233223) with some characters, so the fax will show like this : Facsimile received from PT SUN MOTOR GROUP.
That characters will be retreived from hylafax's config file, according to the numbers specified. (like small database).


Is that possible ?


Yes. One of my customers does this in their etc/FaxDictionary file:

--------------------------------
PAGES=`faxinfo $FILE | grep Pages: | sed 's/.*Pages: //g'`

if [ -n "$CALLID2" ] && [ "$CALLID2" != "Anonymous" ]; then
   DICTRECEIVEDFROM="\$PAGES page fax received from \$CALLID2";
else
   if [ -n "$CALLID1" ] && [ "$CALLID1" != "anonymous" ]; then
       DICTRECEIVEDFROM="\$PAGES page fax received from \$CALLID1";
   else
       DICTRECEIVEDFROM="\$PAGES page fax received from \$SENDER";
   fi
fi
-----------------------------

This puts the number of pages and the Caller*ID into the Subject: line, when available. I would suggest to you that you do something like this:


RESNAME=`select name from database where sender=$SENDER` DICTRECEIVEDFROM="\$PAGES page fax received from \$RESNAME"


Lee.


____________________ 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