[iaxmodem-users] iaxmodem - inittab - debian , respawning too fast
Brought to you by:
faxguy
From: Jose C. M. <jo...@ho...> - 2012-07-16 17:12:15
|
Hello all, I decided to contact this email list because I am having some problems with Iaxmodem and Debian... I have been looking for information for many days in many forums but could not solve this problem. Maybe someone of you know about it. It looks quite common...but couldnt find information about it. Lets start: My problem is that everytime inittab is executed iaxmodem starts respawning many times. I get 9 iaxmodem processes every time. SYSLOG: Jul 16 18:53:43 ORION init: Id "iax" respawning too fast: disabled for 5 minutes So it is disabled for 5 minutes. It means every 5 minutes I get 9 new processes iaxmodem. uucp 13797 0.0 0.8 2992 1092 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13801 0.0 0.8 2992 1088 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13805 0.0 0.8 2956 1080 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13809 0.0 0.8 2992 1088 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13813 0.0 0.8 2988 1080 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13815 0.0 0.8 2992 1096 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13825 0.0 0.8 2988 1084 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13828 0.0 0.8 2992 1096 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13830 0.0 0.8 2992 1084 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 uucp 13832 0.0 0.8 2988 1080 ? S 18:38 0:00 /usr/sbin/iaxmodem ttyIAX01 I cheched executing iaxmodem ttyIAX01 in the console and everything looks right: root@ORION:/etc/iaxmodem# /usr/sbin/iaxmodem ttyIAX01 [2012-07-16 18:59:26] Modem started [2012-07-16 18:59:26] Setting device = '/dev/ttyIAX01' [2012-07-16 18:59:26] Setting owner = 'uucp:uucp' [2012-07-16 18:59:26] Setting mode = '660' [2012-07-16 18:59:26] Setting port = 45699 [2012-07-16 18:59:26] Setting refresh = 300 [2012-07-16 18:59:26] Setting server = '127.0.0.1' [2012-07-16 18:59:26] Setting peername = '200' [2012-07-16 18:59:26] Setting secret = 'iaxmodem' [2012-07-16 18:59:26] Setting cidname = 'IAXModem1' [2012-07-16 18:59:26] Setting cidnumber = '200' [2012-07-16 18:59:26] Setting codec = alaw [2012-07-16 18:59:26] Opened pty, slave device: /dev/pts/70 [2012-07-16 18:59:26] Removed old /dev/ttyIAX01 [2012-07-16 18:59:26] Created /dev/ttyIAX01 symbolic link Ignoring unknown information element 'Unknown IE' (54) of length 0 [2012-07-16 18:59:26] Registration completed successfully. I also checked many times the configuration file ttyIAX01: device /dev/ttyIAX01 owner uucp:uucp mode 660 port 45699 refresh 300 server 127.0.0.1 peername 200 secret iaxmodem cidname IAXModem1 cidnumber 200 codec alaw also the asterisk iax.conf file: [200] type=friend context=context disallow=all allow=ulaw username=200 secret=iaxmodem qualify=yes notransfer=yes host=dynamic callerid="Fax" requirecalltoken=no The point is it is working fine when I execute iaxmodem from console (only one process which keep alive, no errors), but something is wrong when I do it from inittab iax:23:respawn:/usr/sbin/iaxmodem ttyIAX01& fax:23:respawn:/usr/sbin/faxgetty ttyIAX01& Only once found someone that said it was not the way. that I had to run it as a service. It works for me in CentOS, but in debian initab is the best way to check the process in order to keep it alive. Maybe I am wrong here. After one day, I get hundreds of processes, after a few days the server is down. Does anybody know what can I do? Is there anything else I could check? Thank you in advance for your help! Really appreciate it Jose |