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

Talk:Mailing Lists

Revision as of 06:55, 30 May 2006 by Dycwww (talk | contribs) (jobcontrolcmd)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

dear:

  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


    1. GetJobParam <param>
    2. - returns the value of the job param

GetJobParam () {

       grep "^$1:" sendq/q$JOBID | cut -d : -f 2-

}


    1. 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



Powered by MediaWiki
Attribution-ShareAlike 2.5

Project hosted by iFAX Solutions