[Home]

Summary:ASTERISK-25798: Agent CLI commands no longer exist on 11.21.2
Reporter:Jeff Hoppe (jhoppebugs)Labels:
Date Opened:2016-02-16 11:43:55.000-0600Date Closed:2016-02-16 13:33:50.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:
Versions:11.22.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Command Line Interface Attachments:
Description:The following CLI commands are no longer available on 11.21.2

Latest version of Asterisk 11
Comments:By: Asterisk Team (asteriskteam) 2016-02-16 11:43:56.700-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Joshua C. Colp (jcolp) 2016-02-16 12:23:30.634-0600

There have been no changes to chan_agent in 11 in 3 years. Can you provide console output at startup showing it loading, as well as the commands failing?

By: Joshua C. Colp (jcolp) 2016-02-16 12:29:43.082-0600

All agent functionality is in chan_agent in 11. If that's not loaded or built, then you won't have any of it. Can you please provide what I've asked for and confirm things.

By: Jeff Hoppe (jhoppebugs) 2016-02-16 12:29:44.528-0600

[root@hq-ast-v08 asterisk-11.21.2]# asterisk -rvvv
Asterisk 11.21.2, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.21.2 currently running on hq-ast-v08 (pid = 3775)
hq-ast-v08*CLI> agent show
No such command 'agent show' (type 'core show help agent show' for other possible commands)
hq-ast-v08*CLI> core show application agentlogin
Your application(s) is (are) not registered
Command 'core show application agentlogin' failed.
   -- Remote UNIX connection
 == Parsing '/etc/asterisk/logger.conf': Found
Asterisk Queue Logger restarted
   -- Remote UNIX connection disconnected
hq-ast-v08*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@hq-ast-v08 asterisk-11.21.2]#


By: Jeff Hoppe (jhoppebugs) 2016-02-16 12:31:37.035-0600

chan_agent has a star * by it in the Make Menuselect.

I will get console output shortly.

By: Joshua C. Colp (jcolp) 2016-02-16 12:36:03.313-0600

What is the COMPLETE console output at Asterisk startup and what is the contents of /etc/asterisk/modules.conf and the list of files in /var/lib/asterisk/modules ? It really appears as though this is specific to your environment. I can't reproduce this:

{code}
*CLI> agent show online
No Agents are configured in agents.conf

*CLI> core show version
Asterisk 11.21.2 built by jcolp @ electron on a x86_64 running Linux on 2016-02-16 18:30:11 UTC
{code}

By: Jeff Hoppe (jhoppebugs) 2016-02-16 13:18:16.894-0600

I am using Asterisk 11 with MSSQL Server database for static realtime queues and agents.  I had no issues with 11.6, so at some point afterwards a change was made to res/res_config_odbc.c that uses the LENGTH database function.  Since this is not compatible with MSSQL I changed it to LEN and recompiled and now it works.

I modified the query in res/res_config_odbc.c.
Original:  "SELECT MAX(LENGTH(var_val)) FROM %s WHERE filename='%s'"
Modified: "SELECT MAX(LEN(var_val)) FROM %s WHERE filename='%s'"

Agent capabilities were being disabled at start up due to no agent configuration.  Agent configuration was not being loaded due to the above error.

Thanks for your guidance.