HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
[hylafax-users] Cannot enable DynamicConfig
Hello,
I'm pretty new to Hylafax. Installed it on Debian Etch, following the
Debian howto at
http://www.debianhowto.de/doku.php/de:howtos:sarge:hylafax_avm_isdn
Using a AVM B1 PCI 4.0.
Everything went smooth, sending and receiving faxes works. (And the
flexibility of FaxDispatch is awesome. Adding LDAP support was a breeze)
But DynamicConfig has me absolutely frustrated. I just can't get the
script to execute, and I don't no why. I feel dumb, as extensive
googling suggests that I'm the only person on this planet with that problem.
Where exactly do I have to insert the 'DynamicConfig:' option?
I assume that config.faxCAPI was the right file?
I tried putting it everywhere: at the top of the file, in the faxCAPI
subsection, and in the controller subsubsection.
I tried putting the script itself in /etc/hylafax, in
/var/spool/hylafax/etc, and in /etc.
The script is world-executable.
All config files were copied from /etc/hylafax to /var/spool/hylafax/etc
before restarting the daemons. -- even tried restarting the server just
in case.
The first line of the script writes a temp file (so I could check if
it's running), but that file never shows up. So I assume the script is
never executed.
Thanks a lot to anybody who can help me out with this.
Rupert
Here a some details:
================================
From /etc/hylafax/config.faxCAPI:
DynamicConfig: /etc/hylafax/dynamic.sh
================================
fax:~# ls -l /etc/hylafax/dynamic.sh
-rwxr-xr-x 1 root root 572 2007-12-13 00:10 /etc/hylafax/dynamic.sh
================================
fax:~# cat /etc/hylafax/dynamic.sh
#!/bin/sh
echo "$@" > /tmp/faxDynConf
DEVICE=$1; shift;
COUNT=1
while [ $# -ge 1 ]; do
# The eval has $1 set yet, and this forces a variable-to-variable
# assignment, allowing us to not need to do escaping
eval CALLID$COUNT='$1'
shift
COUNT=$(($COUNT + 1))
done
# CALLID3 contains the last 4 digits of the called number
#echo "LocalIdentifier: +49.89.$CALLID3"
echo "FAXNumber: +49.89.$CALLID3"
____________________ 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*