Robert Rozman
2004-Aug-31 12:57 UTC
[Asterisk-Users] Going to voicemail instead of queue if no agent is logged in ?
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.
Kurt Bauer
2004-Sep-03 05:48 UTC
[Asterisk-Users] Going to voicemail instead of queue if no agent is logged in ?
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 <rozman@fri.uni-lj.si> 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 > Asterisk-Users@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
Possibly Parallel Threads
- Queue and Agent functionality
- Lower cost router suitable for VOIP ?
- Why ${EXTEN} variable changes after Goto ?
- Capi channel - can I route call to another channel or back to PBX and free current channel ?
- Disa - how it returns on user not dialing any numbers ?