jabberd2
2.6.1
|
PBX integration. More...
#include "c2s.h"
Go to the source code of this file.
Macros | |
#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, const char *cmd) |
process commandline More... | |
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 |
Definition at line 84 of file pbx.c.
References log_debug, c2s_st::mio, mio_close, c2s_st::pbx_pipe_mio_fd, and ZONE.
Referenced by _pbx_mio_callback(), and _pbx_read_command().
|
static |
Definition at line 90 of file pbx.c.
References _pbx_mio_callback(), c2s_st::log, log_debug, log_write(), c2s_st::mio, mio_register, c2s_st::pbx_pipe, c2s_st::pbx_pipe_fd, c2s_st::pbx_pipe_mio_fd, and ZONE.
Referenced by _pbx_read_pipe(), and _pbx_write_pipe().
|
static |
Definition at line 108 of file pbx.c.
References _pbx_open_pipe(), log_debug, c2s_st::mio, mio_read, c2s_st::pbx_pipe_mio_fd, and ZONE.
Referenced by _pbx_read_command(), and c2s_pbx_init().
|
static |
Definition at line 114 of file pbx.c.
References _pbx_open_pipe(), log_debug, c2s_st::mio, mio_write, c2s_st::pbx_pipe_mio_fd, and ZONE.
Referenced by _pbx_read_command().
int _pbx_process_command | ( | c2s_t | c2s, |
const char * | cmd | ||
) |
process commandline
Definition at line 118 of file pbx_commands.c.
References _pbx_command_part_len(), _pbx_presence_nad(), sess_st::c2s, c2s_st::dead_sess, jid_full(), jid_new(), jid_user(), jqueue_push(), sess_st::last_activity, c2s_st::log, log_debug, log_write(), jid_st::resource, sess_st::resources, c2s_st::sessions, shahash_r(), sess_st::skey, sm_end(), sm_packet(), sm_start(), xhash_get(), xhash_put(), xhash_zap(), and ZONE.
Referenced by _pbx_read_command().
|
static |
Definition at line 37 of file pbx.c.
References _pbx_close_pipe(), _pbx_process_command(), _pbx_read_pipe(), _pbx_write_pipe(), COMMANDLINE_LENGTH_MAX, log_debug, c2s_st::pbx_pipe_fd, and ZONE.
Referenced by _pbx_mio_callback().
|
static |
Definition at line 56 of file pbx.c.
References _pbx_close_pipe(), _pbx_read_command(), action_CLOSE, action_READ, action_WRITE, mio_fd_st::fd, log_debug, c2s_st::pbx_pipe_fd, c2s_st::pbx_pipe_mio_fd, and ZONE.
Referenced by _pbx_open_pipe().
void c2s_pbx_init | ( | c2s_t | c2s | ) |
Definition at line 120 of file pbx.c.
References _pbx_read_pipe(), c2s_st::log, log_debug, log_write(), c2s_st::pbx_pipe, and ZONE.
Referenced by c2s_router_sx_callback().