mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
small core refactoring use -hp arg to gain high priority mode, add fsctl command USAGE: fsctl [hupall|pause|resume|shutdown]
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2765 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -409,8 +409,9 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_locate(char *uuid_st
|
||||
|
||||
/*!
|
||||
\brief Hangup All Sessions
|
||||
\param cause the hangup cause to apply to the hungup channels
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_core_session_hupall(void);
|
||||
SWITCH_DECLARE(void) switch_core_session_hupall(switch_call_cause_t cause);
|
||||
|
||||
/*!
|
||||
\brief Send a message to another session using it's uuid
|
||||
@@ -1198,6 +1199,19 @@ SWITCH_DECLARE(switch_status_t) switch_core_directory_close(switch_directory_han
|
||||
*/
|
||||
SWITCH_DECLARE(FILE *) switch_core_data_channel(switch_text_channel_t channel);
|
||||
|
||||
|
||||
/*!
|
||||
\brief Set the maximum priority the process can obtain
|
||||
\return 0 on success
|
||||
*/
|
||||
SWITCH_DECLARE(int32_t) set_high_priority(void);
|
||||
|
||||
/*!
|
||||
\brief Run endlessly until the system is shutdown
|
||||
\param bg divert console to the background
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_core_runtime_loop(int bg);
|
||||
|
||||
/*!
|
||||
\brief Set the output console to the desired file
|
||||
\param console the file path
|
||||
@@ -1217,6 +1231,14 @@ SWITCH_DECLARE(void) switch_core_measure_time(switch_time_t total_ms, switch_cor
|
||||
*/
|
||||
SWITCH_DECLARE(switch_time_t) switch_core_uptime(void);
|
||||
|
||||
/*!
|
||||
\brief send a control message to the core
|
||||
\param cmd the command
|
||||
\param val the command arguement (if needed)
|
||||
\return 0 on success nonzero on error
|
||||
*/
|
||||
SWITCH_DECLARE(int32_t) switch_core_session_ctl(switch_session_ctl_t cmd, uint32_t *val);
|
||||
|
||||
/*!
|
||||
\brief Get the output console
|
||||
\return the FILE stream
|
||||
|
||||
@@ -176,6 +176,7 @@ typedef enum {
|
||||
SWITCH_RTP_FLAG_VAD - Enable VAD
|
||||
SWITCH_RTP_FLAG_BREAK - Stop what you are doing and return SWITCH_STATUS_BREAK
|
||||
SWITCH_RTP_FLAG_MINI - Use mini RTP when possible
|
||||
SWITCH_RTP_FLAG_DATAWAIT - Do not return from reads unless there is data even when non blocking
|
||||
</pre>
|
||||
*/
|
||||
typedef enum {
|
||||
@@ -189,7 +190,8 @@ typedef enum {
|
||||
SWITCH_RTP_FLAG_GOOGLEHACK = (1 << 7),
|
||||
SWITCH_RTP_FLAG_VAD = (1 << 8),
|
||||
SWITCH_RTP_FLAG_BREAK = ( 1 << 9),
|
||||
SWITCH_RTP_FLAG_MINI = ( 1 << 10)
|
||||
SWITCH_RTP_FLAG_MINI = ( 1 << 10),
|
||||
SWITCH_RTP_FLAG_DATAWAIT = (1 << 11)
|
||||
} switch_rtp_flag_t;
|
||||
|
||||
/*!
|
||||
@@ -690,9 +692,16 @@ typedef enum {
|
||||
SWITCH_CAUSE_INTERWORKING = 127,
|
||||
SWITCH_CAUSE_CRASH = 500,
|
||||
SWITCH_CAUSE_SYSTEM_SHUTDOWN = 501,
|
||||
SWITCH_CAUSE_LOSE_RACE = 502
|
||||
SWITCH_CAUSE_LOSE_RACE = 502,
|
||||
SWITCH_CAUSE_MANAGER_REQUEST = 503
|
||||
} switch_call_cause_t;
|
||||
|
||||
typedef enum {
|
||||
SCSC_PAUSE_INBOUND,
|
||||
SCSC_HUPALL,
|
||||
SCSC_SHUTDOWN,
|
||||
SCSC_CHECK_RUNNING
|
||||
} switch_session_ctl_t;
|
||||
|
||||
typedef uint8_t switch_payload_t;
|
||||
typedef struct switch_rtp switch_rtp_t;
|
||||
|
||||
Reference in New Issue
Block a user