[Asterisk-Users] turn on/off auto/attendant by dialing an extension

Jon Radon jonr800 at gmail.com
Thu Dec 23 23:22:47 MST 2004


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 at 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 at 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?



More information about the asterisk-users mailing list