Andrew Joakimsen
2010-Jun-14 07:10 UTC
[asterisk-users] Issues running Asterisk + Iaxmodem + Hylafax on same machine
I'm running into a strange issue with Asterisk + Iaxmodem + hylafax on the same machine. After rebooting the iaxmodems don't register to asterisk. Stoping and starting the relevant services gets it working, but what is the point of using init scripts if it does not work right? I already tried to adjust the init scripts in /etc/rc3.d so I have: S50asterisk s90iaxmodem S95hylafax So it should be starting in the correct order. I've previously done this so Asterisk is on one server and IAXmodem and Hylafax on another, I am stumped. [root at pbxserver ~]# rasterisk Asterisk 1.6.1.20, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster at digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================Connected to Asterisk 1.6.1.20 currently running on pbxserver (pid = 2218) Verbosity is at least 3 pbxserver*CLI> iax2 show pee peer peers pbxserver*CLI> iax2 show peers Name/Username Host Mask Port Status ttyIAX0 (Unspecified) (D) 255.255.255.255 0 (E) UNKNOWN ttyIAX1 (Unspecified) (D) 255.255.255.255 0 (E) UNKNOWN ttyIAX2 (Unspecified) (D) 255.255.255.255 0 (E) Unmonitored ttyIAX3 (Unspecified) (D) 255.255.255.255 0 (E) Unmonitored 4 iax2 peers [0 online, 2 offline, 2 unmonitored] pbxserver*CLI> exit [root at pbxserver ~]# /etc/init.d/hylafax stop Shutting down HylaFAX queue manager (faxq): [ OK ] Shutting down HylaFAX server (hfaxd): [ OK ] [root at pbxserver ~]# /etc/init.d/asterisk stop Stopping safe_asterisk: [ OK ] Shutting down asterisk: [ OK ] [root at pbxserver ~]# /etc/init.d/iaxmodem stop [root at pbxserver ~]# /etc/init.d/asterisk start Starting asterisk: [ OK ] [root at pbxserver ~]# /etc/init.d/iaxmodem start Starting IAXmodem: [ OK ] [root at pbxserver ~]# /etc/init.d/hylafax start Starting HylaFAX queue manager (faxq): [ OK ] Starting HylaFAX server (hfaxd): [ OK ] Restarting HylaFAX modem manager (faxgetty): [ OK ] [root at pbxserver ~]# rasterisk Asterisk 1.6.1.20, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster at digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================Connected to Asterisk 1.6.1.20 currently running on pbxserver (pid = 4175) Verbosity is at least 3 pbxserver*CLI> iax2 show peers Name/Username Host Mask Port Status ttyIAX0 192.168.3.28 (D) 255.255.255.255 4570 (E) OK (1 ms) ttyIAX1 192.168.3.28 (D) 255.255.255.255 56869 (E) OK (1 ms) ttyIAX2 192.168.3.28 (D) 255.255.255.255 38332 (E) Unmonitored ttyIAX3 192.168.3.28 (D) 255.255.255.255 56565 (E) Unmonitored 4 iax2 peers [2 online, 0 offline, 2 unmonitored] pbxserver*CLI>
Doug Lytle
2010-Jun-14 09:41 UTC
[asterisk-users] Issues running Asterisk + Iaxmodem + Hylafax on same machine
Andrew Joakimsen wrote:> I'm running into a strange issue with Asterisk + Iaxmodem + hylafax on > the same machine. After rebooting the iaxmodems don't register to > asterisk. Stoping and starting the relevant services gets it working, > >I'm using init to spawn a script that kicks off iaxmodem. I don't know if this is the difference, but it's working fine that way for me. cat start.iaxmodem #!/bin/sh /usr/local/bin/iaxmodem sleep 3 /usr/local/sbin/faxgetty ttyIAX01 & /usr/local/sbin/faxgetty ttyIAX02 & /usr/local/sbin/faxgetty ttyIAX03 & /usr/local/sbin/faxgetty ttyIAX04 & Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."