<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Ata, na var ${fixo} vc tem o n&ordm;
      discado, cert.<br>
      <br>
      &Oacute;timo.<br>
      <br>
      T+<br>
      <br>
      Em 09-12-2013 14:36, Jerson Luiz de Paula J&uacute;nior escreveu:<br>
    </div>
    <blockquote
cite="mid:CAHtr8hasxeR-z97u-TeR5E+e0N8mcPCpJjKRqv142gbcOTiK5g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Valeu, consegui
        <div><br>
        </div>
        <div>
          <div>exten =&gt; s,1,Set(CALLERID(all)=${CALLERID(num)})</div>
          <div>exten =&gt; s,n,Set(fixo=${CALLERID(num):2:1})</div>
          <div>exten =&gt;
            s,n,Noop(========================${fixo}===================)</div>
          <div>exten =&gt; s,n,GotoIf($["${fixo}" &nbsp;&lt;
            "7"]?entradasfixo,${EXTEN},1)</div>
          <div>exten =&gt;
            s,n,Noop(========================Celular====================)</div>
        </div>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">Em 9 de dezembro de 2013 14:17, Jerson
          Luiz de Paula J&uacute;nior <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:jersonjunior@bsd.com.br" target="_blank">jersonjunior@bsd.com.br</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>;extensions.conf</div>
              <div>exten =&gt; s,1,Set(CALLERID(all)=${CALLERID(num)})</div>
              <div class="im">
                <div>exten =&gt; s,n,GotoIf($[${REGEX("2-5"
                  ${EXTEN:2:1})}]?entradasfixo,${EXTEN},1)</div>
                <div>exten =&gt; s,n,GotoIf($[${REGEX("6-9"
                  ${EXTEN:2:1})}]?entradascelular,${EXTEN},1)</div>
                <div><br>
                </div>
                <div>Logs do CLI</div>
                <div><br>
                </div>
              </div>
              <div>
                <div>&nbsp;Executing [s@default:1] Set("DAHDI/1-1",
                  "CALLERID(all)=613026666") in new stack</div>
                <div>&nbsp; &nbsp; -- Executing [s@default:2] GotoIf("DAHDI/1-1",
                  "0?entradasfixo,s,1") in new stack</div>
                <div>&nbsp; &nbsp; -- Executing [s@default:3] GotoIf("DAHDI/1-1",
                  "0?entradascelular,s,1") in new stack</div>
                <div class="im">
                  <div>&nbsp; &nbsp; -- Auto fallthrough, channel 'DAHDI/1-1'
                    status is 'UNKNOWN'</div>
                </div>
              </div>
              <div>
                <br>
              </div>
              <div><br>
              </div>
              <div>Algo errado no extensions?</div>
            </div>
            <div class="gmail_extra"><br>
              <br>
              <div class="gmail_quote">Em 9 de dezembro de 2013 14:10,
                Jerson Luiz de Paula J&uacute;nior <span dir="ltr">&lt;<a
                    moz-do-not-send="true"
                    href="mailto:jersonjunior@bsd.com.br"
                    target="_blank">jersonjunior@bsd.com.br</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">Valeu d++ vou testar aqui!!</div>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">Em 9 de dezembro de
                          2013 13:56, jefaokpta <span dir="ltr">&lt;<a
                              moz-do-not-send="true"
                              href="mailto:jefaokpta@hotmail.com"
                              target="_blank">jefaokpta@hotmail.com</a>&gt;</span>
                          escreveu:
                          <div>
                            <div><br>
                              <blockquote class="gmail_quote"
                                style="margin:0 0 0 .8ex;border-left:1px
                                #ccc solid;padding-left:1ex">
                                <div text="#000000" bgcolor="#FFFFFF">
                                  <div>Outras coisas:<br>
                                    <br>
                                    ${EXTEN:2:1} significa: Apenas o 3&ordm;
                                    d&iacute;gito do exten ("exten=&gt;s" s&oacute;
                                    tem 1 digito)<br>
                                    <br>
                                    Escrev&iacute; dessa forma pq vc enviou o
                                    1&ordm; email descriminando assim:<br>
                                    <br>
                                    XX[2-5]<br>
                                    <br>
                                    Logo se eu quero saber o 3&ordm; digito,
                                    uso ${EXTEN:2:1}.<br>
                                    <br>
                                    Ficou um pouco mais claro?<br>
                                    <br>
                                    Flws<br>
                                    <br>
                                    Em 09-12-2013 13:21, Jerson Luiz de
                                    Paula J&uacute;nior escreveu:<br>
                                  </div>
                                  <div>
                                    <div>
                                      <blockquote type="cite">
                                        <div dir="ltr">
                                          <div>exten =&gt;
                                            s,1,Set(${CALLERID(num)})</div>
                                          <div>exten =&gt; s,n,NoOp(
                                            BINA: ${CALLERID(num)} )</div>
                                          <div>exten =&gt;
                                            s,n,GotoIf($[${REGEX("2-5"
                                            ${EXTEN:2:1})}]?entradasfixo,${EXTEN},1)</div>
                                          <div> exten =&gt;
                                            s,n,GotoIf($[${REGEX("6-9"
                                            ${EXTEN:2:1})}]?entradascelular,${EXTEN},1)</div>
                                          <div><br>
                                          </div>
                                          <div>Logs do CLI:</div>
                                          <div><br>
                                          </div>
                                          <div>
                                            <div>&nbsp; &nbsp; -- Starting simple
                                              switch on 'DAHDI/1-1'</div>
                                            <div> &nbsp; &nbsp; -- Executing
                                              [s@default:1]
                                              Set("DAHDI/1-1",
                                              "6130278700") in new stack</div>
                                            <div>[Dec &nbsp;9 13:27:35]
                                              WARNING[31339][C-00000022]:
                                              pbx.c:11426
                                              pbx_builtin_setvar: Set
                                              requires an '=' to be a
                                              valid assignment.</div>
                                            <div>&nbsp; &nbsp; -- Executing
                                              [s@default:2]
                                              NoOp("DAHDI/1-1", " BINA:
                                              6130278700 ") in new stack</div>
                                            <div>&nbsp; &nbsp; -- Auto
                                              fallthrough, channel
                                              'DAHDI/1-1' status is
                                              'UNKNOWN'</div>
                                            <div>&nbsp; &nbsp; -- Hanging up on
                                              'DAHDI/1-1'</div>
                                            <div>&nbsp; &nbsp; -- Hungup
                                              'DAHDI/1-1'</div>
                                            <div>&nbsp; &nbsp; -- Starting simple
                                              switch on 'DAHDI/1-1'</div>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div><br>
                                          </div>
                                        </div>
                                        <div class="gmail_extra"><br>
                                          <br>
                                          <div class="gmail_quote">Em 9
                                            de dezembro de 2013 13:08,
                                            jefaokpta <span dir="ltr">&lt;<a
                                                moz-do-not-send="true"
                                                href="mailto:jefaokpta@hotmail.com"
                                                target="_blank">jefaokpta@hotmail.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 text="#000000"
                                                bgcolor="#FFFFFF">
                                                <div>Parceiro, d&aacute; p ser
                                                  um pouco mais
                                                  espec&iacute;fico?<br>
                                                  <br>
                                                  Para oq vc esta
                                                  pedindo basta:<br>
                                                  <br>
                                                  GotoIf($[${REGEX("2-5"
${EXTEN:2:1})}]?entradasfixo,${EXTEN},1)<br>
                                                  <br>
                                                  ou<br>
                                                  <br>
                                                  GotoIf($[${EXTEN:2:1}&gt;=2
                                                  &amp;&amp;
                                                  ${EXTEN:2:1}&lt;=5]?)<br>
                                                  <br>
                                                  Entende.<br>
                                                  <br>
                                                  Flws<br>
                                                  <br>
                                                  Em 09-12-2013 12:11,
                                                  Jerson Luiz de Paula
                                                  J&uacute;nior escreveu:<br>
                                                </div>
                                                <blockquote type="cite">
                                                  <div>
                                                    <div>
                                                      <div dir="ltr"><span
style="font-family:arial,sans-serif;font-size:13px">Pessoal,</span>
                                                        <div
                                                          style="font-family:arial,sans-serif;font-size:13px"><br>
                                                        </div>
                                                        <div
                                                          style="font-family:arial,sans-serif;font-size:13px">Preciso


                                                          realizar o
                                                          tratamento de
                                                          chamadas
                                                          entrantes:</div>
                                                        <div
                                                          style="font-family:arial,sans-serif;font-size:13px"><br>
                                                        </div>
                                                        <div
                                                          style="font-family:arial,sans-serif;font-size:13px">Chamadas


                                                          Locais
                                                          recebidas de
                                                          XX[2-5]
                                                          desviar para o
                                                          contexto
                                                          entradasfixo</div>
                                                        <div
                                                          style="font-family:arial,sans-serif;font-size:13px">
                                                          Chamadas
                                                          recebidas de
                                                          celulares
                                                          XX[5-9]
                                                          desviar para o
                                                          contexto
                                                          entradacelular</div>
                                                        <div
                                                          style="font-family:arial,sans-serif;font-size:13px"><br>
                                                        </div>
                                                        <div
                                                          style="font-family:arial,sans-serif;font-size:13px">Att:


                                                          Jerson Luiz de
                                                          Paula Junior</div>
                                                      </div>
                                                      <br>
                                                      <fieldset></fieldset>
                                                      <br>
                                                    </div>
                                                  </div>
                                                  <pre>_______________________________________________
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
Intercomunicadores para acesso remoto via rede IP. Conhe&ccedil;a em <a moz-do-not-send="true" href="http://www.Khomp.com" target="_blank">www.Khomp.com</a>.
_______________________________________________
ALIGERA &#8211; Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Channel Bank &#8211; Appliance Asterisk - Acesse <a moz-do-not-send="true" href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a>.
_______________________________________________
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></pre>
                                                </blockquote>
                                                <br>
                                              </div>
                                              <br>
_______________________________________________<br>
                                              KHOMP: completa linha de
                                              placas externas FXO, FXS,
                                              GSM e E1;<br>
                                              Media Gateways de 1 a 64
                                              E1s para SIP com R2, ISDN
                                              e SS7;<br>
                                              Intercomunicadores para
                                              acesso remoto via rede IP.
                                              Conhe&ccedil;a em <a
                                                moz-do-not-send="true"
                                                href="http://www.Khomp.com"
                                                target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>
                                              ALIGERA &#8211; Fabricante
                                              nacional de Gateways
                                              SIP-E1 para R2, ISDN e
                                              SS7.<br>
                                              Placas de 1E1, 2E1, 4E1 e
                                              8E1 para PCI ou PCI
                                              Express.<br>
                                              Channel Bank &#8211; Appliance
                                              Asterisk - 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>
                                        <fieldset></fieldset>
                                        <br>
                                        <pre>_______________________________________________
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
Intercomunicadores para acesso remoto via rede IP. Conhe&ccedil;a em <a moz-do-not-send="true" href="http://www.Khomp.com" target="_blank">www.Khomp.com</a>.
_______________________________________________
ALIGERA &#8211; Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Channel Bank &#8211; Appliance Asterisk - Acesse <a moz-do-not-send="true" href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a>.
_______________________________________________
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></pre>
                                      </blockquote>
                                      <br>
                                    </div>
                                  </div>
                                </div>
                                <br>
_______________________________________________<br>
                                KHOMP: completa linha de placas externas
                                FXO, FXS, GSM e E1;<br>
                                Media Gateways de 1 a 64 E1s para SIP
                                com R2, ISDN e SS7;<br>
                                Intercomunicadores para acesso remoto
                                via rede IP. Conhe&ccedil;a em <a
                                  moz-do-not-send="true"
                                  href="http://www.Khomp.com"
                                  target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>
                                ALIGERA &#8211; Fabricante nacional de
                                Gateways SIP-E1 para R2, ISDN e SS7.<br>
                                Placas de 1E1, 2E1, 4E1 e 8E1 para PCI
                                ou PCI Express.<br>
                                Channel Bank &#8211; Appliance Asterisk -
                                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>
                    </blockquote>
                  </div>
                </div>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
Intercomunicadores para acesso remoto via rede IP. Conhe&ccedil;a em <a class="moz-txt-link-abbreviated" href="http://www.Khomp.com">www.Khomp.com</a>.
_______________________________________________
ALIGERA &#8211; Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Channel Bank &#8211; 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>