* switch_ivr_play_say.c -- IVR Library (functions to play or say audio)
*
*/
+
#include <switch.h>
static char *SAY_METHOD_NAMES[] = {
NULL
};
-
static switch_say_method_t get_say_method_by_name(char *name)
{
int x = 0;
return (switch_say_type_t) x;
}
-
SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *session, const char *macro_name, const char *data, const char *lang,
switch_input_args_t *args)
{
* switch_loadable_module.c -- Loadable Modules
*
*/
+
#include <switch.h>
/* for apr_pstrcat */
* switch_log.c -- Logging
*
*/
+
#include <switch.h>
#include "private/switch_core_pvt.h"
-
static const char *LEVELS[] = {
"CONSOLE",
"ALERT",
* switch_odbc.c -- ODBC
*
*/
+
#include <switch.h>
#include <switch_odbc.h>
#include <switch.h>
#include <pcre.h>
-
SWITCH_DECLARE(switch_regex_t *) switch_regex_compile(const char *pattern,
int options, const char **errorptr, int *erroroffset,
const unsigned char *tables)
}
-
SWITCH_DECLARE(int) switch_regex_copy_substring(const char *subject, int *ovector, int stringcount, int stringnumber, char *buffer, int size)
{
return pcre_copy_substring(subject, ovector, stringcount, stringnumber, buffer, size);
* switch_caller.c -- Caller Identification
*
*/
+
#include <switch.h>
#include <switch_resample.h>
#ifndef WIN32
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
-
-
SWITCH_DECLARE(switch_status_t) switch_resample_create(switch_audio_resampler_t **new_resampler,
int from_rate, switch_size_t from_size, int to_rate, uint32_t to_size, switch_memory_pool_t *pool)
{
* switch_scheduler.c -- Switch Scheduler
*
*/
-#include <switch.h>
+#include <switch.h>
struct switch_scheduler_task_container {
switch_scheduler_task_t task;
};
typedef struct switch_scheduler_task_container switch_scheduler_task_container_t;
-
static struct {
switch_scheduler_task_container_t *task_list;
switch_mutex_t *task_mutex;
* switch_stun.c STUN (Simple Traversal of UDP over NAT)
*
*/
+
#include <switch.h>
#include <switch_stun.h>
#pragma warning (disable:1418)
#endif
-
-
#ifdef _MSC_VER
#include <php.h>
#pragma comment(lib, PHP_LIB)
* softtimer.c -- Software Timer Module
*
*/
+
#include <switch.h>
#include <stdio.h>
#include "private/switch_core_pvt.h"
#define MAX_TICK UINT32_MAX - 1024
-
static switch_memory_pool_t *module_pool = NULL;
static struct {
* switch_utils.c -- Compatability and Helper Code
*
*/
+
#include <switch.h>
#ifndef WIN32
#include <arpa/inet.h>