jabberd2
2.2.16
|
PBX integration commands interpreter. More...
#include "c2s.h"
Go to the source code of this file.
Functions | |
static int | _pbx_command_part_len (char *cmd) |
Available commands: START jid/resource [[priority ]status] [description] - opens PBX resource session STOP jid/resource [description] - closes PBX resource session STATUS - dumps list of currently open PBX sessions. | |
static nad_t | _pbx_presence_nad (int available, char *cmd) |
int | _pbx_process_command (c2s_t c2s, char *cmd) |
process commandline |
PBX integration commands interpreter.
Definition in file pbx_commands.c.
static int _pbx_command_part_len | ( | char * | cmd | ) | [static] |
Available commands: START jid/resource [[priority ]status] [description] - opens PBX resource session STOP jid/resource [description] - closes PBX resource session STATUS - dumps list of currently open PBX sessions.
[status] in: CHAT, ONLINE, DND, AWAY, XA
Definition at line 39 of file pbx_commands.c.
Referenced by _pbx_process_command().
static nad_t _pbx_presence_nad | ( | int | available, |
char * | cmd | ||
) | [static] |
Definition at line 46 of file pbx_commands.c.
References nad_new(), nad_add_namespace(), uri_CLIENT, nad_append_elem(), nad_append_attr(), log_debug, ZONE, and nad_append_cdata().
Referenced by _pbx_process_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().