[asterisk-commits] file: trunk r68900 - /trunk/channels/chan_agent.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jun 12 06:34:58 MST 2007
Author: file
Date: Tue Jun 12 08:34:57 2007
New Revision: 68900
URL: http://svn.digium.com/view/asterisk?view=rev&rev=68900
Log:
Remove old stuff from the AgentCallbackLogin days and only autocomplete agents in the agent logoff CLI command that are logged in. (issue #9952 reported by eliel)
Modified:
trunk/channels/chan_agent.c
Modified: trunk/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_agent.c?view=diff&rev=68900&r1=68899&r2=68900
==============================================================================
--- trunk/channels/chan_agent.c (original)
+++ trunk/channels/chan_agent.c Tue Jun 12 08:34:57 2007
@@ -118,15 +118,6 @@
"Variables: (Names marked with * are required)\n"
" *Agent: Agent ID of the agent to log off\n"
" Soft: Set to 'true' to not hangup existing calls\n";
-
-static const char mandescr_agent_callback_login[] =
-"Description: Sets an agent as logged in with callback.\n"
-"Variables: (Names marked with * are required)\n"
-" *Agent: Agent ID of the agent to login\n"
-" *Exten: Extension to use for callback\n"
-" Context: Context to use for callback\n"
-" AckCall: Set to 'true' to require an acknowledgement by '#' when agent is called back\n"
-" WrapupTime: the minimum amount of time after disconnecting before the caller can receive a new call\n";
static char moh[80] = "default";
@@ -1397,7 +1388,7 @@
* \param s
* \param m
* \returns
- * \sa action_agent_logoff(), action_agent_callback_login(), load_module().
+ * \sa action_agent_logoff(), load_module().
*/
static int action_agents(struct mansession *s, const struct message *m)
{
@@ -1562,7 +1553,7 @@
* \param s
* \param m
* \returns
- * \sa action_agents(), action_agent_callback_login(), load_module().
+ * \sa action_agents(), load_module().
*/
static int action_agent_logoff(struct mansession *s, const struct message *m)
{
@@ -1595,7 +1586,7 @@
AST_LIST_TRAVERSE(&agents, p, list) {
snprintf(name, sizeof(name), "Agent/%s", p->agent);
- if (!strncasecmp(word, name, len) && ++which > state)
+ if (!strncasecmp(word, name, len) && p->loginstart && ++which > state)
return ast_strdup(name);
}
} else if (pos == 3 && state == 0)
More information about the asterisk-commits
mailing list