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/ ================ Thank you.
On Mon, Jul 18, 2011 at 03:20:03PM +0200, Gilles 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/usr/sbin , normally. But just the same.> > /etc/asterisk/ > asterisk.conf > logger.conf > modules.conf > sip.conf > extensions.conf > voicemail.confConfig files don't take that much space. Strip out comments and empty lines from the "sample" config files. Something along the lines of: sed -i -e 's/;.*//' -e '/^ *$/d' /etc/asterisk/*.conf> > /etc/init.d/asterisk > > /usr/lib/asterisk/modules/Be sure to only include the ones you need. Finding which exactly may be tricky.> > /var/lib/asterisk/agi-bin/moh -> /var/lib/asterisk/sounds/moh > /var/lib/asterisk/sounds/Only the ones you need .> /var/lib/asterisk/agi-bin/static-http/If you actually use the asterisk httpd .> > /var/spool/asterisk/ > ================-- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
On Mon, 18 Jul 2011 20:59:02 +0300, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:>> /usr/lib/asterisk/modules/ > >Be sure to only include the ones you need. Finding which exactly may be >tricky.Thanks Tzafrir. Actually, since the modules are the biggest files by far, besides the obvious (SIP, Dahdi, etc.), how to investigate which modules I must keep? Does Asterisk report errors explicitely when a module it needs is missing, or does it just crash/malfunction without reporting anything?
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 ~
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/ > ================> > Thank you. >Where are you going to store the voicemail? Could some of this space be used for asterisk modules? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110719/7ee3d6bd/attachment.htm>
Hi, On Tue, 2011-07-19 at 16:14 +0200, Gilles wrote:> On Mon, 18 Jul 2011 20:59:02 +0300, Tzafrir Cohen > <tzafrir.cohen at xorcom.com> wrote: > >> /usr/lib/asterisk/modules/ > > > >Be sure to only include the ones you need. Finding which exactly may be > >tricky. > > Thanks Tzafrir. Actually, since the modules are the biggest files by > far, besides the obvious (SIP, Dahdi, etc.), how to investigate which > modules I must keep? Does Asterisk report errors explicitely when a > module it needs is missing, or does it just crash/malfunction without > reporting anything?I found this to be helpful: http://www.wains.be/index.php/2008/04/15/slimming-asterisk-for-the-nslu2-under-debian/ also setting full => notice,warning,error,debug,verbose in the logger.conf was helpful to locate dependency errors. S.