mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user