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:
Asterisk 10.6.1
Dahdi 2.6.1
LibPRI 1.4.12
SpanDSP 0.0.6pre20
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…
BUT…
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:
/etc/rc.local:
#!/bin/sh
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.
touch /var/lock/subsys/local
/usr/local/sbin/motd.sh > /etc/motd
/usr/sbin/fxotune -s
/usr/sbin/amportal start
wait
/usr/sbin/amportal stop
wait
/usr/sbin/amportal start
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.
Greg