<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Pré-formatação HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.Pr-formataoHTMLChar
        {mso-style-name:"Pré-formatação HTML Char";
        mso-style-priority:99;
        mso-style-link:"Pré-formatação HTML";
        font-family:"Courier New";
        mso-fareast-language:PT-BR;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT-BR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Pessoal boa noite, estou com um probleminha..<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ativei o Pinsets em meu elastix, e cada funcionário tem uma senha, para efetuar ligações externas.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Porem o gerente não tem senha no ramal dele, eu ativei a função PINLESS do ramal do gerente, ou seja, ele liga sem colocar senha, somente no ramal dele.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>O que eu precisava? Precisava que quando este gerente saísse de sua sala ele digitasse um código e ou uma senha, para bloquear o ramal dele efetuar ligação, e quando ele voltasse a sala, ele digitasse o código e ou a senha para liberar o ramal dele novamente para efetuar ligações sem necessitar de senha.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Vi alguns posts na internet tentei colocar pra rodar mas não consegui no elastix.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Este contexto abaixo inseri ele no&nbsp; extensions_custom.conf e dei um&nbsp; include =&gt; cadeado<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Alguem pode me dar um help<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>[cadeado]<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;cadastrar senha cadeado<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,1,NoCDR()<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,2,DBget(senha=CADEPASS/${CALLERIDNUM})<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,3,GoToIf($[&quot;${senha}&quot; = &quot;&quot;]?5:4)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,4,Hangup<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,5,DBput(CADEPASS/${CALLERIDNUM}=${EXTEN:4})<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,6,Wait(2)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,7,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,8,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,9,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*11*xxxx,10,Hangup<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'><o:p>&nbsp;</o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;trocar senha cadeado<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,1,NoCDR()<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,2,DBget(cadp=CADEPASS/${CALLERIDNUM})<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,3,GoToIf($[&quot;${cadp}&quot; = &quot;${EXTEN:4:4}&quot;]?4:9)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,4,DBput(CADEPASS/${CALLERIDNUM}=${EXTEN:8})<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,5,Wait(2)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,6,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,7,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,8,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,9,Hangup<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*12*xxxxxxxx,10,Hangup<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;colocar cadeado<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,1,NoCDR()<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,2,DBget(cadp=CADEPASS/${CALLERIDNUM})<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,3,GoToIf($[&quot;${cadp}&quot; = &quot;${EXTEN:4}&quot;]?4:9)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,4,DBput(CADEADO/${CALLERIDNUM}=y)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,5,Wait(2)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,6,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,7,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,8,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,9,Hangup<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*13*xxxx,10,Hangup<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;retirar cadeado<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,1,NoCDR()<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,2,DBget(cad=CADEPASS/${CALLERIDNUM})<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,3,GoToIf($[&quot;${cad}&quot; = &quot;${EXTEN:4}&quot;]?4:10)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,4,DBdel(CADEADO/${CALLERIDNUM})<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,5,Wait(2)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,6,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,7,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,8,Playback(beep)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,9,Hangup<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*14*xxxx,10,Hangup<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;extensao de ligação que verificar se o ramal tem cadeado<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'><o:p>&nbsp;</o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*10xxxxxxxx,1,DBget(cad=CADEADO/${CALLERIDNUM})<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*10xxxxxxxx,2,GoToIf($[&quot;${cad}&quot; = &quot;y&quot;]?4:3)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*10xxxxxxxx,3,dial(sip/osi/5511${EXTEN:4},90,tT)<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span lang=EN-US style='font-size:10.5pt;font-family:Courier;color:black'>exten =&gt; _*10xxxxxxxx,4,Hangup()<o:p></o:p></span></pre><pre style='line-height:14.25pt'><span style='font-size:10.5pt;font-family:Courier;color:black'>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<o:p></o:p></span></pre><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p></div></body></html>