Hi
I've discovered a bit of a cockup in the script. The IAX Modem was being launched twice, once by service iaxmodem start, which starts anything it finds in the /etc/iaxmodem. directory, then started again with some entries in /etc/inittab
It is more desirable to start IAX modem as a service, because it is easier to add and remove iaxmodem entries without having to edit inittab, although we will still have to add a faxgetty process to inittab.
So if you have installed, edit /etc/inittab, and identify the following lines and remove them.
IA0:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX0 > /var/log/iaxmodem/iaxmodem.log
IA1:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX1 > /var/log/iaxmodem/iaxmodem.log
IA2:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX2 > /var/log/iaxmodem/iaxmodem.log
IA3:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX3 > /var/log/iaxmodem/iaxmodem.log
Now reboot.
Next, lets do a couple of checks to make sure things are starting as they should.
1. in asterisk CLI, type iax2 show peers, and you should see 4 entries.
2. open a second putty screen, and while watching the Asterisk CLI on the first screen type service iaxmodem restart on the second screen. An Asterisk, you should see the modems register and deregister
3. Lastly lets check to see the modems start and stop with no errors.
At the command line:-
service iaxmodem stop
then
iaxmodem iaxmodem-cfg.ttyIAX0
Check it started OK.
ctrl-c to exit.
Repeat with the other 3 modems.
iaxmodem iaxmodem-cfg.ttyIAX1
iaxmodem iaxmodem-cfg.ttyIAX2
iaxmodem iaxmodem-cfg.ttyIAX3
If they all start as they should do. Reboot for good measure, and see if this has helped. and let me know.
This may not be the complete fix, but it is certainly something I did not get right.
Joe