Philipp... Good point. I totally missed the auto-logoff angle. At this time, I'm not using auto-logoff, but I really should.
Are you saying that the reason my code was not working is because AgentCallbackLogin() invalidates the lines afterwards? In my example, the global variable was not being set--or at least that's my best guess as to why it was not working. I can try setting the global variable FIRST, and the follow by using the AgentCallbackLogin(). Ok, I'm going to follow on the path that Robert mentioned a few e-mails back re: using the monestary script. I've experimented by telneting into the manager CLI, and was able to sucessfully get the 'show agents' command to work. Besides telneting into the manager CLI (or writing a script to do this), is there any other way to run this command and capture the results? Asuming I have to write a perl script similar to monestary one, what should I do once I determine if there is an agent logged in? Am I able to set an * global variable from within this external perl script? If not, what do you suggest? Thanks, Marco -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philipp von Klitzing Sent: Saturday, September 25, 2004 5:03 PM To: [EMAIL PROTECTED] Subject: RE: [Asterisk-Users] Queue and Agent functionality Hi! > [fromcsr1] > exten=> 800,1,AgentCallbackLogin(101|[EMAIL PROTECTED]) > exten=> 800,2,SetGlobalVar(GCSR1=on) > exten=> 800,3,Hangup > determine which path the caller takes. The part that doesn't work is > in the [fromcsr] context. My SetGlobalVar(GCSR1=on) seems to have no > effect, therefore, making my solution not work. > > Does anyone have any ideas? Unfortunately AgentCallbackLogin() _itself_ initiates the hangup, which means that any following priorities in your dialplan are useless. Besides your approach isn't yet perfect, what if an agent gets auto-logged out because he/she hasn't answered within the time limit? Cheers, Philipp _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users !DSPAM:4155ea5e217701945313673! _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users