<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">fiz o teste que vc postou deu esse erro<br><br>criei isso no meu dial plan<br>exten =&gt; 1210,1,Set(foo=${CURL(http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/2013-January/067520.html)})<br>same&nbsp; =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; n,noop(${foo})<br><br><br>[Jan 22 15:53:00] ERROR[8444]: pbx.c:3669 ast_func_read: Function CURL not registered<br>&nbsp;&nbsp;&nbsp; -- Executing [1210@ramalsimples:1] Set("SIP/101-00000015", "foo=") in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [1210@ramalsimples:2] NoOp("SIP/101-00000015", "") in new stack<br><br><div><span><br></span></div><div>&nbsp;</div><div>Breno Bernini</div><div><br></div><div><span style="font-size:24px;"></span><span style="font-size:18px;"><br></span></div><div><span></span></div><div></div><div><br></div>  <div style="font-family: times new roman, new
 york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De:</span></b> Jefaokpta &lt;jefaokpta@hotmail.com&gt;<br> <b><span style="font-weight: bold;">Para:</span></b> Breno Bernini &lt;breno.bernini_ti@yahoo.com.br&gt;; asteriskbrasil@listas.asteriskbrasil.org <br> <b><span style="font-weight: bold;">Enviadas:</span></b> Terça-feira, 22 de Janeiro de 2013 15:15<br> <b><span style="font-weight: bold;">Assunto:</span></b> Re: [AsteriskBrasil] COMANDO QUE LEIA UM VALOR DE UM  SITE (URL)<br> </font> </div> <br><div id="yiv723688708">
  

    
  
  <div>
    <div class="yiv723688708moz-cite-prefix">dependendo da versão do Ast* vc tem a
      func:<br>
      CURL(url[,post-data])<br>
      <br>
      tipo:<br>
Set(foo=${CURL(ip_do_server/consultar.php,u=001&amp;s=123456&amp;tel=$1)})<br>
      <br>
      Se vc não o tiver faça um shellscript q faça a consulta (o serviço
      do curl) e no Ast*:<br>
      <br>
      Set(foo=${SHELL(caminho_completo/shellscript.sh)});<br>
      <br>
      Tendeu?<br>
      <br>
      Falows<br>
      <br>
      <br>
      <br>
      On 22-01-2013 15:03, Breno Bernini wrote:<br>
    </div>
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">
        <div><span>Boa tarde galera</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
          <span></span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>vamos lá</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
          <span></span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>estou querendo
            utilizar um comando que possa acessar uma url e ler uma
            linha da mesma página e trazer para dentro do asterisk por
            meio de uma váriavel</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
          <span></span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>seria mais ou menos
            igual ao readfile porem</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
          <span></span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>exten =&gt;
            1,1,readfile(<a rel="nofollow" class="yiv723688708moz-txt-link-freetext" target="_blank" href="http://www.teste.com.br/teste">http://www.teste.com.br/teste</a>)</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>same&nbsp;&nbsp; =&gt;&nbsp;&nbsp;&nbsp;
            n,noop(${conteudo do url))</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
          <span></span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>teria como fazer isso
            galera ? valeuu boa tarde a todos</span></div>
        <div>&nbsp;<br>
          <br>
        </div>
        <div>Breno Bernini</div>
        <div><br>
        </div>
        <div><span style="font-size:24px;"></span><span style="font-size:18px;"><br>
          </span></div>
        <div><span></span></div>
        <div><br>
        </div>
        <div style="font-family:times new roman, new york, times, serif;font-size:12pt;">
          <div style="font-family:times new roman, new york, times, serif;font-size:12pt;">
            <div dir="ltr"> <font face="Arial" size="2">
                <hr size="1"> <b><span style="font-weight:bold;">De:</span></b>
                Jerson Luiz de Paula Júnior
                <a rel="nofollow" class="yiv723688708moz-txt-link-rfc2396E" ymailto="mailto:jersonjunior@bsd.com.br" target="_blank" href="mailto:jersonjunior@bsd.com.br">&lt;jersonjunior@bsd.com.br&gt;</a><br>
                <b><span style="font-weight:bold;">Para:</span></b>
                <a rel="nofollow" class="yiv723688708moz-txt-link-abbreviated" ymailto="mailto:asteriskbrasil@listas.asteriskbrasil.org" target="_blank" href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a> <br>
                <b><span style="font-weight:bold;">Enviadas:</span></b>
                Terça-feira, 22 de Janeiro de 2013 14:29<br>
                <b><span style="font-weight:bold;">Assunto:</span></b>
                Re: [AsteriskBrasil] AGI + PYTHON<br>
              </font> </div>
            <br>
            <div id="yiv723688708">
              <div dir="ltr"><a rel="nofollow" target="_blank" href="http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate">http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate</a><br>
              </div>
              <div class="yiv723688708gmail_extra"><br>
                <br>
                <div class="yiv723688708gmail_quote">
                  Em 22 de janeiro de 2013 14:21, Deni <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:deny.santos@gmail.com" target="_blank" href="mailto:deny.santos@gmail.com">deny.santos@gmail.com</a>&gt;</span>
                  escreveu:<br>
                  <blockquote class="yiv723688708gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
                    Bom dia amigos da lista, estou tentando implementar
                    um alerta em python ou php utilizando AGI para que
                    quando o script fosse executado ele disca-se para um
                    ramal especifico ou entao um celular , porem estou
                    com muitas duvidas na questão de como executar o AGI
                    por linha de comando sem ser via asterisk, por
                    exemplo via SHELL ou python, php. Sei que tem muita
                    gente aqui que ja deve utilizar isso por isso pesso
                    a ajuda de voces para me dar este start de inicio .<br>
                    <br>
                    <br>
                    Obrigado desde ja<br>
                    _______________________________________________<br>
                    EBS MODULAR: 3 slots para combinação entre E1, GSM,
                    FXS ou FXO;<br>
                    Linha de PORTEIROS IP, abrem até 2 dispositivos com
                    acesso IP remoto;<br>
                    Conheça esses e outros LANÇAMENTOS KHOMP em <a rel="nofollow" target="_blank" href="http://www.khomp.com/">www.Khomp.com</a>&nbsp;<br>
                    _______________________________________________<br>
                    DIGIVOICE &nbsp;Fabricante de Placas de Voz e Channel
                    Bank<br>
                    20 anos de experiência com E1(R2/ISDN), FXS, FXO e
                    GSM<br>
                    Centro Treinamento - Curso de PABX IP - &nbsp;Asterisk &nbsp;-
                    Site &nbsp;<a rel="nofollow" target="_blank" href="http://www.digivoice.com.br/">www.digivoice.com.br</a><br>
                    _______________________________________________<br>
                    ALIGERA – 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 – Appliance Asterisk - Acesse <a rel="nofollow" target="_blank" href="http://www.aligera.com.br/">www.aligera.com.br</a>.<br>
                    _______________________________________________<br>
                    Para remover seu email desta lista, basta enviar um
                    email em branco para <a rel="nofollow" ymailto="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank" href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            EBS MODULAR: 3 slots para combinação entre E1, GSM, FXS ou
            FXO;<br>
            Linha de PORTEIROS IP, abrem até 2 dispositivos com acesso
            IP remoto;<br>
            Conheça esses e outros LANÇAMENTOS KHOMP em <a rel="nofollow" class="yiv723688708moz-txt-link-abbreviated" target="_blank" href="http://www.khomp.com/">www.Khomp.com</a>&nbsp;<br>
            _______________________________________________<br>
            DIGIVOICE&nbsp; Fabricante de Placas de Voz e Channel Bank<br>
            20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM<br>
            Centro Treinamento - Curso de PABX IP -&nbsp; Asterisk&nbsp; - Site&nbsp;
            <a rel="nofollow" class="yiv723688708moz-txt-link-abbreviated" target="_blank" href="http://www.digivoice.com.br/">www.digivoice.com.br</a><br>
            _______________________________________________<br>
            ALIGERA – 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 – Appliance Asterisk - Acesse
            <a rel="nofollow" class="yiv723688708moz-txt-link-abbreviated" target="_blank" href="http://www.aligera.com.br/">www.aligera.com.br</a>.<br>
            _______________________________________________<br>
            Para remover seu email desta lista, basta enviar um email em
            branco para <a rel="nofollow" ymailto="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank" href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="yiv723688708mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
EBS MODULAR: 3 slots para combinação entre E1, GSM, FXS ou FXO;
Linha de PORTEIROS IP, abrem até 2 dispositivos com acesso IP remoto;
Conheça esses e outros LANÇAMENTOS KHOMP em <a rel="nofollow" class="yiv723688708moz-txt-link-abbreviated" target="_blank" href="http://www.khomp.com/">www.Khomp.com</a>&nbsp;
_______________________________________________
DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  <a rel="nofollow" class="yiv723688708moz-txt-link-abbreviated" target="_blank" href="http://www.digivoice.com.br/">www.digivoice.com.br</a>
_______________________________________________
ALIGERA – 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 – Appliance Asterisk - Acesse <a rel="nofollow" class="yiv723688708moz-txt-link-abbreviated" target="_blank" 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 rel="nofollow" class="yiv723688708moz-txt-link-abbreviated" ymailto="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank" href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></pre>
    </blockquote>
    <br>
  </div>

</div><br><br> </div> </div>  </div></body></html>