![]() |
Rui Santos wrote: > Lee Howard wrote: > >> Rui Santos wrote: >> >> >>> I'm currently providing FAX services with 2 HylaFAX Servers. Both of >>> them are running v4.3.0 on a openSUSE 10.2 x86_64. >>> >>> I've been requested to add a specific feature, that actually works >>> like as a forced C.C. on a email but, to a FAX number. I'll explain: >>> - A user sends a FAX to a specific FAX number. >>> - The server adds an extra number to work as a CC. >>> - The FAX always gets sent twice. >>> - The FAX number to CC is always the same. >>> - There are no covers >>> >>> Is there any way to acomplish this. >>> >>> >>> >> You could do it, for example, with JobControl. You could also make a >> faxsend wrapper. You could do it with FaxAccounting in HylaFAX+. >> > > Thank you very much for your info. > I'll read the JobControl howto. > I did it :). Thanks for your help Lee. Here is the script I used with JobControl: #!/bin/bash # # FAXes with C.C. ( Email alike ) JOBID=$1 CCNUMBER=123456789 ( fake number ) ## ## GetJobParam <param> ## - returns the value of the job param GetJobParam () { FIELD=$2 test "$2" == "" && FIELD=2 grep "^$1:" sendq/q$JOBID | cut -d : -f $FIELD- } NUMBER="`GetJobParam number`" # Only CC if number in not the one that is supposed to cc to. if [ "$NUMBER" != "$CCNUMBER" ]; then FILE="`GetJobParam postscript 4`" FILE="/var/spool/fax/$FILE" sendfax -T 72 -k 'now + 6 hours' -f 'Redirect <FaxMaster>' -o tests -n -m -d $CCNUMBER $FILE fi I don't if this is the best way to do this but, it seems to work. Hope it helps someone... > >> Lee. >> Rui > Rui > > >> >> >> > > -- Cumprimentos *Rui Santos* Dep. Testes *GrupoPIE Portugal, S.A.* Tel: +351 252 290 600 Fax: +351 252 290 601 Email: rsantos@xxxxxxxxxxxx <mailto:rsantos@xxxxxxxxxxxx> Web: www.grupopie.com <http://www.grupopie.com/> /WinREST /EVERYWHERE ____________________ 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*