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] external mapping from DIDs to email addresses
Klaus Darilion wrote:
Currently I use FaxDispatch to forward the faxes to the proper email
address based on the DID.
case "$CALLID4" in
0) SENDTO=user1@xxxxxxx; FILETYPE=pdf;;
1) SENDTO=user2@xxxxxxx; FILETYPE=pdf;;
2) SENDTO=user3@xxxxxxx; FILETYPE=pdf;;
*) SENDTO=user0@xxxxxxx; FILETYPE=pdf;;
esac
I want to handle this mapping external, e.g. in a CSV file or a database
table (because I want to use the same mapping table in my email2fax
script).
Can this be done? If yes, can you give me please some pointers into the
right direction?
FaxDispatch is just a shell script. So you can call on your database
directly from FaxDispatch:
SENDTO=`echo "select email from users where callid=$CALLID4;" |
mysql -u user -ppass database`
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*