jabberd2
2.2.16
|
PBX integration. More...
#include "c2s.h"
Go to the source code of this file.
Defines | |
#define | COMMANDLINE_LENGTH_MAX 2048 |
Functions | |
static void | _pbx_close_pipe (c2s_t c2s) |
static void | _pbx_open_pipe (c2s_t c2s, int mode) |
static void | _pbx_read_pipe (c2s_t c2s) |
static void | _pbx_write_pipe (c2s_t c2s) |
int | _pbx_process_command (c2s_t c2s, char *cmd) |
process commandline | |
static void | _pbx_read_command (c2s_t c2s) |
static int | _pbx_mio_callback (mio_t m, mio_action_t a, mio_fd_t fd, void *data, void *arg) |
void | c2s_pbx_init (c2s_t c2s) |
PBX integration.
Definition in file pbx.c.
#define COMMANDLINE_LENGTH_MAX 2048 |
Definition at line 30 of file pbx.c.
Referenced by _pbx_read_command().
static void _pbx_close_pipe | ( | c2s_t | c2s | ) | [static] |
Definition at line 84 of file pbx.c.
References log_debug, ZONE, c2s_st::pbx_pipe_mio_fd, mio_close, and c2s_st::mio.
Referenced by _pbx_read_command(), and _pbx_mio_callback().
static void _pbx_open_pipe | ( | c2s_t | c2s, |
int | mode | ||
) | [static] |
Definition at line 90 of file pbx.c.
References log_debug, ZONE, log_write(), c2s_st::log, c2s_st::pbx_pipe_fd, c2s_st::pbx_pipe, c2s_st::pbx_pipe_mio_fd, mio_register, c2s_st::mio, and _pbx_mio_callback().
Referenced by _pbx_read_pipe(), and _pbx_write_pipe().
static void _pbx_read_pipe | ( | c2s_t | c2s | ) | [static] |
Definition at line 108 of file pbx.c.
References log_debug, ZONE, _pbx_open_pipe(), mio_read, c2s_st::mio, and c2s_st::pbx_pipe_mio_fd.
Referenced by _pbx_read_command(), and c2s_pbx_init().
static void _pbx_write_pipe | ( | c2s_t | c2s | ) | [static] |
Definition at line 114 of file pbx.c.
References log_debug, ZONE, _pbx_open_pipe(), mio_write, c2s_st::mio, and c2s_st::pbx_pipe_mio_fd.
Referenced by _pbx_read_command().
int _pbx_process_command | ( | c2s_t | c2s, |
char * | cmd | ||
) |
process commandline
Definition at line 118 of file pbx_commands.c.
References _pbx_command_part_len(), jid_new(), shahash_r(), jid_full(), xhash_get(), c2s_st::sessions, log_debug, ZONE, jid_user(), jid_st::resource, sess_st::c2s, sess_st::last_activity, sess_st::skey, xhash_put(), log_write(), sm_start(), _pbx_presence_nad(), sm_packet(), sess_st::resources, sm_end(), xhash_zap(), jqueue_push(), c2s_st::dead_sess, and c2s_st::log.
Referenced by _pbx_read_command().
static void _pbx_read_command | ( | c2s_t | c2s | ) | [static] |
Definition at line 37 of file pbx.c.
References COMMANDLINE_LENGTH_MAX, c2s_st::pbx_pipe_fd, log_debug, ZONE, _pbx_close_pipe(), _pbx_process_command(), _pbx_write_pipe(), and _pbx_read_pipe().
Referenced by _pbx_mio_callback().
static int _pbx_mio_callback | ( | mio_t | m, |
mio_action_t | a, | ||
mio_fd_t | fd, | ||
void * | data, | ||
void * | arg | ||
) | [static] |
Definition at line 56 of file pbx.c.
References log_debug, ZONE, action_READ, mio_fd_st::fd, _pbx_read_command(), action_WRITE, _pbx_close_pipe(), action_CLOSE, c2s_st::pbx_pipe_mio_fd, and c2s_st::pbx_pipe_fd.
Referenced by _pbx_open_pipe().
void c2s_pbx_init | ( | c2s_t | c2s | ) |
Definition at line 120 of file pbx.c.
References log_debug, ZONE, log_write(), c2s_st::log, c2s_st::pbx_pipe, and _pbx_read_pipe().
Referenced by c2s_router_sx_callback().