On Mon, Jul 18, 2011 at 9:20 AM, Gilles <codecompl...@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 lath...@gmail.com http://lathama.net ~ -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users