Re: [Asterisk-Users] Going to voicemail instead of queue if no agent is logged in ?

2004-09-03 Thread Kurt Bauer
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


[Asterisk-Users] Going to voicemail instead of queue if no agent is logged in ?

2004-08-31 Thread Robert Rozman
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