Then in extensions.ael, you can do these things:
The Main Menu
At Digium, incoming callers are sent to the "mainmenu" context, where they are greeted, and directed to the numbers they choose...
The Contexts referenced from the queues.conf file
Please note that there is only one attempt to queue a call in the sales queue. All sales agents that are logged in will be rung.
Note that calls coming into customerservice will first be try to queue calls to those agents with a QUEUE_MAX_PENALTY of 10, and if none are available, then all agents are rung.
And in the dispatch context, first agents of priority 10 are tried, then 20, and if none are available, all agents are tried.
Notice that a common pattern is followed in each of the three queue contexts:
First, you set QUEUE_MAX_PENALTY to a value, then you call Queue(queue-name,option,...) (see the Queue application documetation for details)
In the above, note that the "t" option is specified, and this allows the agent picking up the incoming call the luxury of transferring the call to other parties.
The purpose of specifying the QUEUE_MAX_PENALTY is to develop a set of priorities amongst agents. By the above usage, agents with lower number priorities will be given the calls first, and then, if no-one picks up the call, the QUEUE_MAX_PENALTY will be incremented, and the queue tried
again. Hopefully, along the line, someone will pick up the call, and the Queue application will end with a hangup.
The final attempt to queue in most of our examples sets the QUEUE_MAX_PENALTY to zero, which means to try all available agents.