"Show all online agents",show_agents_online_usage,NULL};
staticstructast_cli_entrycli_agent_logoff={
staticstructast_cli_entrycli_agent_logoff={
{"agent","logoff",NULL},agent_logoff_cmd,
{"agent","logoff",NULL},agent_logoff_cmd,
"Sets an agent offline",agent_logoff_usage,complete_agent_logoff_cmd};
"Sets an agent offline",agent_logoff_usage,complete_agent_logoff_cmd};
@ -2497,6 +2561,7 @@ static int load_module(void *mod)
ast_manager_register2("AgentCallbackLogin",EVENT_FLAG_AGENT,action_agent_callback_login,"Sets an agent as logged in by callback",mandescr_agent_callback_login);
ast_manager_register2("AgentCallbackLogin",EVENT_FLAG_AGENT,action_agent_callback_login,"Sets an agent as logged in by callback",mandescr_agent_callback_login);
/* CLI Commands */
/* CLI Commands */
ast_cli_register(&cli_show_agents);
ast_cli_register(&cli_show_agents);
ast_cli_register(&cli_show_agents_online);
ast_cli_register(&cli_agent_logoff);
ast_cli_register(&cli_agent_logoff);
/* Dialplan Functions */
/* Dialplan Functions */
ast_custom_function_register(&agent_function);
ast_custom_function_register(&agent_function);
@ -2523,6 +2588,7 @@ static int unload_module(void *mod)