Asterisk needs workarounds to work properly
In order to have the asterisk package working, I needed to install the "shellcmd" package with this configuration:
mkdir /var/run/asterisk /var/db/asterisk /var/log/asterisk /var/log/asterisk/cdr-csv
chown asterisk:asterisk /var/run/asterisk /var/db/asterisk /var/log/asterisk /var/log/asterisk/cdr-csv
both with type "shellcmd"
it seems there is something wrong with the package. this was on a fresh 2.2.2 install.
Updated by Frederic Steinfels about 7 years ago
It seems the start script is doing more or less the same. I have no clue why the script did not get executed. However asterisk requires a reboot after a fresh install. I am getting tons of network errors on the shell without doing a reboot first. Maybe I was confused because of a combination of errors. Anyway, going to a more decent version of asterisk wouldnt harm because this one is losing iax connections (through openvpn) after a couple of weeks. Sometimes only a reboot will help.
Updated by Kill Bill about 7 years ago
Frederic Steinfels wrote:
It seems the start script is doing more or less the same. I have no clue why the script did not get executed.
Yeah, I was looking at the PHP code  and wondering whether it somehow failed to add those lines, but apparently not. No idea why this wouldn't work.
Updated by Frederic Steinfels almost 7 years ago
One explanation might be that I have not made a reboot after installing the asterisk pbi. It might as well have happened after the upgrade process. Maybe it would have worked right away. Anyway I will update pfsense on some 2.2.3 devices and check what happens.