Dynamic Agents Queues

ppetroff
Posts: 58
Member Since:
2007-05-03

Allright, So i have a fresh install of trixbox CE 2.6.1

Queues, IVR, in/outbound works great.
Trying to find documentation on creating Dynamic agents has been a runaround for me.

On Install planning with the customer, there was no mention of "hotdesking" just, " they sit down and login to the queue." During config, i found out that agents login to different phones and each has a few queues that they log in to, with a single code on their current phones (mitel Intertel)

I have a few queues that i can just p/u the phone and dial 500* and then the extension, and i get logged in. I thought about writing a custom dialplan to help with this, but i dunno how to do that yet (still learning)

I found a few posts about "oh just change extensions to deviceanduser in amportal.conf, works great!" Right.
There is a Sales queue, Helpdesk, Pricing and Billing.
Bob is in Billing and Pricing and moves desks with each shift
Mary is in Sales and Pricing and moves around as well.
Fred is in all 4, and moves around as well.

I have edited amportal.conf and now have devices and users visable to me.

Now, this is where i get lost. What's next?

*12 "an error has occurred"
*11 "phone "ext" is unavailable, goodbye."

Lets say the phones and users were created together so Phone 5000 and user 5000, is this a problem?

I set a password on the user, and try that but again the phone is unavailable. Am i missing something that is so obvious that nobody mentions it or am I just being dense?

Links, advice and help is much appreciated!
TIA!
Pete.



atilio
Posts: 288
Member Since:
2006-06-01
Let's say the queue number

Let's say the queue number is 50. The agent dials 420 + ext number (420330) and this dial plan will log the agent into that queue and add an entry into the queue log. I've used it in the past, but we now have all static agents.

exten => _420XXX,1,Answer
exten => _420XXX,2,AddQueueMember(50|Local/${EXTEN:3}@from-internal/n)
exten => _420XXX,3,System( echo "${EPOCH}|${UNIQUEID}|NONE|Agent/${EXTEN:3}|AGENTLOGIN|-" >> /var/log/asterisk/queue_log)
exten => _420XXX,4,DBput(dynlogin/log_Agent-${EXTEN:3}=${EPOCH})
exten => _420XXX,5,Playback(agent-loginok)
exten => _420XXX,6,Hangup



ppetroff
Posts: 58
Member Since:
2007-05-03
Got it! Easy Dynamic Agents!

Well after reading and testing this is what i have come to learn, and get functioning.

I found that is was a whole lot easier to start off fresh, rather that trying to fix (i performed a bulk extension upload) So with that said, here we go.

Clean 2.6 install
Updates and FreePBX Modules Installed

From the CLI navigate to the following location /etc/asterisk
With your prefered editor ( i like vi ) open amportal.conf and find the following:
# AMPEXTENSIONS: the type of view for extensions admin
# If set to 'deviceanduser' Devices and Users will be administered seperately, and Users will be able to "login" to devices.
# If set to 'extensions' Devices and Users will me administered in a single screen.
AMPEXTENSIONS=extensions
Change the value from extensions to deviceanduser like so:
AMPEXTENSIONS=deviceanduser

Save and exit.
Now we need to restart asterisk and amportal.
From CLI i use the following command
amportal restart

Now login to the webui, and create a user
Complete the form to your needs
Be sure that you supply a password in the User Password field.

Now that we have a user, submit the changes.

Now we need to create a device.
Under Device Options:
Provide a password

Under Device Info
Supply a device ID and Description
For device type, select Adhoc
For default user select none
Now that we have a device, submit the changes and reload.

Tada! the user and device has been created. Now, onto the queue.

For creation of the Queue, please refer here http://freepbx.org/support/documentation/module-documentation/que...

Back already or already know how to make a queue? Cool you rock! Let's continue.

Now, place the ID of the USER into the static agents field.
Now that we have a queue, submit the changes and reload.

Now, lets try it out!
On the Device, place a call to *11, when prompted, enter your USER Extension, next it will ask for a password, enter the USER password.

Voila! Your User is now an Agent in the Queue.

To logout, simply dial *12

So, with this configuration you should have a device that a user can login or out of at will.
---------------------------------------------------------------------------------------------
Awesome Factor:4 out of 5. Why?
You can assign a dynamic agent to more that one queue. Try it!

Hot desking: This allows a single user to have multiple devices with the same phone number. It also allows a single device to be used by multiple users in a hot desk style environment, where a user logs into the device resulting in it becoming their phone.

Tip:
Don't create the user extension and device id in the same range of numbers, it could confuse the simple minded folk :)

---------------------------------------------------------------------------------------------
References:

http://www.freepbx.org/support/documentation/module-documentation...
http://freepbx.org/support/documentation/module-documentation/que...



SkykingOH
Posts: 9678
Member Since:
2007-12-17
This is one feature I have

This is one feature I have never played with. Thank you for the excellent write up. Do you mind if I put it in the wiki? It meets all the criteria, well written and with a touch of humor.

One question, if you forget to log off and log on at a different device does Asterisk log you off the first device you logged on to?

Thanks....

--

Scott

aka "Skyking"



ppetroff
Posts: 58
Member Since:
2007-05-03
Allready there, but thanks for the offer

Allready in the wiki

http://trixbox.org/wiki/dynamic-agents

It is posted under CE Tutorials along with my HA Cluster solution

As for you second question, I dont know, havent tested.

But, and i quote from my post, which is a snip from FreePBX site "Hot desking: This allows a single user to have multiple devices with the same phone number"

This statement does seem somewhat ambiguous in it's intent. One user on many phones? or does the logon cause a logoff of the user on another device?

I go onsite with this customer tomorrow, i will test and post.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.