Hi,
I did this the following way:
-) define a global variable -> AGENTS_AVAIL=0
-) when agent logs in increment -> SetGlobalVar(AGENTS_AVAIL=$[${AGENTS_AVAIL} + 1]);
-) when agent logs off decrement -> SetGlobalVar(AGENTS_AVAIL=$[${AGENTS_AVAIL} - 1]);
-) when queue is called evaluate and goto label -> gotoif,$[${AGENTS_AVAIL}]?${Q}:${NO_Q)
Hope that helps and if there is an easier way of doing this please show me how.
br, Kurt
--On Tuesday, August 31, 2004 09:57:29 PM +0200 Robert Rozman <[EMAIL PROTECTED]> wrote:
Hi,
I'd like to implement scenario to send user to operator's queue by default (if doesn't dial any extension) but only if there is operator agent logged, so user could get response. If not I'd like to send it to voicemail...
Any quick advice ?
Thanks in advance,
Robert.
_______________________________________________ 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
_______________________________________________ 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
