Tony Nichols
2004-Dec-23 14:21 UTC
[Asterisk-Users] turn on/off auto/attendant by dialing an extension
The wikki has an example that uses a db.... ;Login with *801, log out with *802 exten => *801,1,DBPut(auto/attendant=1) exten => *802,1,DBPut(auto/attendant=0) ;Incoming calls- check if autoattendant is logged in, otherwise goto "auto" 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) Is there a way to do it without the dbput/dbget? Thanks, -- A.G. (Tony) Nichols I.S. Manager
Jon Radon
2004-Dec-23 23:22 UTC
[Asterisk-Users] turn on/off auto/attendant by dialing an extension
Can I ask why? This is clearly the easiest/best way to go about it. On Thu, 23 Dec 2004 16:21:12 -0500, Tony Nichols <tony.nichols@gmail.com> wrote:> The wikki has an example that uses a db.... > > ;Login with *801, log out with *802 > exten => *801,1,DBPut(auto/attendant=1) > exten => *802,1,DBPut(auto/attendant=0) > > ;Incoming calls- check if autoattendant is logged in, otherwise goto "auto" > 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) > > Is there a way to do it without the dbput/dbget? > > Thanks, > -- > A.G. (Tony) Nichols > I.S. Manager > _______________________________________________ > 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 >-- Is it something someone said, was it something someone said?