Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] How to get a clean, basic configuration?

Goto page Previous  1, 2
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
tilghman at mail.jeffa...
Guest





PostPosted: Fri Feb 22, 2008 10:15 am    Post subject: [asterisk-users] How to get a clean, basic configuration? Reply with quote

On Friday 22 February 2008 04:55:13 Vincent wrote:
Quote:
On Thu, 21 Feb 2008 22:04:41 +0200, Tzafrir Cohen wrote:
Quote:
For the brave: use modules.conf without 'autoload = yes'. This promises
you many hours of interesting dialplan debugging. Enjoy.

Yup, that's what I anticipated, which is why I was asking which
modules I can _safely_ remove without breaking things Smile

Generally, the rule is that you can't remove any of the res_*
modules. If you follow that rule, you can then start to work out the
applications, functions, and channels that you don't want. The codecs
and formats modules are usually too small to consider disabling, unless
it is absolutely critical for space (such as on embedded systems, where
you generally don't want any transcoding anyway).

--
Tilghman
Back to top
vincent.delporte at bi...
Guest





PostPosted: Mon Feb 25, 2008 11:04 am    Post subject: [asterisk-users] How to get a clean, basic configuration? Reply with quote

On Fri, 22 Feb 2008 09:15:35 -0600, Tilghman Lesher
<tilghman at mail.jeffandtilghman.com> wrote:
Quote:
Generally, the rule is that you can't remove any of the res_*
modules.

Thanks for the tip. At this point, I have the following in
modules.conf, but when I type "reload", it still loads stuff I
disabled such as DunDI:

==========
[modules]
autoload=yes
noload => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
load => res_musiconhold.so
noload => chan_alsa.so
noload => pbx_ael.so
noload => pbx_dundi.so
noload => res_config_pgsql.so
noload => res_smdi.so

[Feb 25 16:56:09] NOTICE[6763]: pbx_ael.c:4114 pbx_load_module: AEL
load process: compiled config file name
'/etc/asterisk/extensions.ael'.

-- Reloading module 'pbx_dundi.so' (Distributed Universal Number
Discovery (DUNDi))
== Parsing '/etc/asterisk/dundi.conf': Found
==========

Moving the noload lines before autoload makes no difference.
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Mon Feb 25, 2008 12:08 pm    Post subject: [asterisk-users] How to get a clean, basic configuration? Reply with quote

On Monday 25 February 2008 10:04, Vincent wrote:
Quote:
On Fri, 22 Feb 2008 09:15:35 -0600, Tilghman Lesher

<tilghman at mail.jeffandtilghman.com> wrote:
Quote:
Generally, the rule is that you can't remove any of the res_*
modules.

Thanks for the tip. At this point, I have the following in
modules.conf, but when I type "reload", it still loads stuff I
disabled such as DunDI:

I would check to see if you might have another modules.conf configured
in a different directory. Your binary might be looking elsewhere, especially
if you're on a non-Linux platform. It's possible also to specify a different
directory on Linux, though the default should /etc/asterisk/modules.conf.

Check also that you haven't specified a different configuration directory
in /etc/asterisk/asterisk.conf, because that will also override the default.

--
Tilghman
Back to top
brett at websmyths.com
Guest





PostPosted: Mon Feb 25, 2008 12:46 pm    Post subject: [asterisk-users] How to get a clean, basic configuration? Reply with quote

On Mon, 25 Feb 2008, Tilghman Lesher wrote:

Quote:
On Monday 25 February 2008 10:04, Vincent wrote:
Quote:
On Fri, 22 Feb 2008 09:15:35 -0600, Tilghman Lesher

<tilghman at mail.jeffandtilghman.com> wrote:
Quote:
Generally, the rule is that you can't remove any of the res_*
modules.

Thanks for the tip. At this point, I have the following in
modules.conf, but when I type "reload", it still loads stuff I
disabled such as DunDI:

I would check to see if you might have another modules.conf configured
in a different directory. Your binary might be looking elsewhere, especially
if you're on a non-Linux platform. It's possible also to specify a different
directory on Linux, though the default should /etc/asterisk/modules.conf.

Check also that you haven't specified a different configuration directory
in /etc/asterisk/asterisk.conf, because that will also override the default.

Tilghman, isn't it also possible he did not build them as modules?

Doesn't Section 12 of 'make menuselect' allow you to incorporate the
modules directly into a monolithic executable?

I have been wrong before though.....

Brett
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Mon Feb 25, 2008 4:39 pm    Post subject: [asterisk-users] How to get a clean, basic configuration? Reply with quote

On Mon, Feb 25, 2008 at 11:46:09AM -0600, Brett Crapser wrote:
Quote:

On Mon, 25 Feb 2008, Tilghman Lesher wrote:

Quote:
On Monday 25 February 2008 10:04, Vincent wrote:
Quote:
On Fri, 22 Feb 2008 09:15:35 -0600, Tilghman Lesher

<tilghman at mail.jeffandtilghman.com> wrote:
Quote:
Generally, the rule is that you can't remove any of the res_*
modules.

Thanks for the tip. At this point, I have the following in
modules.conf, but when I type "reload", it still loads stuff I
disabled such as DunDI:

I would check to see if you might have another modules.conf configured
in a different directory. Your binary might be looking elsewhere, especially
if you're on a non-Linux platform. It's possible also to specify a different
directory on Linux, though the default should /etc/asterisk/modules.conf.

Check also that you haven't specified a different configuration directory
in /etc/asterisk/asterisk.conf, because that will also override the default.

Tilghman, isn't it also possible he did not build them as modules?

Doesn't Section 12 of 'make menuselect' allow you to incorporate the
modules directly into a monolithic executable?

I have been wrong before though.....

It would still try to load modules from the modules directory.

BTW: you can always set the modules path through asterisk.conf.

--
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
Back to top
atis at iq-labs.net
Guest





PostPosted: Mon Feb 25, 2008 6:19 pm    Post subject: [asterisk-users] How to get a clean, basic configuration? Reply with quote

On 2/25/08, Vincent <vincent.delporte at bigfoot.com> wrote:
Quote:
On Fri, 22 Feb 2008 09:15:35 -0600, Tilghman Lesher
<tilghman at mail.jeffandtilghman.com> wrote:
Quote:
Generally, the rule is that you can't remove any of the res_*
modules.


Thanks for the tip. At this point, I have the following in
modules.conf, but when I type "reload", it still loads stuff I
disabled such as DunDI:

==========

[modules]
autoload=yes
noload => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
load => res_musiconhold.so
noload => chan_alsa.so

noload => pbx_ael.so
noload => pbx_dundi.so
noload => res_config_pgsql.so
noload => res_smdi.so


[Feb 25 16:56:09] NOTICE[6763]: pbx_ael.c:4114 pbx_load_module: AEL
load process: compiled config file name
'/etc/asterisk/extensions.ael'.

-- Reloading module 'pbx_dundi.so' (Distributed Universal Number
Discovery (DUNDi))

== Parsing '/etc/asterisk/dundi.conf': Found

==========

Moving the noload lines before autoload makes no difference.



To help you on your way of minimizing modules, here's some basic setup
that generally works (but you might miss some applications and
functions). The trickiest thing is that you need res_features,
otherwise you would get coredumps on boot. For me, Asterisk trimmed
down to this config loads in an eye blink.

Regards,
Atis

; ---- start of modules ----
[modules]
autoload=no

; Used applications
load => app_dial.so
load => app_playback.so
load => app_read.so

; Channel drivers
; probably you don't need chan_local, but it's nice
load => chan_local.so
load => chan_sip.so

; Codecs
load => codec_gsm.so
load => codec_ulaw.so
load => codec_alaw.so
load => codec_a_mu.so

load => format_gsm.so
load => format_pcm.so

; PBX - choose between AEL and .conf files
; load => pbx_config.so
load => pbx_ael.so
; use pbx_spool if you want to drop .call files
load => pbx_spool.so

; Functions
load => func_strings.so
load => func_rand.so
load => func_logic.so
load => func_cut.so
load => func_callerid.so

; Resources
; if you don't have agi, you may remove this
load => res_agi.so
load => res_musiconhold.so

; res_features is required by chan_sip
load => res_features.so

;------ end of modules
--
Atis Lezdins
VoIP Project Manager,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835
Back to top
vincent.delporte at bi...
Guest





PostPosted: Sun Mar 02, 2008 11:04 pm    Post subject: [asterisk-users] How to get a clean, basic configuration? Reply with quote

On Tue, 26 Feb 2008 01:19:23 +0200, "Atis Lezdins" <atis at iq-labs.net>
wrote:
Quote:
To help you on your way of minimizing modules, here's some basic setup
that generally works

Thanks much for sharing your modules.conf.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services