[asterisk-users] Lock extension from asterisk
Andres Jimenez
gandresin at gmail.com
Fri Aug 17 09:04:34 CDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks to Gordon & Doug I have now a very good locking system using
one only extension.
Extension 8888 informs you about the current lock situation and, if
authentacated, it changes it and explain the change done.
;Locking system
;LOCK
exten => 8888,1,Answer()
exten => 8888,n,Set(me=${CALLERID(num)})
exten => 8888,n,GotoIf(${DB(${me}/locked)}?8888,101:8888,201)
exten => 8888,101,Playback(security)
exten => 8888,n,Playback(activated)
exten => 8888,n,VMAuthenticate(${me})
exten => 8888,n,Set(DB(${me}/locked)=)
exten => 8888,n,Playback(security)
exten => 8888,n,Playback(now)
exten => 8888,n,Playback(de-activated)
exten => 8888,n,Hangup()
exten => 8888,201,Playback(security)
exten => 8888,n,Playback(de-activated)
exten => 8888,n,VMAuthenticate(${me})
exten => 8888,n,Set(DB(${me}/locked)=1)
exten => 8888,n,Playback(security)
exten => 8888,n,Playback(now)
exten => 8888,n,Playback(activated)
exten => 8888,n,Hangup()
Thanks again, guys
- --
Andres Jimenez
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org
iD8DBQFGxasI8SZxpGYWwpYRAsMZAJwPb/fRAH5IMB4muBtzH1QIPfMFlgCeI2iu
UZH/bs38f1iqiZ/CNWvoTsk=
=Fsal
-----END PGP SIGNATURE-----
More information about the asterisk-users
mailing list