[asterisk-users] [1.4] Minimal installation?

Andrew Latham lathama at gmail.com
Tue Jul 19 09:22:06 CDT 2011


On Mon, Jul 18, 2011 at 9:20 AM, Gilles <codecomplete at free.fr> wrote:
> Hello,
>
> I'd like to run Asterisk on an embedded device, where space is scarce.
> It should be able to handle calls from a VoIP provider in SIP, calls
> from the PSTN through Dahdi, and voicemail.
>
> If someone's already done this, I'd like to know which
> directories/files are required for a basic install?
>
> Does this look right?
> =================
> /bin/asterisk
>
> /etc/asterisk/
>        asterisk.conf
>        logger.conf
>        modules.conf
>        sip.conf
>        extensions.conf
>        voicemail.conf
>
> /etc/init.d/asterisk
>
> /usr/lib/asterisk/modules/
>
> /var/lib/asterisk/agi-bin/moh -> /var/lib/asterisk/sounds/moh
> /var/lib/asterisk/sounds/
> /var/lib/asterisk/agi-bin/static-http/
>
> /var/spool/asterisk/
> =================

1. Sound files are likely the biggest issue.

2. DAHDI installs all firmwares by default, find what you need and
remove the rest.

3. Config files are mostly white space use this.

#Removes beginning and ending white space
sed -i 's/^[ \t]*//;s/[ \t]*$//' /etc/asterisk/*.conf

#Deletes empty lines
sed -i '/^$/d' /etc/asterisk/*.conf

#Adds a line return above a [
sed -i '/^\[/{x;p;x;}' /etc/asterisk/*.conf

# Deletes comments that starts with ; at the beginning of a line
sed -i '/^\;/d' /etc/asterisk/*.conf

# Deletes comments after the ; at any place
sed -i 's/;.*//' /etc/asterisk/*.conf

-- 
~ Andrew "lathama" Latham lathama at gmail.com http://lathama.net ~



More information about the asterisk-users mailing list