jabberd2
2.7.0
|
PBX integration commands interpreter. More...
#include "c2s.h"
Go to the source code of this file.
Functions | |
static int | _pbx_command_part_len (const 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. More... | |
static nad_t | _pbx_presence_nad (int available, const char *cmd) |
int | _pbx_process_command (c2s_t c2s, const char *cmd) |
process commandline More... | |
PBX integration commands interpreter.
Definition in file pbx_commands.c.
|
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 |
Definition at line 46 of file pbx_commands.c.
References log_debug, nad_add_namespace(), nad_append_attr(), nad_append_cdata(), nad_append_elem(), nad_new(), uri_CLIENT, and ZONE.
Referenced by _pbx_process_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().