<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Segue exemplo:<br>
    <br>
    ;#############&nbsp;&nbsp;&nbsp;&nbsp; Abaixo, exemplo de roteamento por CALLERID<br>
    ;exten =&gt; _2683X.,1,GotoIf($["${CALLERID(num)}" = "202"]?dial1)<br>
    ;exten =&gt; _2683X.,n,GotoIf($["${CALLERID(num)}" =
    "201"]?moh:dial2)<br>
    ;exten =&gt; _2683X.,n(dial1),Dial(SIP/${EXTEN}@fxosaida)<br>
    ;exten =&gt; _2683X.,n,Hangup()<br>
    ;exten =&gt; _2683X.,n(dial2),Dial(SIP/${EXTEN}@fxosaida)<br>
    ;exten =&gt; _2683X.,n,Hangup()<br>
    ;exten =&gt; _2683X.,n(moh),MusicOnHold(default)<br>
    <br>
    <br>
    <br>
    Em 03/08/2012 22:23, Nivaldo Montenegro J&uacute;nior escreveu:
    <blockquote
      cite="mid:14F9375F3B024E43A1C5CFE483FA2D53@digivox.com.br"
      type="cite">
      <div> Rafael, </div>
      <div><br>
      </div>
      <div>Basta voc&ecirc; usar o comando GotoIf.</div>
      <div><br>
      </div>
      <div>Exemplo:</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>exten =&gt; _X.,1,GotoIf(["${CALLERID(num)}" ==
        "1188888888"]?rota_sao_paulo,${EXTEN},1)</div>
      <div>exten =&gt; _X.,n,GotoIf(["${CALLERID(num)}" ==
        "2188888888"]?rota_rio_janeiro,${EXTEN},1)</div>
      <div>&#8230;</div>
      <div><br>
      </div>
      <div>&Eacute; isso?</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Abra&ccedil;o,</div>
      <div><br>
      </div>
      <div>
        <div><br>
        </div>
        <span style="font-family: arial; font-size: small; ">--&nbsp;</span><br
          style="font-family: arial; font-size: small; ">
        <p style="font-family: arial; font-size: small; margin: 0px; "><strong><span
              style="font-family: Verdana; " lang="EN-US">Nivaldo
              Montenegro J&uacute;nior</span></strong><span style="font-family:
            Verdana; " lang="EN-US">&nbsp;</span><b><i><span
                style="font-size: 7.5pt; font-family: Verdana; "
                lang="EN-US"><br>
              </span></i></b><em><b><span style="font-size: 7.5pt;
                font-family: Verdana; " lang="EN-US">Diretor de TI&amp;C</span></b></em><b><i><span
                style="font-size: 7.5pt; font-family: Verdana; "
                lang="EN-US"><br>
              </span></i></b><b><span style="font-size: 7.5pt;
              font-family: Verdana; color: blue; " lang="EN-US">Digivox
              Solu&ccedil;&otilde;es de&nbsp;Comunica&ccedil;&atilde;o Ltda<br>
            </span></b><span style="font-size: 7.5pt; font-family:
            Wingdings; color: navy; " lang="EN-US">(&nbsp;</span><span
            style="font-size: 7.5pt; font-family: Arial; color: navy; "
            lang="EN-US">+&nbsp;</span><span style="font-size: 7.5pt;
            font-family: Arial; color: blue; " lang="EN-US">&nbsp;55 83
            4009-8195<br>
          </span><span style="font-size: 7.5pt; font-family: Wingdings;
            color: navy; " lang="EN-US">(&nbsp;</span><span style="font-size:
            7.5pt; font-family: Arial; color: navy; " lang="EN-US">+&nbsp;</span><span
            style="font-size: 7.5pt; font-family: Arial; color: blue; "
            lang="EN-US">&nbsp;55 83 4009-8199 - fax<br>
          </span><span style="font-size: 7.5pt; font-family: Wingdings;
            color: navy; " lang="EN-US">(&nbsp;</span><span style="font-size:
            7.5pt; font-family: Arial; color: navy; " lang="EN-US">+&nbsp;</span><span
            style="font-size: 7.5pt; font-family: Arial; color: blue; "
            lang="EN-US">&nbsp;55 83 9179-8195 - celular (TIM)<br>
          </span><span style="font-size: 7.5pt; font-family: Wingdings;
            color: navy; " lang="EN-US">:</span><span style="font-size:
            7.5pt; color: navy; " lang="EN-US">&nbsp;</span><span
            style="font-size: 10pt; font-family: Verdana; " lang="EN-US"><span
              style="color: navy; ">&nbsp;<a moz-do-not-send="true"
                href="mailto:junior@digivox.com.br"
                title="blocked::mailto:mailto:junior@digivox.com.br"
                target="_blank">junior@digivox.com.br</a></span></span>&nbsp;<span
            style="font-size: 10pt; color: rgb(51, 153, 102); "
            lang="EN-US">&nbsp;</span><span style="font-size: 10pt;
            font-family: Wingdings; color: rgb(51, 153, 102); "
            lang="EN-US"><br>
          </span><span style="font-size: 7.5pt; font-family: Wingdings;
            color: navy; " lang="EN-US">:&nbsp;</span><b><span
              style="font-size: 7.5pt; font-family: Verdana; color:
              navy; " lang="EN-US"></span></b><b><span style="font-size:
              10pt; font-family: Verdana; color: navy; " lang="EN-US"><a class="moz-txt-link-abbreviated" href="http://www.digivox.com.br">www.digivox.com.br</a></span></b></p>
        <p style="font-family: arial; font-size: small; margin: 0px; "><span
            style="font-size: 10pt; font-family: 'Courier New'; "
            lang="EN-US">&nbsp;</span></p>
        <div><br>
        </div>
      </div>
      <p style="color: #A0A0A8;">On Friday, 3 de August de 2012 at
        21:58, Rafael Alves Machado wrote:</p>
      <blockquote type="cite"
style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
        <span>
          <div>
            <div>
              <div>Amigos boa noite,</div>
              <div>Preciso de uma ajuda dos experts, quero fazer rotas
                no extensions analizando o caller-id de cada chamada
                voip.</div>
              <div><br>
              </div>
              <div>Asterisk 1.8</div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>Grande abs.</div>
              <div><br>
              </div>
              <div>Rafael Machado</div>
              <div>Enviado via iPhone</div>
              <div>_______________________________________________</div>
              <div>KHOMP Inova&ccedil;&atilde;o: External Board Series</div>
              <div>M&oacute;dulos de 1/2 rack e 1U para todas as interfaces e
                solu&ccedil;&otilde;es Asterisk e FreeSWITCH.</div>
              <div>Tenha a External Series Experience na sua aplica&ccedil;&atilde;o.
                Visite&nbsp;<a moz-do-not-send="true"
                  href="http://www.khomp.com">www.khomp.com</a></div>
              <div>_______________________________________________</div>
              <div>DIGIVOICE Fabricante de Placas de Voz e Channel Bank</div>
              <div>20 anos de experi&ecirc;ncia com E1(R2/ISDN), FXS, FXO e
                GSM</div>
              <div>Centro Treinamento - Curso de PABX IP - Asterisk -
                Site <a moz-do-not-send="true"
                  href="http://www.digivoice.com.br">www.digivoice.com.br</a></div>
              <div>________</div>
              <div>YEALINK: Telefones IP e V&iacute;deoPhones IP com o melhor
                custo/benef&iacute;cio do mercado.</div>
              <div>email: <a class="moz-txt-link-abbreviated" href="mailto:yealink@commlogik.com.br">yealink@commlogik.com.br</a> | <a
                  moz-do-not-send="true"
                  href="http://www.commlogik.com.br">www.commlogik.com.br</a>
                | (11) 5503-1011</div>
              <div>______________________________________________</div>
              <div>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></div>
            </div>
          </div>
        </span> </blockquote>
      <div> <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
KHOMP Inova&ccedil;&atilde;o: External Board Series
M&oacute;dulos de 1/2 rack e 1U para todas as interfaces e solu&ccedil;&otilde;es Asterisk e FreeSWITCH.
Tenha a External Series Experience na sua aplica&ccedil;&atilde;o. Visite&nbsp;<a class="moz-txt-link-abbreviated" href="http://www.khomp.com">www.khomp.com</a>
_______________________________________________
DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
20 anos de experi&ecirc;ncia com E1(R2/ISDN), FXS, FXO e GSM
Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  <a class="moz-txt-link-abbreviated" href="http://www.digivoice.com.br">www.digivoice.com.br</a>
________
YEALINK: Telefones IP e V&iacute;deoPhones IP com o melhor custo/benef&iacute;cio do mercado.
email: <a class="moz-txt-link-abbreviated" href="mailto:yealink@commlogik.com.br">yealink@commlogik.com.br</a> | <a class="moz-txt-link-abbreviated" href="http://www.commlogik.com.br">www.commlogik.com.br</a> | (11) 5503-1011
______________________________________________
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>