more events and some build changes

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@188 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2005-12-21 22:25:22 +00:00
parent 03cc285054
commit 6949227ca1
15 changed files with 366 additions and 45 deletions
+10 -2
View File
@@ -36,8 +36,16 @@ static const char modname[] = "mod_event_test";
static void event_handler (switch_event *event)
{
char buf[1024];
switch_event_serialize(event, buf, sizeof(buf), NULL);
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "\nEVENT\n--------------------------------\n%s\n", buf);
switch(event->event_id) {
case SWITCH_EVENT_LOG:
return;
break;
default:
switch_event_serialize(event, buf, sizeof(buf), NULL);
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "\nEVENT\n--------------------------------\n%s\n", buf);
break;
}
}
+4 -4
View File
@@ -8,11 +8,11 @@ else
endif
depends:
$(BASE)/buildlib.sh $(BASE) install jthread-1.1.2.tar.gz --prefix=/usr/local
$(BASE)/buildlib.sh $(BASE) install jrtplib-3.3.0.tar.gz --prefix=/usr/local
$(BASE)/buildlib.sh $(BASE) install jthread-1.1.2.tar.gz
$(BASE)/buildlib.sh $(BASE) install jrtplib-3.3.0.tar.gz
$(BASE)/buildlib.sh $(BASE) install jrtp4c
$(BASE)/buildlib.sh $(BASE) install libosip2-2.2.2.tar.gz --prefix=/usr/local
$(BASE)/buildlib.sh $(BASE) install libeXosip2-2.2.2.tar.gz --prefix=/usr/local --disable-josua
$(BASE)/buildlib.sh $(BASE) install libosip2-2.2.2.tar.gz
$(BASE)/buildlib.sh $(BASE) install libeXosip2-2.2.2.tar.gz --disable-josua
$(MOD).so: $(MOD).c
+1 -1
View File
@@ -982,7 +982,7 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void)
iax_shutdown();
while (running) {
if (x++ > 1000) {
if (x++ > 100) {
break;
}
switch_yield(20000);
+1 -1
View File
@@ -1,5 +1,5 @@
depends:
$(BASE)/buildlib.sh $(BASE) install speex-1.1.11.1.tar.gz --prefix=/usr/local
$(BASE)/buildlib.sh $(BASE) install speex-1.1.11.1.tar.gz
$(MOD).so: $(MOD).c
$(CC) $(CFLAGS) -fPIC -c $(MOD).c -o $(MOD).o