<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">Boa parceiro, at&eacute; a pr&oacute;xima.<br>
      <br>
      Em 13-09-2013 15:31, El Mizuton - PI escreveu:<br>
    </div>
    <blockquote
cite="mid:CAOPMQa8dd7ns=09Anm0v2N56OX+Up7ewxDBk_L9aoL9janY=Sg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Neimar e Jef&atilde;o,<br>
                <br>
                Funcionou!<br>
              </div>
              Finalmente, consegui dar um jeito no trem.<br>
            </div>
            Para a verifica&ccedil;&atilde;o do status de canais, usei a solu&ccedil;&atilde;o do
            Neimar, ficou bem simples.<br>
          </div>
          Para umas outras dificuldades, implementei a solu&ccedil;&atilde;o do Jef&atilde;o,
          para dar comandos diretamente &agrave; CLI do asterisk.<br>
          <br>
        </div>
        Muito obrigado pela for&ccedil;a!<br>
        <br>
        Abra&ccedil;os.<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">
          Em 13 de setembro 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:<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>N&atilde;o esque&ccedil;a de dar o comendo de conex&atilde;o&nbsp; e depois
                desconex&atilde;o.<br>
                <br>
                Falows<br>
                <br>
                Em 13-09-2013 14:40, jefaokpta escreveu:<br>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div>Parceiro fa&ccedil;o da seguinte forma, at&eacute; o momento
                      tenho uma &uacute;nica fun&ccedil;&atilde;o q fa&ccedil;o td no asterisk:<br>
                      <br>
===========================================================<br>
                      public List&lt;String&gt; getInfos(String command)
                      throws IOException,AuthenticationFailedException,<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TimeoutException{<br>
                      &nbsp;&nbsp;&nbsp; <br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandAction commandAction;<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandResponse commandResponse;<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; commandAction=new CommandAction(command);<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; commandResponse=(CommandResponse)
                      managerConnection.sendAction(commandAction,3000);<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; List&lt;String&gt;
                      res=commandResponse.getResult();<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return res;<br>
                      &nbsp;&nbsp;&nbsp; }<br>
===========================================================<br>
                      Essa fun&ccedil;&atilde;o q fiz, dou comandos de CLI no asterisk
                      e recebo seus retornos na List, com isso fa&ccedil;o td
                      at&eacute; o momento<br>
                      <br>
                      Espero q ajude.<br>
                      <br>
                      <br>
                      Em 13-09-2013 11:56, El Mizuton - PI escreveu:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>Como um adendo &agrave; explica&ccedil;&atilde;o do meu
                          problema...<br>
                          At&eacute; o momento, eu tentei utilizar a classe
                          ExtensionStateAction... mas sem sucesso. <br>
                        </div>
                        E j&aacute; me foi falado para utilizar tamb&eacute;m o live,
                        mas n&atilde;o consegui.<br>
                        <div><br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">Em 13 de setembro de
                          2013 10:52, El Mizuton - PI <span dir="ltr">&lt;<a
                              moz-do-not-send="true"
                              href="mailto:rmizuuti@gmail.com"
                              target="_blank">rmizuuti@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>Opa, fala rapaz...<br>
                                <br>
                                Ent&atilde;o, o que eu preciso &eacute; arrumar uma
                                maneira de, a partir de uma chamada de
                                uma p&aacute;gina web (provavelmente com AJAX),
                                retornar o estado de todos os canais
                                (extens&otilde;es e linhas externas) para
                                apresentar de maneira amig&aacute;vel para a
                                operadora. <br>
                              </div>
                              No entanto, eu n&atilde;o encontrei ainda com o
                              asterisk-java qual seria a forma de checar
                              o status do canal... =/<br>
                              <br>
                              Alguma sugest&atilde;o?<br>
                            </div>
                            <div class="gmail_extra"><br>
                              <br>
                              <div class="gmail_quote">Em 13 de setembro
                                de 2013 10:45, 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>Talvez eu possa ajudar
                                          amigo<br>
                                          <br>
                                          estou desenvolvendo um
                                          front-end pr&oacute;prio p o ast* em
                                          java, ainda n&atilde;o cheguei na
                                          tela de telefonista, onde
                                          farei oq vc descreveu entre
                                          outras coisas.<br>
                                          <br>
                                          neste projeto uso a API
                                          asterisk-java.<br>
                                          <br>
                                          Qual a dificuldade?<br>
                                          <br>
                                          Em 13-09-2013 11:15, El
                                          Mizuton - PI escreveu:<br>
                                        </div>
                                        <blockquote type="cite">
                                          <div>
                                            <div>
                                              <div dir="ltr">
                                                <div>
                                                  <div>Bom dia pessoal.<br>
                                                    <br>
                                                    Estou com uma
                                                    necessidade em minha
                                                    empresa, de
                                                    monitorar tanto as
                                                    extens&otilde;es (ramais)
                                                    quanto as linhas
                                                    externas em um
                                                    sistema web baseado
                                                    em Java. Estou
                                                    utilizando at&eacute; o
                                                    momento o
                                                    asterisk-java para
                                                    realizar outras
                                                    fun&ccedil;&otilde;es, mas n&atilde;o
                                                    estou conseguindo
                                                    realizar a contento
                                                    o monitoramento dos
                                                    canais. <br>
                                                  </div>
                                                  Uma sugest&atilde;o que
                                                  recebi foi a de usar a
                                                  API live, mas n&atilde;o
                                                  consegui entender
                                                  muito bem o seu
                                                  funcionamento.<br>
                                                  <br>
                                                  Algu&eacute;m aqui j&aacute; tem
                                                  alguma experi&ecirc;ncia
                                                  nesse assunto ou j&aacute;
                                                  desenvolveu algo
                                                  semelhante?<br>
                                                  <br>
                                                </div>
                                                Abra&ccedil;os!<br>
                                              </div>
                                              <br>
                                              <fieldset></fieldset>
                                              <br>
                                            </div>
                                          </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>
                                          </div>
                                        </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>
                                </div>
                              </div>
                              <br>
                              <br clear="all">
                              <div><br>
                                -- <br>
                                <div dir="ltr"><span
                                    style="font-size:13px">
                                    <div
                                      style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                                        face="verdana, sans-serif"><b>Roberto
                                          Mizuuti</b></font></div>
                                    <div
                                      style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                                        face="verdana, sans-serif"><b>Diretor
                                          T&eacute;cnico</b></font></div>
                                    <div
                                      style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                                        face="verdana, sans-serif"><b>Cubelogic

                                          Sistemas &amp; Webdesign</b></font></div>
                                    <div style="color:rgb(136,136,136)"><font
                                        face="verdana, sans-serif"><b>E-mail
                                          / MSN: <a
                                            moz-do-not-send="true"
                                            href="mailto:roberto@cubelogic.com.br"
                                            target="_blank">roberto@cubelogic.com.br</a></b></font></div>
                                    <div style="color:rgb(136,136,136)">
                                      <font face="verdana, sans-serif"><b>Cel:
                                          (65) 8123-5156 / <a
                                            moz-do-not-send="true"
                                            href="tel:%2865%29%209972-7466"
                                            value="+556599727466"
                                            target="_blank">(65)
                                            9972-7466</a></b></font></div>
                                  </span>
                                  <div><span
style="color:rgb(136,136,136);font-size:13px;font-family:verdana,sans-serif"><br>
                                    </span></div>
                                </div>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                        <br>
                        <br clear="all">
                        <br>
                        -- <br>
                        <div dir="ltr"><span style="font-size:13px">
                            <div
                              style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                                face="verdana, sans-serif"><b>Roberto
                                  Mizuuti</b></font></div>
                            <div
                              style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                                face="verdana, sans-serif"><b>Diretor
                                  T&eacute;cnico</b></font></div>
                            <div
                              style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                                face="verdana, sans-serif"><b>Cubelogic
                                  Sistemas &amp; Webdesign</b></font></div>
                            <div style="color:rgb(136,136,136)"><font
                                face="verdana, sans-serif"><b>E-mail /
                                  MSN: <a moz-do-not-send="true"
                                    href="mailto:roberto@cubelogic.com.br"
                                    target="_blank">roberto@cubelogic.com.br</a></b></font></div>
                            <div style="color:rgb(136,136,136)"> <font
                                face="verdana, sans-serif"><b>Cel: (65)
                                  8123-5156 / (65) 9972-7466</b></font></div>
                          </span>
                          <div><span
style="color:rgb(136,136,136);font-size:13px;font-family:verdana,sans-serif"><br>
                            </span></div>
                        </div>
                      </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>
                    <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">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div dir="ltr"><span
            style="font-size:13px;background-color:rgb(255,255,255)">
            <div
              style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                face="verdana, sans-serif"><b>Roberto Mizuuti</b></font></div>
            <div
              style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                face="verdana, sans-serif"><b>Diretor T&eacute;cnico</b></font></div>
            <div
              style="color:rgb(136,136,136);font-family:arial,sans-serif"><font
                face="verdana, sans-serif"><b>Cubelogic Sistemas &amp;
                  Webdesign</b></font></div>
            <div style="color:rgb(136,136,136)"><font face="verdana,
                sans-serif"><b>E-mail / MSN: <a moz-do-not-send="true"
                    href="mailto:roberto@cubelogic.com.br"
                    target="_blank">roberto@cubelogic.com.br</a></b></font></div>
            <div style="color:rgb(136,136,136)">
              <font face="verdana, sans-serif"><b>Cel: (65) 8123-5156 /
                  (65) 9972-7466</b></font></div>
          </span>
          <div><span
style="color:rgb(136,136,136);font-family:verdana,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
            </span></div>
        </div>
      </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>