AstRecipes » Managing agents that dynamically log-on
AddQueueMember is a command that lets you add dynamic agents to a queue. Its main advantage is that you can add channels, i.e. terminals, so you'll have most of the advantages of agents without the performance and stability problems that the agents module may cost in very large systems. Its disadvantage is that in Asterisk 1.2 it does not log the agent login/logoff to the queue_log, and so programs that analyze the queue log data like QueueMetrics will not see agents logging on and off. This is a major organizational problem in a real-world call center, where tracking agent logons and logoffs is vital to the smooth running of the operations. In Asterisk 1.4 instead this bug has been fixed, so you can use this code: Code for Asterisk 1.4 and QueueMetrics 1.4 or newer To do the adding, you dial 422XX, where XX is your local extension; the same goes to be removed from queue.; addqueuemember - 422 - for Asterisk 1.4
exten => _422XX,1,Answer
exten => _422XX,2,AddQueueMember(my-queue,SIP/${EXTEN:3})
exten => _422XX,3,Hangup
; removequeuemember - 423 - for Asterisk 1.4
exten => _423XX,1,Answer
exten => _423XX,2,RemoveQueueMember(my-queue,SIP/${EXTEN:3})
exten => _423XX,3,Hangup
; addqueuemember - 422
exten => _422XX,1,Answer
exten => _422XX,2,AddQueueMember(my-queue,SIP/${EXTEN:3})
exten => _422XX,3,System( echo
"${EPOCH}|${UNIQUEID}|my-queue|SIP/${EXTEN:3}|ADDMEMBER|-" >> /var/log/asterisk/queue_log )
exten => _422XX,4,DBput(dynlogin/log_Agent-${EXTEN:3}=${EPOCH})
exten => _422XX,5,Hangup
; removequeuemember - 423
exten => _423XX,1,Answer
exten => _423XX,2,RemoveQueueMember(my-queue,SIP/${EXTEN:3})
exten => _423XX,3,DBget(ORGEPOCH=dynlogin/log_Agent-${EXTEN:3})
exten => _423XX,4,Set(RV=$[${EPOCH} - ${ORGEPOCH}])
exten => _423XX,5,GotoIf($["${RV}" = "0"]?8:6)
exten => _423XX,6,System( echo "${EPOCH}|${UNIQUEID}|my-queue|SIP/${EXTEN:3}|REMOVEMEMBER|-|${RV}" >> /var/log/asterisk/queue_log )
exten => _423XX,7,DBdel(dynlogin/log_Agent-${EXTEN:3})
exten => _423XX,8,Hangup
Softlinks:
Home Page - AddQueueMember and the queue_log file - Installing QueueMetrics - Installing QueueMetrics from scratch - QueueMetrics - Create an account - Optimizing QueueMetrics data access - Installing XC-AST - Connecting to Squillo using SIP - Compiling Asterisk 1.4 with TDM400 and H323 - Utenti/Lenz73 - Configuring a queue - Misc links - Upgrading QueueMetrics licences - Recording all outgoing traffic for some extensions - UPDATING - Compiling Asterisk with OH323 - Improving AstRecipes - Installing Queuemetrics on Debian - Utenti/walmass - Avoiding queue_log file rotation - Compressing recorded calls to MP3 - Utenti/timlitw - User stats - Manually updating QueueMetrics - Using a HT-488 with Asterisk - Add a recipe - QueueMetrics logs - Licences - Monitoring Zaptel Hardware - Connecting to FWD using IAX - Listening to recorded calls using XC-AST - SandBox - Utenti/peter-dean - asterisk - Generic QueueMetrics startup script - Installing the Linksys PAP2-NA port adapter - Installing QueueMetrics on Fonality PBXtra - Installing QueueMetrics using Yum - Installing Queuemetrics on PBX-in-a-Flash - Administering QueueMetrics using Tomcat - Simple queue and agent debug monitoring - Installing XC-AST under Jetty - Utenti/lostdave - Rebuilding Fonality queue_log - Compiling Asterisk on EPIA with VIA C3 - Debugging Qloaderd installation - Utenti/bg - Installing QueueMetrics beta through RPM - AstRecipes markup
Home Page - AddQueueMember and the queue_log file - Installing QueueMetrics - Installing QueueMetrics from scratch - QueueMetrics - Create an account - Optimizing QueueMetrics data access - Installing XC-AST - Connecting to Squillo using SIP - Compiling Asterisk 1.4 with TDM400 and H323 - Utenti/Lenz73 - Configuring a queue - Misc links - Upgrading QueueMetrics licences - Recording all outgoing traffic for some extensions - UPDATING - Compiling Asterisk with OH323 - Improving AstRecipes - Installing Queuemetrics on Debian - Utenti/walmass - Avoiding queue_log file rotation - Compressing recorded calls to MP3 - Utenti/timlitw - User stats - Manually updating QueueMetrics - Using a HT-488 with Asterisk - Add a recipe - QueueMetrics logs - Licences - Monitoring Zaptel Hardware - Connecting to FWD using IAX - Listening to recorded calls using XC-AST - SandBox - Utenti/peter-dean - asterisk - Generic QueueMetrics startup script - Installing the Linksys PAP2-NA port adapter - Installing QueueMetrics on Fonality PBXtra - Installing QueueMetrics using Yum - Installing Queuemetrics on PBX-in-a-Flash - Administering QueueMetrics using Tomcat - Simple queue and agent debug monitoring - Installing XC-AST under Jetty - Utenti/lostdave - Rebuilding Fonality queue_log - Compiling Asterisk on EPIA with VIA C3 - Debugging Qloaderd installation - Utenti/bg - Installing QueueMetrics beta through RPM - AstRecipes markup



