HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Always use specific outbound line ?



George H wrote:

Is there a facility I can use in HylaFAX+ where I can make it send a
fax always on a specific modem ?
For instance (using email-to-fax) I want user1's emails to be sent
using ttyS0,ttyS1,ttyS2  while user2's
emails will only use ttyS3 (say this is the line use for international calls).


Yes, you can do this with JobControl. See:


http://hylafax.sourceforge.net/man/jobcontrol.php

Something like:

   #!/bin/sh
   . etc/setup.cache
   . bin/common-functions
   QFILE=sendq/q$1
   parseQfile
   case "$mailaddr" in
       user1) echo "Modem: modemgroup1";;
       user2) echo "Modem: modemgroup2";;
       *) echo "Modem: defaultmodemgroup";;
   esac
   exit 0

You configure your modem groups with ModemGroup in the faxq config file (/var/spool/hylafax/etc/config). See:

http://hylafax.sourceforge.net/man/hylafax-config.php

Something like:

 ModemGroup: "modemgroup1:ttyS[012]"
 ModemGroup: "modemgroup2:ttyS3"
 ModemGroup: "defaultmodemgroup:any"

Thanks,

Lee


____________________ 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*




Project hosted by iFAX Solutions