change modules.conf to be a local-only file that is auto-generated
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@609 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cb463b4e52
commit
d1f821478b
|
@ -135,6 +135,7 @@ depends:
|
|||
|
||||
|
||||
modules: $(NAME)
|
||||
@if [ ! -f $(PWD)/modules.conf ] ; then cp $(PWD)/modules.conf.in $(PWD)/modules.conf ; fi
|
||||
@echo making modules
|
||||
@rm -f build/freeswitch.env
|
||||
@./build/addenv.sh build/freeswitch.env MAKE "$(MAKE)"
|
||||
|
|
|
@ -1010,6 +1010,7 @@ depends:
|
|||
rm build/freeswitch.env
|
||||
|
||||
modules: $(NAME)
|
||||
@if [ ! -f $(PWD)/modules.conf ] ; then cp $(PWD)/modules.conf.in $(PWD)/modules.conf ; fi
|
||||
@echo making modules
|
||||
@rm -f build/freeswitch.env
|
||||
@./build/addenv.sh build/freeswitch.env MAKE "$(MAKE)"
|
||||
|
|
24
modules.conf
24
modules.conf
|
@ -1,24 +0,0 @@
|
|||
event_handlers/mod_zeroconf
|
||||
applications/mod_bridgecall
|
||||
applications/mod_playback
|
||||
applications/mod_ivrtest
|
||||
#applications/mod_skel
|
||||
codecs/mod_gsm
|
||||
codecs/mod_g711
|
||||
codecs/mod_l16
|
||||
codecs/mod_speex
|
||||
dialplans/mod_dialplan_demo
|
||||
endpoints/mod_exosip
|
||||
endpoints/mod_iax
|
||||
#endpoints/mod_opal
|
||||
#endpoints/mod_portaudio
|
||||
#endpoints/mod_wanpipe
|
||||
endpoints/mod_woomera
|
||||
#event_handlers/mod_event_test
|
||||
event_handlers/mod_xmpp_event
|
||||
formats/mod_sndfile
|
||||
timers/mod_softtimer
|
||||
dialplans/mod_pcre
|
||||
directories/mod_ldap
|
||||
dialplans/mod_dialplan_directory
|
||||
|
|
@ -1,14 +1,23 @@
|
|||
# list the modules to build
|
||||
mod_bridgecall
|
||||
mod_dialplan_demo
|
||||
mod_softtimer
|
||||
#mod_zaptimer
|
||||
#mod_rtctimer
|
||||
mod_woomerachan
|
||||
mod_playback
|
||||
#mod_wanchan
|
||||
#mod_speexcodec
|
||||
#mod_speextest
|
||||
#mod_exosip
|
||||
mod_g711codec
|
||||
mod_rawaudio
|
||||
applications/mod_bridgecall
|
||||
applications/mod_playback
|
||||
applications/mod_ivrtest
|
||||
#applications/mod_skel
|
||||
codecs/mod_gsm
|
||||
codecs/mod_g711
|
||||
codecs/mod_l16
|
||||
codecs/mod_speex
|
||||
dialplans/mod_dialplan_demo
|
||||
endpoints/mod_exosip
|
||||
endpoints/mod_iax
|
||||
#endpoints/mod_opal
|
||||
#endpoints/mod_portaudio
|
||||
#endpoints/mod_wanpipe
|
||||
endpoints/mod_woomera
|
||||
#event_handlers/mod_event_test
|
||||
event_handlers/mod_xmpp_event
|
||||
formats/mod_sndfile
|
||||
timers/mod_softtimer
|
||||
dialplans/mod_pcre
|
||||
directories/mod_ldap
|
||||
dialplans/mod_dialplan_directory
|
||||
event_handlers/mod_zeroconf
|
||||
|
|
|
@ -860,7 +860,7 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_runtime(void)
|
|||
int netfd;
|
||||
int refresh;
|
||||
struct iax_event *iaxevent = NULL;
|
||||
|
||||
switch_event *s_event;
|
||||
load_config();
|
||||
|
||||
if (globals.debug) {
|
||||
|
@ -877,6 +877,12 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_runtime(void)
|
|||
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "IAX Ready Port %d\n", globals.port);
|
||||
|
||||
if (switch_event_create(&s_event, SWITCH_EVENT_PUBLISH) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_event_add_header(s_event, SWITCH_STACK_BOTTOM, "service", "_iax2._udp");
|
||||
switch_event_add_header(s_event, SWITCH_STACK_BOTTOM, "port", "%d", globals.port);
|
||||
switch_event_fire(&s_event);
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
|
||||
if (running == -1) {
|
||||
|
|
|
@ -862,7 +862,7 @@ static void *pri_thread_run(switch_thread *thread, void *obj)
|
|||
{
|
||||
struct sangoma_pri *spri = obj;
|
||||
struct channel_map chanmap;
|
||||
|
||||
switch_event *s_event;
|
||||
SANGOMA_MAP_PRI_EVENT((*spri), SANGOMA_PRI_EVENT_ANY, on_anything);
|
||||
SANGOMA_MAP_PRI_EVENT((*spri), SANGOMA_PRI_EVENT_RING, on_ring);
|
||||
SANGOMA_MAP_PRI_EVENT((*spri), SANGOMA_PRI_EVENT_RINGING, on_ringing);
|
||||
|
@ -874,6 +874,12 @@ static void *pri_thread_run(switch_thread *thread, void *obj)
|
|||
|
||||
spri->on_loop = check_flags;
|
||||
spri->private = &chanmap;
|
||||
|
||||
if (switch_event_create(&s_event, SWITCH_EVENT_PUBLISH) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_event_add_header(s_event, SWITCH_STACK_BOTTOM, "service", "_pri._tcp");
|
||||
switch_event_fire(&s_event);
|
||||
}
|
||||
|
||||
sangoma_run_pri(spri);
|
||||
|
||||
free(spri);
|
||||
|
|
Loading…
Reference in New Issue