Explanation of directories in asterisk.conf?

Hello,

I want to move the asterisk data directories to the /opt folder as this is stored on a large secondary disk.
I’ve searched for an explanation for the directories set in asterisk.conf, but have failed to find one.

  1. Can somebody please point me in the right direction?
  2. what is best? Modify the directories or create symbolic links to /opt?

best regards
glenn

[directories]
astetcdir => /etc/asterisk
astspooldir => /var/spool/asterisk
astvarlibdir => /var/lib/asterisk
astdatadir => /var/lib/asterisk
astlogdir => /var/log/asterisk
astagidir => /var/lib/asterisk/agi-bin
astrundir => /var/run
astmoddir => /usr/lib/asterisk/modules

  1. You can find some explanations in the book Asterisk TFOT, 2nd edition, page 59; you can download it from here: downloads.oreilly.com/books/9780596510480.pdf .
  2. I wouldn’t use symbolic links, I would just modify the file /etc/asterisk.conf to point to the new directories used.

Cheers.

Marco Bruni

Hi Marco,
thanks for your reply.

I’ll check out the book.

this weekend I ran an install once with modified paths in asterisk.conf. This didn’t complete successfully. in another conf file ( queues I think it was), a path was hardcoded. Also I had to modify the configs of additional tools/

A rerun with symbolic links did complete successfully.

What are the downsides of using symbolic links?

best regards
glenn

I think there aren’t.

Cheers.

Marco Bruni