<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi all,<div><br></div><div><br></div><div> 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.</div><div> I am trying to do something like that:</div><div>Create a password and associate it with the callerid:</div><div><br></div><div><div>exten => _*11*xxxx,1,Set(DB(CADASTRA/${CALLERID(num)})=${EXTEN:4})</div><div><br></div><div>Create a flag in order to verify later if PADLOCK is ON or OFF </div><div><br></div><div><div>exten => _*14*xxxx,1,set(DB(${CALLERID(num)}/${EXTEN:4})=1)</div><div><br></div></div><div>Now the problem:</div><div><br></div><div>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.</div><div><br></div><div>??????</div><div><div>exten => _X.,1,Dial(SIP/${EXTEN}@10.201.201.254)</div><div>exten => _X.,n,Hangup()</div></div><div><br></div><div>Below, my AstDB:</div><div><br></div><div><div>/3003/1234 : 1 </div><div>/CADASTRA/3003 : 1234 </div></div><div><br></div><div> Thanks in advanced!</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br>Att,<br>
<br>
Flavio Roberto Miranda<br>
MSN:flaviormiranda@hotmail.com<br>Skype: flaviormiranda<br><br></div>                                            </body>
</html>