HylaFAX The world's most advanced open source fax server

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

[hylafax-users] FaxDispatch Script Not Working



HylaFAX-4.1.8 on FreeBSD-4.9 server
 
When the faxes arrive we'd like them to be sent to certain individuals based on who is sending the fax. Our branch office sent a fax in that produced this log. From this part of the log I found the line which states the callers's TSI is "2013936150".
 
=============================================================
First 17 lines of the fax log from 2013936150
=============================================================
Jan 26 14:46:39.30: [  145]: SESSION BEGIN 00000167 13053055417334
Jan 26 14:46:39.30: [  145]: HylaFAX (tm) Version 4.1.8
Jan 26 14:46:39.30: [  145]: <-- [4:ATA\r]
Jan 26 14:46:44.67: [  145]: --> [7:CONNECT]
Jan 26 14:46:44.67: [  145]: ANSWER: FAX CONNECTION  DEVICE '/dev/cuaa2'
Jan 26 14:46:44.67: [  145]: RECV FAX: begin
Jan 26 14:46:44.69: [  145]: <-- data [23]
Jan 26 14:46:44.69: [  145]: <-- data [2]
Jan 26 14:46:46.31: [  145]: --> [7:CONNECT]
Jan 26 14:46:46.31: [  145]: <-- data [10]
Jan 26 14:46:46.31: [  145]: <-- data [2]
Jan 26 14:46:47.13: [  145]: --> [2:OK]
Jan 26 14:46:47.13: [  145]: <-- [9:AT+FRH=3\r]
Jan 26 14:46:48.37: [  145]: --> [7:CONNECT]
Jan 26 14:46:49.03: [  145]: --> [2:OK]
Jan 26 14:46:49.03: [  145]: REMOTE TSI "2013936150"
Jan 26 14:46:49.03: [  145]: <-- [9:AT+FRH=3\r]
=============================================================
 
So I added these lines to my FaxDispatch file:
 
=============================================================
case "$SENDER" in
*2123944536)    SENDTO=frank; FILETYPE=pdf;;
201*)                SENDTO=serge; FILETYPE=pdf;;
*201*)               SENDTO=serge; FILETYPE=pdf;;
617*)                SENDTO=ed; FILETYPE=pdf;;
esac
=============================================================
 
But it will not send to "Serge". In fact it doesn't send to anyone. Can you tell me what this script needs to start working?
 
 
 


Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster.


Project hosted by iFAX Solutions