From 321b68c5b4803572e42aefe6f6857445184c24f0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 30 Nov 2007 22:56:01 +0000 Subject: [PATCH] these aren't the droids you're looking for, move along.... git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6453 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/xmlrpc-c/.update | 2 +- libs/xmlrpc-c/include/xmlrpc-c/abyss.h | 3 +- libs/xmlrpc-c/lib/abyss/src/server.c | 4 +- libs/xmlrpc-c/lib/abyss/src/thread.c | 2 +- src/include/switch_buffer.h | 7 + src/include/switch_ivr.h | 2 +- src/include/switch_resample.h | 2 + src/include/switch_types.h | 6 + .../applications/mod_dptools/mod_dptools.c | 24 + .../mod_voicemail/mod_voicemail.c | 4 + src/mod/formats/mod_shout/mod_shout.c | 446 ++++++++++++++++-- src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c | 32 +- src/switch_buffer.c | 42 +- src/switch_core_io.c | 25 +- src/switch_core_state_machine.c | 25 +- src/switch_ivr_async.c | 268 +++++++++++ src/switch_resample.c | 21 + 17 files changed, 850 insertions(+), 65 deletions(-) diff --git a/libs/xmlrpc-c/.update b/libs/xmlrpc-c/.update index 61d9732fd3..60fffd18f9 100644 --- a/libs/xmlrpc-c/.update +++ b/libs/xmlrpc-c/.update @@ -1 +1 @@ -Wed Apr 25 16:05:00 EDT 2007 +date diff --git a/libs/xmlrpc-c/include/xmlrpc-c/abyss.h b/libs/xmlrpc-c/include/xmlrpc-c/abyss.h index 4a4fed1a09..b74a7a6e3f 100644 --- a/libs/xmlrpc-c/include/xmlrpc-c/abyss.h +++ b/libs/xmlrpc-c/include/xmlrpc-c/abyss.h @@ -48,7 +48,7 @@ extern "C" { ** Maximum numer of simultaneous connections *********************************************************************/ -#define MAX_CONN 16 +#define MAX_CONN 4000 /********************************************************************* ** Server Info Definitions @@ -443,6 +443,7 @@ typedef struct _TServer TList defaultfilenames; void *defaulthandler; abyss_bool advertise; + int running; #ifndef _WIN32 uid_t uid; gid_t gid; diff --git a/libs/xmlrpc-c/lib/abyss/src/server.c b/libs/xmlrpc-c/lib/abyss/src/server.c index 3752d16249..00980a182b 100644 --- a/libs/xmlrpc-c/lib/abyss/src/server.c +++ b/libs/xmlrpc-c/lib/abyss/src/server.c @@ -770,8 +770,8 @@ ServerRunThreaded(TServer *srv) c[i].inUse = FALSE; s=srv->listensock; - - while( 1 ) + srv->running = 1; + while( srv->running ) { /* collect all threads resources for closed connections */ for (i=0;i" +SWITCH_STANDARD_APP(eavesdrop_function) +{ + char *argv[4]; + int argc; + char *lbuf = NULL; + char *uuid; + + if (data && (lbuf = switch_core_session_strdup(session, data)) + && (argc = switch_separate_string(lbuf, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) { + uuid = argv[0]; + + switch_ivr_eavesdrop_session(session, uuid, ED_DTMF); + + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Usage: %s\n", eavesdrop_SYNTAX); + } +} + + + #define SET_USER_SYNTAX "@" SWITCH_STANDARD_APP(set_user_function) { @@ -1453,6 +1476,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load) SWITCH_ADD_APP(app_interface, "sched_broadcast", SCHED_BROADCAST_DESCR, SCHED_BROADCAST_DESCR, sched_broadcast_function, "[+]