The file is located in the /etc/asterisk/ directory.
The most common usage of the agents.conf file is with the queues. Usually it is used together with the queues.conf file.
In the agents.conf file you create the so called agents. This are users, which you could use to answer the incoming phone calls in your queues.
The agents could be separated into different groups called context. In this way you have a bigger flexability in the management of your queues, because you could choose which agent, with which queue to work.
Below, we will explain you in details each opition from the file and what for this option is used.
2. The agents.conf file
There are two types of contexts. The first one is the [general] context. The other one is the [agents] context. The context names cannot be changed. You define the start of a context by typing the following: [general]. Do not forget the brackets. The one context ends when the other starts.
Now, lets take a look at the options in the [general] context.
1)The general context
The following option is available:
persistentagents - This option defines whether the agent`s callback logins have to be stored in the Asterisk`s database are not. If this option is set to yes, the logins will be stored. If it is set to no they won`t be stored. the persistent logins will be reloaded after the Asterisk restart. By default the option is set to yes.
2)The agents context
The following options are available:
autologoff - with this option you set for how long the phone has to ring with no answer, before the agent to be logged off. You have to set the maximum period of time in seconds. By default this option is set to 15 seconds.
ackall - if this option is set to yes and the agent is loging in with the AgentCallbackLogin application, then an acknowledgement, by pressing the pound key(#), will be required. By default this option is set to no.
wrapuptime - this option refers to the time after the conversation is over. With this option you set the minimum period of time, which has to expire, before a new call to be received. The time is in milliseconds. By default it is set to 5000.
musiconhold - with this option you can define the default music on hold class for the agents. By default the class is default. The music on hold classes could be defined in the musiconhold.conf file. You define the class there and here in agents.conf you have just to call the name of the class.
updatecdr - with this option you say whether, you want to change the source channel, for the call, in the CDR record or not. So in this way we could know which agent generates the call. By default this option is set to no.
group - this option allows you to group your agents into separate groups for easy management. By default no group is set. The way f creating a group is the following: group=groupnumber. Example: group=1.
To assing an agent to a group you have just to add it after the key phrase group=groupnumber.
For example:
start--> group=1
agent => 8888,8888,user1
......
The options below are dedicated to the recording of the agent`s calls. Each option is actually a global variable for the chan_agent channel driver.
recordagencalls - this option allows the recording of the agent call. By default the option is set to no, which means that it is turned off
recordformat - this is for the format of the audio file. The file in which the agent call will be stored. The supported formats are: .wav, .gsm and .wav49. By default it is set to .wav
createlink - thanks to this option you could allow the insert of the name of the created recording into the CDR userfield. By default this option is set to no, which means that the option is disallowed.
urlprefix - this option will add a text to the name of the recording. It allows to be an URL. For example: urlprefix=http://localhost/calls/
savecallsin - thanks to this option you can change the directory, where you would like the redorded files to be stored. Otherwise the default one will be used. The default directory is /var/spool/asterisk/monitor
custom_beep - with this option you can set a custom beep sound, which to be played to the always-connected agents.
3. The creation of an agent
Now, lets see, actually how you have to create the agent. In other words the form for creating an agent.
The following is the form: agent => agentnumber,agentpassword,name
agentnumber is the number of the agent.
agentpassword is the password of the agent, which will be ask for authentication in the Dialplan applications (AgentLogin or AgentCallbackLogin)
name is the real name of the agent. The name could be anything you want.
ixi ca (ixicacanada at gmail dot com) 16 November 2020 13:23:24 [url=https://www.ixica.com/sip-trunking]sip trunking canada[/url]
Great Content Bro thanks for this...!!!!
you are try to do some best of peoples...!!!!
i WILL share the content with my friends....
once again thanku so much..... >>>>>>>>>
What are IXICA Services?
Click link More information >>>>>>
ixi ca (ixicacanada at gmail dot com) 16 November 2020 13:21:24
Great Content Bro thanks for this...!!!!
you are try to do some best of peoples...!!!!
i WILL share the content with my friends....
once again thanku so much..... >>>>>>>>>
What are IXICA Services?
Click link More information >>>>>>
<a href="https://www.ixica.com/sip-trunking">sip trunking canada</a>
cialis without doctor prescription (carmen_lavater44 at tolbe dot ml) 16 July 2020 01:14:55 cialis without doctor prescription http://cialislet.com/
Greta (jfmmok1cqyv at hotmail dot com) 19 April 2016 13:06:40 This weibste makes things hella easy. http://uzpklfwn.com [url=http://dvwfdlanzmo.com]dvwfdlanzmo[/url] [link=http://klrlqvn.com]klrlqvn[/link]
ziphozonke (zeepo dot m at webmail dot co dot za) 20 October 2008 08:37:31 i've exploring Asterisk it is interesting...
i jus wanna know how much does it cost to learn Advance Asterisk?
jason (jason at toplinks dot hk) 21 May 2007 09:23:24 How to change "savecallsin - the directory,"
where you would like the redorded files to be stored. Otherwise the default one will be used. The default directory is /var/spool/asterisk/monitor"
please send to my email!
Branko Geci (brankogeci at yahoo dot com) 08 May 2007 01:40:01 I think that autologoff and wrapuptime by default is set to 0 (or unset). Please point me where is in source code setting to 15s and 5000ms.
Uros (kraljhenri at yahoo dot co dot uk) 23 May 2006 17:00:17 Valuable page.Thanks