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:
Anthony Minessale
2006-02-14 16:42:26 +00:00
parent cb463b4e52
commit d1f821478b
6 changed files with 39 additions and 40 deletions

View File

@@ -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) {

View File

@@ -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);