Ok - As always, this will be a slightly long post with a question at the end.
I use Elastix as a base, but of course they are not up to the Asterisk version that I want to use - 10.6.1 so I am improvising - here is what I am using:
All of these are compiled from source and then installed.
So here is the hangup - From a Cold-Boot - “shutdown now -r” - when the box comes back up, DAHDI, Asterisk and everything else load just fine - but the first time (and everytime) you try to receive a FAX, you get a Segfault and a quick reload…
If you do an “amportal stop” and then an “amportal start” then it receives faxes just fine.
Just tested this with Asterisk 10.7 and it’s the same thing.
Here is the work-around I came up with:
This script will be executed after all the other init scripts.
You can put your own initialization stuff in here if you don’t
want to do the full Sys V style init stuff.
/usr/local/sbin/motd.sh > /etc/motd
I don’t know if the wait is necessary, but I was being cautious - this is completely reproducible - fully patched Elastix with Asterisk 10.6.1/10.7 installed over top and it happens every time the machine reboots.
Has anyone else seen this? The hack on rc.local works, but it seems kludgy.