[Asterisk-Users] Agents Log off

Kevin Blackham blackham at gmail.com
Sat Sep 11 15:37:29 MST 2004


I created a small patch to make this happen.  You enter an l for the
extension when you call AgentCallbackLogin.  It sees that (ell) and
sets the extension to "" as if the person on the phone simply hit #.

This needs to be properly implemented as an AgentCallbackLogout()
application, but this is working for me for the time being.  In my
sample below, I ask the caller for their agent id and/or password, but
go off their caller-id number for callback.

;login
exten => 338,1,AgentCallbackLogin(|${CALLERIDNUM}@intra-office)
;logout
exten => 337,1,AgentCallbackLogin(|l)  

------begin patch-----
--- asterisk.orig/channels/chan_agent.c 2004-08-24 15:02:47.000000000 -0600
+++ asterisk/channels/chan_agent.c      2004-08-24 15:02:50.000000000 -0600
@@ -1199,9 +1199,15 @@
                                        context++;
                                }
                                exten = options;
-                               while(*exten && ((*exten < '0') || (*exten > '9'
))) exten++;
-                               if (!*exten)
-                                       exten = NULL;
+                               /* hack in a magic logout extension */
+                               if (*exten == 'l') {
+                                       exten = "";
+                               }
+                               else { 
+                                       while(*exten && ((*exten < '0') || (*ext
en > '9'))) exten++;
+                                       if (!*exten)
+                                               exten = NULL;
+                               }
                        }
                }
        }
-------end patch------

On Wed, 1 Sep 2004 21:27:13 -0500, Joe Dennick <joe at dennick.net> wrote:
> Put their CALLERIDNUM in the dialplan.  In my example below, all of my
> extensions are 41XX, and all of the agent Ids are 43XX.  They dial 301
> to log in, get prompted to enter their password, and hear the message
> that they've been logged in.  To logout, they dial 302, get prompted to
> enter their password, and then press '#' when prompted to enter a new
> extension before hearing "Agent successfully logged out."  Yeah, there's
> a bit of training, but its not too difficult.  All of my agents have
> Cisco 7960 telephones where they've created memory dials (on the bottom
> two buttons) for 'Queue Login' and 'Queue Logout.'
> 
> ; Queue Login Extension 301
> exten => 301,1,Wait(1)
> exten => 301,2,AgentCallbackLogin(43${CALLERIDNUM:2}|43${CALLERIDNUM:2})
> exten => 301,3,Playback(agent-loginok)
> exten => 301,4,Hangup
> 
> ; Queue Logout Extension 302
> exten => 302,1,Wait(1)
> exten => 302,2,AgentCallbackLogin(43${CALLERIDNUM:2}|'#')
> exten => 302,3,Hangup
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of João Amaro
> Sent: Wednesday, September 01, 2004 9:35 AM
> To: Asterisk Mailing List
> Subject: [Asterisk-Users] Agents Log off
> 
> Hi List,
> 
> I'm using the apllication AgentCallBackLogin so agents can login to a
> queue. They just need to enter the password, the CallBack Extensions is
> the ${CALLERIDNUM}
> 
> Is there a way to AgentsLogOff withou using the AgentCallBackLogin
> application. I don't want the user to enter they CALLERIDNUM.
> 
> Regards
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.737 / Virus Database: 491 - Release Date: 8/11/2004
> 
> 
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list