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:[email protected]
Skype: flaviormiranda

                                          
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to