Personal tools
HylaFAX The world's most advanced open source fax server

Difference between revisions of "Talk:Mailing Lists"

(jobcontrolcmd)
 
m (Reverted edits by SfdJwl (Talk); changed back to last version by Darren)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
dear:
+
Please post HylaFAX questions to the HylaFAX [[Mailing Lists|email discussion lists]].
  all hylafax user
 
I wang to use jobcontrols and the file is bellow
 
etc/config
 
LogFacility:            daemon
 
CountryCode:            86
 
AreaCode:              769
 
LongDistancePrefix:    1
 
InternationalPrefix:    011
 
DialStringRules:        etc/dialrules
 
ServerTracing:          1
 
ModemGroup:            DYC:ttyS0
 
ModemGroup:            ZXL:536ep
 
MaxBatchJobs:          1
 
JobControlCmd:          bin/jobcontrol-destctrls.sh
 
JobControlWait:        yes
 
 
 
bin/jobcontrol-destctrls.sh
 
 
 
 
 
JOBID=$1
 
 
 
 
 
##
 
## GetJobParam <param>
 
## - returns the value of the job param
 
GetJobParam ()
 
{
 
        grep "^$1:" sendq/q$JOBID | cut -d : -f 2-
 
}
 
 
 
 
 
##
 
## SetControlParam <tag> <value>
 
SetControlParam ()
 
{
 
    echo "$1: \"$2\""
 
}
 
 
 
 
 
MODEM=$(GetJobParam modem)
 
 
 
if [ $MODEM != "any" ]
 
then
 
        # If they've specified a modem, batching will probably ignore
 
        # it anyways - we enforce letting us control modem groups.
 
        SetControlParam RejectNotice "Modem $MODEM not allowed - use any"
 
        exit
 
fi
 
 
 
DEST=$(GetJobParam number)
 
 
 
case "$DEST" in
 
        +1215*)
 
                SetControlParam Modem "DYC"
 
                ;;
 
        +1*)
 
                SetControlParam Modem "ZXL"
 
                ;;
 
        +44*)
 
                SetControlParam Modem "DYC"
 
                ;;
 
        +*)
 
                SetControlParam Modem "ZXL"
 
                ;;
 
        *)
 
                SetControlParam RejectNotice "Number was not in IDD format (+CCNXXNXXX)"
 
                ;;
 
 
 
esac
 
 
 
 
 
but the faxstat no work in think so like modem . for example: +1* work in zxl.
 
what is my wrong?
 
thanks for any help
 

Latest revision as of 17:40, 15 June 2007

Please post HylaFAX questions to the HylaFAX email discussion lists.


This page was last edited on 15 June 2007, at 17:40.

Powered by MediaWiki
Attribution-ShareAlike 2.5

Project hosted by iFAX Solutions