Re: [iaxmodem-users] Problems with iaxmodem
Brought to you by:
faxguy
From: Jean-Denis G. <jd....@sy...> - 2015-11-06 16:51:13
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Christian, Le 05/11/2015 10:35, ch...@ab... a écrit : > 1. Cannot start iaxmodems > if I try to start iaxmodems as root I got the following message > > # iaxmodem conf.ttyIAX001 > [2015-11-05 20:23:33] Modem started > [2015-11-05 20:23:33] Setting device = '/dev/ttyIAX001' > [2015-11-05 20:23:33] Setting owner = 'uucp:uucp' > [2015-11-05 20:23:33] Setting mode = '660' > [2015-11-05 20:23:33] Setting port = 4601 > [2015-11-05 20:23:33] Setting refresh = 60 > [2015-11-05 20:23:33] Setting server = '127.0.0.1' > [2015-11-05 20:23:33] Setting peername = 'iaxmodem001' > [2015-11-05 20:23:33] Setting secret = 'password' > [2015-11-05 20:23:33] Setting codec = alaw > [2015-11-05 20:23:33] Disabling jitterbuffer > [2015-11-05 20:23:33] Opened pty, slave device: /dev/pts/1 > [2015-11-05 20:23:33] Created /dev/ttyIAX001 symbolic link > Ignoring unknown information element 'Unknown IE' (54) of length 0 > [2015-11-05 20:23:33] Registration completed successfully. This seems normal to me, are you sure it is not working? What does asterisk "iax2 show peers" report? > 2. Problem: In Centos7 inittab is out of use and has also no directory > /etc/init/ (like Centos6) > But I have found /etc/init.d/ > > But I have not found any instruction how to install the automnatic sta rt > of iaxmodems and faxgetty in /etc/init.d/ > > Has anybody some hints or instructions for me? This is what I have done on Fedora: 1. Create file /usr/lib/systemd/system/iaxmodem.service: [Unit] Description = IAXmodem for /dev/ttyIAX #ConditionPathExists = /etc/iaxmodem/ttyIAX #Requires = asterisk.service #After = asterisk.service [Service] Type = simple Restart=always RestartSec=30 ExecStart = /usr/sbin/iaxmodem -F [Install] WantedBy=multi-user.target 2. Create symbolic link in /etc/systemd/system/multi-user.target.wants/iaxmodem.service [jdg@tiare tmp]$ ls -l /etc/systemd/system/multi-user.target.wants/iaxmodem.service lrwxrwxrwx. 1 root root 40 8 juil. 16:49 /etc/systemd/system/multi-user.target.wants/iaxmodem.service -> /usr/lib/systemd/system/iaxmodem.service Hope that helps. Best regards, - -- Jean-Denis Girard SysNux Systèmes Linux en Polynésie française http://www.sysnux.pf/ Tél: +689 40.50.10.40 / GSM: +689 87.79.75.27 -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlY81e0ACgkQuu7Rv+oOo/geKwCfSlZlw+hP3+nYT58GhY8g7L9u D9UAn1IRwyvNGgaRYeK60lYz5pLfBe7q =nzl7 -----END PGP SIGNATURE----- |