<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 03/07/2014 08:59, Henrique Oliveira
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAB0jAsYaE7CMaysNAhD3ySfCG9cRwzNc0imyEC_GtrzCgaYe-g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Valeu amigo.
        <div><br>
        </div>
        <div>Abs</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div dir="ltr">
            <blockquote
style="text-align:left;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><b><font
                  size="4">Henrique Antonio de Oliveira</font></b></blockquote>
            <div><b>Tel: 14-991365159</b></div>
            <div><b>E-Mail: <a moz-do-not-send="true"
                  href="mailto:haooliveira@gmail.com" target="_blank">haooliveira@gmail.com</a></b></div>
            <div><b>Skype: henrique-o</b></div>
            <div><br>
            </div>
          </div>
        </div>
        <br>
        <br>
        <div class="gmail_quote">Em 3 de julho de 2014 08:55, Rafael dos
          Santos Saraiva <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:rafaelsnsa@gmail.com" target="_blank">rafaelsnsa@gmail.com</a>&gt;</span>
          escreveu:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div><br>
              </div>
              <div><span
                  style="font-family:arial,sans-serif;font-size:13px">exten
                  =&gt; s,n,Read(senha,audiopedesenha)</span><br>
              </div>
              <span style="font-family:arial,sans-serif;font-size:13px">Solicita
                ao usuário para digitar a senha. Dê uma lida na
                documentação dessa aplicação, você pode aperfeiçoar seu
                contexto, por exemplo colocando timeout, limitação de
                digitos: core show application Read</span>
              <div class="">
                <br>
                <div>
                  <div
                    style="font-family:arial,sans-serif;font-size:13px"><br>
                  </div>
                  <div
                    style="font-family:arial,sans-serif;font-size:13px">exten
                    =&gt; s,n,ExecIf($[${Pass} =
                    ${senha}]?NoOp():HangUp)<br>
                  </div>
                </div>
              </div>
              <div style="font-family:arial,sans-serif;font-size:13px">
                Compara as variáveis Pass e senha, se forem iguais é
                executada a aplicação NoOp, que na realidade não faz
                nada, ou seja neste caso a execução do contexto
                continua. Se forem diferentes, ou seja, o usuário não
                digitou a senha corretamente: HangUp.</div>
              <div style="font-family:arial,sans-serif;font-size:13px"><br>
              </div>
            </div>
            <div class="gmail_extra">
              <div class=""><br clear="all">
                <div>
                  <div dir="ltr">
                    <div><br>
                    </div>
                    Att,
                    <div><b>Rafael dos Santos Saraiva</b></div>
                    <div>
                      <div>
                        <a moz-do-not-send="true"
                          href="http://br.linkedin.com/pub/rafael-saraiva/52/aab/230"
                          target="_blank"><img moz-do-not-send="true"
src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15_pt_BR.png"></a><br>
                      </div>
                    </div>
                  </div>
                </div>
                <br>
                <br>
              </div>
              <div class="gmail_quote">Em 3 de julho de 2014 08:43,
                Henrique Oliveira <span dir="ltr">&lt;<a
                    moz-do-not-send="true"
                    href="mailto:haooliveira@gmail.com" target="_blank">haooliveira@gmail.com</a>&gt;</span>
                escreveu:
                <div>
                  <div class="h5">
                    <br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Muito obrigado Rafael,
                        <div><br>
                        </div>
                        <div>Funcionou legal, agora se puder me explica
                          essa linha, o que ela faz?</div>
                        <div>
                          <div>exten =&gt; s,n,Read(senha,agent-pass)</div>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>Abs</div>
                      </div>
                      <div class="gmail_extra"><br clear="all">
                        <div>
                          <div dir="ltr">
                            <blockquote
style="text-align:left;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><b><font
                                  size="4">Henrique Antonio de Oliveira</font></b></blockquote>
                            <div><b>Tel: 14-991365159</b></div>
                            <div><b>E-Mail: <a moz-do-not-send="true"
                                  href="mailto:haooliveira@gmail.com"
                                  target="_blank">haooliveira@gmail.com</a></b></div>
                            <div><b>Skype: henrique-o</b></div>
                            <div><br>
                            </div>
                          </div>
                        </div>
                        <br>
                        <br>
                        <div class="gmail_quote">Em 3 de julho de 2014
                          08:35, Rafael dos Santos Saraiva <span
                            dir="ltr">&lt;<a moz-do-not-send="true"
                              href="mailto:rafaelsnsa@gmail.com"
                              target="_blank">rafaelsnsa@gmail.com</a>&gt;</span>
                          escreveu:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div dir="ltr">Bom Dia Henrique
                              <div><br>
                              </div>
                              <div>Tente assim:</div>
                              <div><br>
                              </div>
                              <div>
                                <div>
                                  <div
                                    style="font-family:arial,sans-serif;font-size:13px">[macro-senha]</div>
                                  <div
                                    style="font-family:arial,sans-serif;font-size:13px">
                                    exten =&gt; s,1,Wait(1)</div>
                                  <div
                                    style="font-family:arial,sans-serif;font-size:13px">exten
                                    =&gt;
                                    s,n,Set(Pass=${DB(Senha/${CALLERID(num)})})</div>
                                </div>
                                <div
                                  style="font-family:arial,sans-serif;font-size:13px">exten
                                  =&gt; s,n,Read(senha,audiopedesenha)</div>
                                <div
                                  style="font-family:arial,sans-serif;font-size:13px">exten
                                  =&gt; s,n,ExecIf($[${Pass} =
                                  ${senha}]?NoOp():HangUp)</div>
                                <div>
                                  <div
                                    style="font-family:arial,sans-serif;font-size:13px">exten
                                    =&gt;
                                    s,n,Set(CDR(userfield)=${Pass})</div>
                                  <div
                                    style="font-family:arial,sans-serif;font-size:13px">exten
                                    =&gt;
                                    s,n,Dial(SIP/${tronco}/${ARG2},20,tT)</div>
                                  <div
                                    style="font-family:arial,sans-serif;font-size:13px">exten
                                    =&gt; s,n,Hangup</div>
                                </div>
                              </div>
                            </div>
                            <div class="gmail_extra">
                              <br clear="all">
                              <div>
                                <div dir="ltr">
                                  <div><br>
                                  </div>
                                  Att,
                                  <div><b>Rafael dos Santos Saraiva</b></div>
                                  <div>
                                    <div><a moz-do-not-send="true"
                                        href="http://br.linkedin.com/pub/rafael-saraiva/52/aab/230"
                                        target="_blank"><img
                                          moz-do-not-send="true"
src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15_pt_BR.png"></a><br>
                                    </div>
                                  </div>
                                </div>
                              </div>
                              <br>
                              <br>
                              <div class="gmail_quote">Em 3 de julho de
                                2014 07:55, Henrique Oliveira <span
                                  dir="ltr">&lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:haooliveira@gmail.com"
                                    target="_blank">haooliveira@gmail.com</a>&gt;</span>
                                escreveu:<br>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div>
                                    <div>
                                      <div dir="ltr">
                                        <div>Bom dia pessoal!</div>
                                        <div><br>
                                        </div>
                                        <div>Criei essa macro para
                                          colocar em contextos que fazem
                                          ligações externas.</div>
                                        <div>Porém se o ramal não tem
                                          senha definida ele consegue
                                          realizar ligações simplesmente
                                          usando a tecla #</div>
                                        <div>O que posso fazer para a
                                          macro não aceitar senhas em
                                          branco??</div>
                                        <div><br>
                                        </div>
                                        <div>Segue abaixo a macro</div>
                                        <div><br>
                                        </div>
                                        <div>
                                          <div>[macro-senha]</div>
                                          <div>exten =&gt; s,1,Wait(1)</div>
                                          <div>exten =&gt;
                                            s,n,Set(Pass=${DB(Senha/${CALLERID(num)})})</div>
                                          <div>exten =&gt;
                                            s,n,Authenticate(${Pass},d)</div>
                                          <div>exten =&gt;
                                            s,n,Set(CDR(userfield)=${Pass})</div>
                                          <div>exten =&gt;
                                            s,n,Dial(SIP/${tronco}/${ARG2},20,tT)</div>
                                          <div>exten =&gt; s,n,Hangup</div>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div>
                                          Abraços</div>
                                        <div><br>
                                        </div>
                                        <br clear="all">
                                        <div>
                                          <div dir="ltr">
                                            <blockquote
                                              style="text-align:left;margin:0px
                                              0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><b><font
                                                  size="4">Henrique
                                                  Antonio de Oliveira</font></b></blockquote>
                                            <div><b>Tel: 14-991365159</b></div>
                                            <div><b>E-Mail: <a
                                                  moz-do-not-send="true"
href="mailto:haooliveira@gmail.com" target="_blank">haooliveira@gmail.com</a></b></div>
                                            <div><b>Skype: henrique-o</b></div>
                                            <div><br>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                      <br>
                                    </div>
                                  </div>
_______________________________________________<br>
                                  <br>
                                  WORKOFFEES KHOMP: Eventos KHOMP em
                                  diversas cidades.<br>
                                  Faça já a sua inscrição GRATUITA para
                                  participar da próxima<br>
                                  edição que acontecerá dia 17 de julho,
                                  em RECIFE.<br>
                                  Veja as outras cidades agendadas em: <a
                                    moz-do-not-send="true"
                                    href="http://www.workoffee.com.br"
                                    target="_blank">www.workoffee.com.br</a><br>
_______________________________________________<br>
                                  ALIGERA – Fabricante e desenvolvedor
                                  nacional de Soluções para telefonia IP
                                  .<br>
                                  Gateway Sip, Placas de 1E1, 2E1, 4E1 e
                                  8E1 para PCI ou PCI Express.<br>
                                  Banco de Canais Analógicos  –
                                  Appliance Asterisk<br>
                                   Acesse <a moz-do-not-send="true"
                                    href="http://www.aligera.com.br"
                                    target="_blank">www.aligera.com.br</a><br>
_______________________________________________<br>
                                  Para remover seu email desta lista,
                                  basta enviar um email em branco para <a
                                    moz-do-not-send="true"
                                    href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org"
                                    target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                                </blockquote>
                              </div>
                              <br>
                            </div>
                            <br>
_______________________________________________<br>
                            <br>
                            WORKOFFEES KHOMP: Eventos KHOMP em diversas
                            cidades.<br>
                            Faça já a sua inscrição GRATUITA para
                            participar da próxima<br>
                            edição que acontecerá dia 17 de julho, em
                            RECIFE.<br>
                            Veja as outras cidades agendadas em: <a
                              moz-do-not-send="true"
                              href="http://www.workoffee.com.br"
                              target="_blank">www.workoffee.com.br</a><br>
_______________________________________________<br>
                            ALIGERA – Fabricante e desenvolvedor
                            nacional de Soluções para telefonia IP .<br>
                            Gateway Sip, Placas de 1E1, 2E1, 4E1 e 8E1
                            para PCI ou PCI Express.<br>
                            Banco de Canais Analógicos  – Appliance
                            Asterisk<br>
                             Acesse <a moz-do-not-send="true"
                              href="http://www.aligera.com.br"
                              target="_blank">www.aligera.com.br</a><br>
_______________________________________________<br>
                            Para remover seu email desta lista, basta
                            enviar um email em branco para <a
                              moz-do-not-send="true"
                              href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org"
                              target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                      <br>
                      _______________________________________________<br>
                      <br>
                      WORKOFFEES KHOMP: Eventos KHOMP em diversas
                      cidades.<br>
                      Faça já a sua inscrição GRATUITA para participar
                      da próxima<br>
                      edição que acontecerá dia 17 de julho, em RECIFE.<br>
                      Veja as outras cidades agendadas em: <a
                        moz-do-not-send="true"
                        href="http://www.workoffee.com.br"
                        target="_blank">www.workoffee.com.br</a><br>
                      _______________________________________________<br>
                      ALIGERA – Fabricante e desenvolvedor nacional de
                      Soluções para telefonia IP .<br>
                      Gateway Sip, Placas de 1E1, 2E1, 4E1 e 8E1 para
                      PCI ou PCI Express.<br>
                      Banco de Canais Analógicos  – Appliance Asterisk<br>
                       Acesse <a moz-do-not-send="true"
                        href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a><br>
                      _______________________________________________<br>
                      Para remover seu email desta lista, basta enviar
                      um email em branco para <a moz-do-not-send="true"
href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org"
                        target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                    </blockquote>
                  </div>
                </div>
              </div>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            <br>
            WORKOFFEES KHOMP: Eventos KHOMP em diversas cidades.<br>
            Faça já a sua inscrição GRATUITA para participar da próxima<br>
            edição que acontecerá dia 17 de julho, em RECIFE.<br>
            Veja as outras cidades agendadas em: <a
              moz-do-not-send="true" href="http://www.workoffee.com.br"
              target="_blank">www.workoffee.com.br</a><br>
            _______________________________________________<br>
            ALIGERA – Fabricante e desenvolvedor nacional de Soluções
            para telefonia IP .<br>
            Gateway Sip, Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI
            Express.<br>
            Banco de Canais Analógicos  – Appliance Asterisk<br>
             Acesse <a moz-do-not-send="true"
              href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a><br>
            _______________________________________________<br>
            Para remover seu email desta lista, basta enviar um email em
            branco para <a moz-do-not-send="true"
              href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________

WORKOFFEES KHOMP: Eventos KHOMP em diversas cidades.
Faça já a sua inscrição GRATUITA para participar da próxima 
edição que acontecerá dia 17 de julho, em RECIFE.
Veja as outras cidades agendadas em: <a class="moz-txt-link-abbreviated" href="http://www.workoffee.com.br">www.workoffee.com.br</a>
_______________________________________________
ALIGERA – Fabricante e desenvolvedor nacional de Soluções para telefonia IP .
Gateway Sip, Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Banco de Canais Analógicos  – Appliance Asterisk
 Acesse <a class="moz-txt-link-abbreviated" href="http://www.aligera.com.br">www.aligera.com.br</a>
_______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para <a class="moz-txt-link-abbreviated" href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>