Re: [asterisk-users] [1.4] Minimal installation?

2011-07-19 Thread Gilles
On Mon, 18 Jul 2011 20:59:02 +0300, Tzafrir Cohen
tzafrir.co...@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?


--
_
-- 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


Re: [asterisk-users] [1.4] Minimal installation?

2011-07-19 Thread Andrew Latham
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

Re: [asterisk-users] [1.4] Minimal installation?

2011-07-19 Thread Mark Deneen
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/
 =

 Thank  you.


Where are you going to store the voicemail?  Could some of this space be
used for asterisk modules?
--
_
-- 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

Re: [asterisk-users] [1.4] Minimal installation?

2011-07-19 Thread Danny Nicholas
 

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mark Deneen
Sent: Tuesday, July 19, 2011 9:22 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] [1.4] Minimal installation?

 

 

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/
=

Thank  you.

 

Where are you going to store the voicemail?  Could some of this space be
used for asterisk modules? 

 

My .02 - FWIW, DAHDI will use almost as much space as the rest of Asterisk,
so you could save the space you don't have by forgoing that.

--
_
-- 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

Re: [asterisk-users] [1.4] Minimal installation?

2011-07-19 Thread Skyler
Hi,

On Tue, 2011-07-19 at 16:14 +0200, Gilles wrote:
 On Mon, 18 Jul 2011 20:59:02 +0300, Tzafrir Cohen
 tzafrir.co...@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.


--
_
-- 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


Re: [asterisk-users] [1.4] Minimal installation?

2011-07-19 Thread Gilles
On Tue, 19 Jul 2011 09:27:41 -0500, Danny Nicholas
da...@debsinc.com wrote:
My .02 - FWIW, DAHDI will use almost as much space as the rest of Asterisk,
so you could save the space you don't have by forgoing that.

Thanks everyone for the feedback. I'll go through the list of modules
and see what I can remove, and then do the same for Dahdi.


--
_
-- 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


[asterisk-users] [1.4] Minimal installation?

2011-07-18 Thread Gilles
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.


--
_
-- 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


Re: [asterisk-users] [1.4] Minimal installation?

2011-07-18 Thread Tzafrir Cohen
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.conf

Config 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.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

--
_
-- 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