We are running a few tests of the latest QM installed on TrixBox 2.6, and we are noticing that the chan_agents module, while loaded, is not immediatly working. This is because there is no
agents.conf file.
To check if this is the case, try running the command:
core show application AgentCallbackLogin
If you get an error message, this means that the module has not loaded correctly.
In order to activate AgentCallBackLogin, you can do the following:
1. Create the file
/etc/asterisk/agents.confecho > /etc/asterisk/agents.conf
chown asterisk.asterisk /etc/asterisk/agents.conf
2. Edit the file
/etc/asterisk/agents.conf (you can use a text editor or the TrixBox
PBX -> Config Edit tool) and set it like this:
[general]
persistentagents=yes
[agents]
ackcall=no
agent => 300,,Alice
agent => 301,,Bob
You can create your own agents, of course, instead of the given ones.
Now the tricky part - log on to Asterisk and type:
module unload chan_agent.so
module load chan_agent.so
Or just reboot....
At this point, the module should have been loaded correctly.
You can try it by typing:
agent show
You should get something like:
300 (Alice) available at '400@from-internal' (musiconhold is 'default')
301 (Bob) not logged in (musiconhold is 'default')
2 agents configured [1 online , 1 offline]
This should be it.