mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
add app log
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4994 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -126,6 +126,7 @@ struct switch_core_session {
|
||||
switch_queue_t *private_event_queue;
|
||||
switch_thread_rwlock_t *bug_rwlock;
|
||||
switch_media_bug_t *bugs;
|
||||
switch_app_log_t *app_log;
|
||||
};
|
||||
|
||||
struct switch_media_bug {
|
||||
|
||||
@@ -117,6 +117,7 @@ struct switch_caller_extension {
|
||||
switch_caller_application_t *last_application;
|
||||
/*! Pointer to the entire stack of applications for this extension */
|
||||
switch_caller_application_t *applications;
|
||||
struct switch_caller_profile *children;
|
||||
struct switch_caller_extension *next;
|
||||
};
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
SWITCH_BEGIN_EXTERN_C
|
||||
#define SWITCH_MAX_CORE_THREAD_SESSION_OBJS 128
|
||||
#define SWITCH_MAX_STREAMS 128
|
||||
struct switch_core_time_duration {
|
||||
struct switch_core_time_duration {
|
||||
uint32_t mms;
|
||||
uint32_t ms;
|
||||
uint32_t sec;
|
||||
@@ -53,6 +53,12 @@ SWITCH_BEGIN_EXTERN_C
|
||||
uint32_t yr;
|
||||
};
|
||||
|
||||
struct switch_app_log {
|
||||
char *app;
|
||||
char *arg;
|
||||
struct switch_app_log *next;
|
||||
};
|
||||
|
||||
/*! \brief A message object designed to allow unlike technologies to exchange data */
|
||||
struct switch_core_session_message {
|
||||
/*! uuid of the sender (for replies) */
|
||||
@@ -565,6 +571,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_flush_message(switch_core_se
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_session_event_send(char *uuid_str, switch_event_t **event);
|
||||
|
||||
SWITCH_DECLARE(switch_app_log_t *) switch_core_session_get_app_log(switch_core_session_t *session);
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *session,
|
||||
const switch_application_interface_t *application_interface, char *arg);
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_session_t *session, char *exten, char *dialplan, char *context);
|
||||
|
||||
/*!
|
||||
|
||||
@@ -954,6 +954,7 @@ typedef enum {
|
||||
|
||||
typedef uint16_t switch_port_t;
|
||||
typedef uint8_t switch_payload_t;
|
||||
typedef struct switch_app_log switch_app_log_t;
|
||||
typedef struct switch_rtp switch_rtp_t;
|
||||
typedef struct switch_core_session_message switch_core_session_message_t;
|
||||
typedef struct switch_event_header switch_event_header_t;
|
||||
|
||||
Reference in New Issue
Block a user