I see what you mean and already have the option turned on. However the entries in astdb are a bit odd:
//Agents/40042 : [EMAIL PROTECTED];4004 //Agents/4005 : [EMAIL PROTECTED];4005 //Agents/4011 : [EMAIL PROTECTED];4011 //Agents/4014 : [EMAIL PROTECTED];4014 //Agents/4025 : [EMAIL PROTECTED];4025 Some background. We have multiple queues and use agentIDs that are based on the employee's extension and optional digits appended for specific queues. However which employees are on which can vary and would prefer not to add to much custom logic for employees that will most likely change in the future. Why is the queue part of the entry empty? Seems that the /'s in the channel name might be interferring with astdb and how it separates family and keys. We are running Asterisk 1.2.1 currently. --johann Nicolás Gudiño wrote:
Is it possible from within the dialplan to determine if an Agent channel is already a member of a queue? Would like to use this as part of a check that will play a message if the agent is the last person to log off the queue. I can sorta do it by using AddQueueMember and checking ${AQMSTATUS}, however that generates a log warning if they are already a member. I would also have to sometimes run RemoveQueueMember real quick to remove people who shouldn't be a member after doing that. Any ideas? Another idea I have it so make a fast AGI script that parses data from a mamager connection to see, but this seems kinda overkill for something that should be simple.Maybe by using persistentmembers = yes in queues.conf and then query astdb: Ffrom the cli: database get /Queue/PersistentMembers yourqueuename Or from the dialplan using DB function or DBGet application depending your asterisk version. Regards, -- Nicolás Gudiño Buenos Aires - Argentina _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
