File hylafax-4.4.4-dispatch-isdn.diff of Package hylafax
Index: hylafax-4.3.0/util/FaxDispatch.sh
===================================================================
--- hylafax-4.3.0.orig/util/FaxDispatch.sh
+++ hylafax-4.3.0/util/FaxDispatch.sh
@@ -2,8 +2,8 @@
# Dispatch fax to email depending on own MSN or extention (ISDN lines)
# sourced from faxrcvd
#
-if [ "$7" != "" ]; then
- PHONEMATCH=$7\$
+if [ "$CALLID3" != "" ]; then
+ PHONEMATCH=$CALLID3\$
USERENTRY=`grep -v "^#" etc/users | grep "$PHONEMATCH"`
if [ "$USERENTRY" != "" ]; then
USERNAME=`echo $USERENTRY | awk '{print $1}'`