[Home]

Summary:ASTERISK-05888: [request] Prevent agents from using extension already in use
Reporter:Dov Bigio (dovb)Labels:
Date Opened:2005-12-22 09:15:14.000-0600Date Closed:2006-01-12 23:46:19.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_agent
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) agent.diff
( 1) patch.chan_agent
( 2) patch.chan_agent.2
( 3) patch.chan_agent.3
Description:On of my agents made a mistake while logging in to the Queue system, and entered another agent's extension.

Asterisk allowed that, and the first agent was then able to receive two calls from the queue, on that was actually for him, and the other one that was on behalf of the agent that made the mistake.

Shouldn't Asterisk block the second agent in case he tries to login using an extension that is already in use by other agent?
Comments:By: Olle Johansson (oej) 2006-01-09 14:09:56.000-0600

Good question - any one that knows how chan_agent handle multiple logins?

/Housekeeping

By: Matt O'Gorman (mogorman) 2006-01-10 22:11:26.000-0600

I think this should be allowed behavior, even though in most cases it is probably a mistake.

By: Peng Yong (ppyy) 2006-01-11 07:29:16.000-0600

here is a patch, pls check it

By: Matt O'Gorman (mogorman) 2006-01-11 07:58:06.000-0600

nice work ppyy.  but like i said it might be intended behavior for this to happen.  I think it should be specifiable in global or by agent.  something like multipelogin=yes|no

If you want to add that ppyy it would be awesome otherwise i can get to it today.

By: Dov Bigio (dovb) 2006-01-11 08:06:08.000-0600

This would mean that if "multiplelogin=no", only one agent (the first who logged in) can answer through one unique extension. If another agent wants to answer through that extensions, the first one would have to logoff first, right?

By: Peng Yong (ppyy) 2006-01-11 08:40:44.000-0600

multiplelogin added.

can you add multiplelogin to configs/agents.conf.sample?
my english is poor, and can't express it clearly

By: Matt O'Gorman (mogorman) 2006-01-11 09:05:04.000-0600

no. dovb.  the current behavior of agents is this.  one phone can be using multiple agent ids, ie i could be logged in as agent 6287 and 6288 from my phone.  However multiple people can not be agent 6287 as is.  This patch will give you the option of limiting me to only use agent 6287.

By: Olle Johansson (oej) 2006-01-11 09:21:30.000-0600

ppyy: Disclaimer on file for your patch?

By: Peng Yong (ppyy) 2006-01-11 09:31:11.000-0600

Disclaimer on File = yes

By: Matt O'Gorman (mogorman) 2006-01-12 12:07:56.000-0600

hrrm never mind, i fixed it in commit 8021, in trunk thanks ppyy

By: Jason Parker (jparker) 2006-01-12 23:03:25.000-0600

reopened at request of pengyong on IRC

By: Peng Yong (ppyy) 2006-01-12 23:18:05.000-0600

minor change.

remove unused statements.

By: Matt O'Gorman (mogorman) 2006-01-12 23:44:16.000-0600

8049 fixed.