[Asterisk-Users] AutoAttendent ON/OFF control by Attendent

AstGrp astgrp at cwkb.com
Thu Feb 5 17:55:47 MST 2004


I know this is fairly old thread, but I have a question regarding this.
The following line:

exten => s,2,GotoIf($[${autoattendant} = "1"]?auto|1)

Is basically saying goto context priority 1.  So the last line also has
a goto to statement.  When is this being trigered.  So could you use the
same line but instead say:

exten => s,2,GotoIf($[${autoattendant} = "1"]?4:3)

Just curious

-gcc

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Tilghman
Lesher
Posted At: Monday, December 15, 2003 12:45 PM
Posted To: Asterisk User Group
Conversation: [Asterisk-Users] AutoAttendent ON/OFF control by Attendent
Subject: Re: [Asterisk-Users] AutoAttendent ON/OFF control by Attendent


On Monday 15 December 2003 10:57, Sri wrote:
> Hi All
> This is one scenario I would like to have some help.  I have searched 
> the digium lists and could not find any posts on this.
>
> How can an Attendant switch on or off the AutoAttendant from her 
> phone? Eg.  8am -> Attendent enters office -> switches OFF auto 
> attendent. He/She takes in all the incoming calls and answers.
>  12pm -> out of lunch. Needs to put the system back into Auto.
>  1 pm -> return from lunch. Needs to switch OFF auto attendent
>  5 pm- > Puts Auto attendent ON.
>
> I am sure there can be a script built that should change 
> extensions.conf. and reloading asterisk on the attendent activating 
> based on a clock that kicks in 8 am, 12 pm, 1 pm and 5 pm. I dont want

> this to be time restricted. the attendent should have control. Is 
> there a better way ?  this could be even done through the phone of the

> attendent eg, like *80-1 (ON) *80 - 2 (OFF)...

exten => *801,1,DBPut(auto/attendant=1)
exten => *802,1,DBPut(auto/attendant=0)
exten => s,1,DBGet(autoattendant=auto/attendant)
exten => s,2,GotoIf($[${autoattendant} = "1"]?auto|1)
exten => s,3,Dial(Zap/23,30,t)
exten => s,4,Goto(auto|1)

-Tilghman

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list