提交 cb463b4e authored 作者: Anthony Minessale's avatar Anthony Minessale

Make optional modules.conf that allows you to pick the module load order

and to exclude some modules. (see example in trunk/conf)

Make ';' a valid comment in config files 
Interpret a line in config files beginning with "__END__" as eof



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@608 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 0e79051b
[modules]
; If this option is the first one the rest of them will be ignored
;load => all
; Event Handlers
load => mod_zeroconf.so
load => mod_xmpp_event.so
; Directory Interfaces
load => mod_ldap.so
; Endpoints
load => mod_exosip.so
load => mod_iax.so
load => mod_woomera.so
; Applications
load => mod_bridgecall.so
load => mod_ivrtest.so
load => mod_playback.so
; Dialplan Interfaces
load => mod_dialplan_demo.so
load => mod_dialplan_directory.so
load => mod_pcre.so
; Codec Interfaces
load => mod_g711.so
load => mod_gsm.so
load => mod_l16.so
load => mod_speex.so
; File Format Interfaces
load => mod_sndfile.so
; Timers
load => mod_softtimer.so
......@@ -101,10 +101,14 @@ SWITCH_DECLARE(int) switch_config_next_pair(switch_config *cfg, char **var, char
continue;
}
if (**var == '#' || **var == '\n' || **var == '\r') {
if (**var == '#' || **var == ';' || **var == '\n' || **var == '\r') {
continue;
}
if (!strncmp(*var, "__END__", 7)) {
break;
}
if ((end = strchr(*var, '#'))) {
*end = '\0';
end--;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论