[asterisk-users] PADLOCK asterisk 1.6

Flavio Miranda flaviormiranda at hotmail.com
Sat Apr 16 09:17:09 CDT 2011


Hi all,

 There is a feature very  common in PBX  called PADLOCK , and I'd like to set up it on Asterisk 1.6. I have seen it in the internet but such scripts never work to me. I am trying to do something  like that:Create a password and associate it with the callerid:
exten => _*11*xxxx,1,Set(DB(CADASTRA/${CALLERID(num)})=${EXTEN:4})
Create a flag in order to verify later if PADLOCK is ON or OFF 
exten => _*14*xxxx,1,set(DB(${CALLERID(num)}/${EXTEN:4})=1)
Now the problem:
When dialing out, I need to verify if such {CALLERID(num) have its value ON of OFF in order to permit or denny, and I can´t  perform this.
??????exten => _X.,1,Dial(SIP/${EXTEN}@10.201.201.254)exten => _X.,n,Hangup()
Below, my AstDB:
/3003/1234                                        : 1                       /CADASTRA/3003                               : 1234   
 Thanks in advanced!






Att,

 

Flavio Roberto Miranda

MSN:flaviormiranda at hotmail.com
Skype: flaviormiranda

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110416/b7b29ddc/attachment-0001.htm>


More information about the asterisk-users mailing list