Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: giraffe on March 11, 2009, 04:00:46 PM
-
I want to use more than one modem with HylaFax.
I have installed the Dungog Hylafax rpm on SME Server 7.4 and it works well with the modem on ttyS0 which is the default.
I have added a second modem using faxaddmodem on ttyS5 but this is not available for sending Faxes through the YAHFJC client and does not receive faxes.
I know that I can change the port used by Hylafax by
config setprop hylafax port ttyS5
But presumably this will stop the modem on ttyS0 working with Hylafax.
Does anyone know how can I set Hylafax to use both ports?
-
Hi
I think faxgetty is not listening on ttyS5.. so:
- you should have a file S85hylafax in /etc/e-smith/templates-custom/etc/inittab
- if so, edit it with
cd /etc/e-smith/templates-custom/etc/inittab
pico S85hylafax
- add a second line as this one:
fax1:23457:respawn:/usr/sbin/faxgetty ttyS5
- save with Ctrl-X Y
- expand the template with
expand-template /etc/inittab
- restart hylafax with
service hylafax restart
it should work :-)
Ciao
Stefano
-
Stefano
Thank you for your reply, I think you are on the right lines.
S85hylafax in cd /etc/e-smith/templates-custom/etc/inittab/S85hylafax contains
{
use esmith::config;
use esmith::db;
my %conf;
tie %conf, 'esmith::config';
my $ShortComPort = 'ttyS0';
$ShortComPort = 'tty' . uc(substr(db_get_prop(\%conf, 'hylafax', 'ComPort'),8,2));
{
$OUT .= "fax:23457:respawn:/usr/sbin/faxgetty " . $ShortComPort;
}
}
This puts the line fax:23457:respawn:/usr/sbin/faxgetty ttyS0 in etc/initab
I have added the line at the end
fax1:23457:respawn:/usr/sbin/faxgetty ttyS5
expanded the template and restarted hylafax
This has not added the modem on ttyS5 as a modem which I can use to send faxes from the YAHFJC client.
I have made these changes remotely and will not be on site until tomorrow afternoon when I can connect the modem on ttyS5 to a phone line to test if it will now receive faxes.
I will let you know if it works.
-
ok..
it seems you have smeserver-hylafax constrib installed.. and then you have that kind of fragment..
in your case, create a second fragment S86hylafax with the line you've added and then ri-expand the template; it's almost the same, but more "elegant" :-)
Ciao
Stefano
-
I confirm that the second modem on ttyS5 now receives Faxes but is still not avilable as a modem for sending faxes.
Thank you Stefano for your help.
-
well.. at this point I'd take a look on hylafax site for some info ;-)
Ciao
Stefano
-
I think hylafax will just use the first free modem, so if the first one was sending/recieving a fax and someone else tried to send a fax it should use the next modem available to it..