<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Outra coisa, verifique se o arquivo
      existe, se existe verifique se o asterisk tem permiss&atilde;o suficiente
      para jogar o conteudo dentro do mesmo.<br>
      <br>
      Eu por exemplo rodo o asterisk com um usuario asterisk, supondo
      que voc&ecirc; esteja fazendo o mesmo &eacute; necess&aacute;rio que o usuario
      asterisk tenha permiss&atilde;o no arquivo, se estiver utilizando o
      asterisk com root ent&atilde;o n&atilde;o deve gerar problemas.<br>
      <br>
      Em 04-07-2012 12:02, Roger Pitigliani escreveu:<br>
    </div>
    <blockquote
cite="mid:CADJSmcU45vGdyDDe-TtBtTi0Cvw+MTn6eLpmiMd3KZZ_5N5Q8g@mail.gmail.com"
      type="cite">
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"
          lang="EN-US">Tenta assim..</span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"
          lang="EN-US"><br>
        </span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"
          lang="EN-US"><br>
        </span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"
          lang="EN-US">#!/usr/bin/php</span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"
          lang="EN-US">&lt;?php</span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"
          lang="EN-US"><br>
        </span></p>
      <p class="MsoNormal"
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
          style="font-size:11pt;font-family:Arial,sans-serif"
          lang="EN-US"><font color="#ff0000">require_once("phpagi.php");</font></span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt"><br>
        </span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt">$AGI
          = new AGI();</span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt"><br>
        </span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt">$Arg1
          = $AGI-&gt;get_variable("UNIQUEID")</span><span
          style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt">;</span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt"><br>
        </span></p>
      <p class="MsoNormal"
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
          style="font-family:Arial,sans-serif;font-size:11pt"><font
            color="#ff0000">$abre_log = fopen("/dados/teste_log",'a');</font></span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt"><br>
        </span></p>
      <p class="MsoNormal"
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
          style="font-family:Arial,sans-serif;font-size:11pt"><font
            color="#ff0000">$log = $Arg1['data'] ."teste";</font></span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt"><br>
        </span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt">fwrite($abre_log,
          $log);</span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt"><br>
        </span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt">fclose($abre_log);</span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext">&nbsp;</span></p>
      <p class="MsoNormal"
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span
style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext">?&gt;</span></p>
      <br>
      <div class="gmail_quote">Em 4 de julho de 2012 11:32, Danilo
        Almeida <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:danilo.almeida@g1telecom.com.br"
            target="_blank">danilo.almeida@g1telecom.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 bgcolor="white"
background="imap://mike%40tesliuk%2Ecom@mail.tesliuk.com:143/fetch%3EUID%3E.INBOX%3E17411?header=quotebody&amp;part=1.1.2&amp;filename=image001.gif"
            link="#3366FF" vlink="#9900FF" lang="PT-BR">
            <img src="cid:part2.01030507.02010007@tesliuk.com"
              style="width:0;min-height:0" height="0" width="0">
            <div>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">Ol&aacute;
                  galera, estava com uma d&uacute;vidas a alguns dias sobre
                  AGI,
                  estou retomando meu projeto e conseq&uuml;entemente minhas
                  d&uacute;vidas</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">Quando
                  finalizo uma liga&ccedil;&atilde;o, mando ela para macro hangupcall,
                  segue abaixo</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">[macro-hangupcall]</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">exten =&gt;
                  s,1,Agi(/usr/local/g1telecom/calc_lig.php)</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">exten =&gt; s,2,Wait(2)</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">exten =&gt; s,3,NoCDR()</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">exten =&gt; s,4,Hangup()</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">exten =&gt;
                  h,1,Agi(/usr/local/g1telecom/calc_lig.php)</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">exten =&gt; h,2,Wait(2)</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">exten =&gt; h,3,Hangup()</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">exten =&gt;
                  t,1,Agi(/usr/local/g1telecom/calc_lig.php)</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">exten
                  =&gt; t,2,Hangup()</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">nessa
                  macro, ao finalizar a chamada pretendo trabalh&aacute;-la
                  posteriormente para fazer o calculo da liga&ccedil;&atilde;o com
                  AGI. Como podem ver mando
                  ela para um arquivo.</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">No
                  LOG da AGI no CLI aparece o seguinte...</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">-- Launched AGI Script
                  /usr/local/g1telecom/calc_lig.php</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_request:
                  /usr/local/g1telecom/calc_lig.php</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_channel:
                  Local/1003@contexto-transferencia-7e61;2</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_language: en</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_type: Local</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_uniqueid: 1341411309.2240</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_version: 1.6.2.20</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_callerid: <a moz-do-not-send="true"
                    href="tel:4340529025" value="+554340529025"
                    target="_blank">4340529025</a></span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_calleridname: tronco2</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_callingpres: 0</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_callingani2: 0</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_callington: 0</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_callingtns: 0</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_dnid: unknown</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_rdnis: unknown</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_context: macro-hangupcall</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_extension: s</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_priority: 2</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_enhanced: 0.0</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_accountcode: TRANSFER</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt; agi_threadid: 45775760</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Tx
                  &gt;&gt;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&nbsp;&nbsp;&nbsp; --
                  &lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
                  Script /usr/local/g1telecom/calc_lig.php completed,
                  returning 0</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&nbsp;&nbsp;&nbsp; -- Executing [s@macro-hangupcall:3]
                  NoCDR("Local/1003@contexto-transferencia-7e61;2", "")
                  in
                  new stack</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&nbsp;&nbsp;&nbsp; -- Executing [s@macro-hangupcall:4]
                  Hangup("Local/1003@contexto-transferencia-7e61;2", "")
                  in
                  new stack</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">Ou
                  seja, esta passando as vari&aacute;veis para o arquivo em
                  quest&atilde;o. </span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">Abaixo
                  segue meu arquivo.php</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">#!/usr/bin/php</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&lt;?php</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">require_once(phpagi.php);</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">//quire_once(/dados/g1box/teste.php);</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">$AGI = new AGI();</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">$Arg1 =
                  $AGI-&gt;get_variable("UNIQUEID");</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">//$Arg2 =&nbsp;
                  $AGI-&gt;get_variable("CALLERID(num)");</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">//$Arg3 =&nbsp;
                  $AGI-&gt;get_variable("EXTEN");</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">$abre_log
                  = fopen("/dados/teste_log");</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">$log
                  = $Arg1."teste";</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">@fwrite($abre_log,
                  $log);</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">@fclose($abre_log);</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">?&gt;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">A
                  quest&atilde;o &eacute;, estou errando onde que n&atilde;o consigo gravar o
                  log
                  no arquivo teste_log?</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">Agrade&ccedil;o
                  desde j&aacute; a todos</span></p>
              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">&nbsp;</span></p>
              <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">att</span></b></p>
              <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">&nbsp;</span></b></p>
              <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">Danilo
                    Ricardo de Almeida</span></b><b><span
style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066"></span></b></p>
            </div>
          </div>
          <br>
          _______________________________________________<br>
          KHOMP Inova&ccedil;&atilde;o: External Board Series<br>
          M&oacute;dulos de 1/2 rack e 1U para todas as interfaces e solu&ccedil;&otilde;es
          Asterisk e FreeSWITCH.<br>
          Tenha a External Series Experience na sua aplica&ccedil;&atilde;o. Visite&nbsp;<a
            moz-do-not-send="true" href="http://www.khomp.com"
            target="_blank">www.khomp.com</a><br>
          _______________________________________________<br>
          DIGIVOICE &nbsp;Fabricante de Placas de Voz e Channel Bank<br>
          20 anos de experi&ecirc;ncia com E1(R2/ISDN), FXS, FXO e GSM<br>
          Centro Treinamento - Curso de PABX IP - &nbsp;Asterisk &nbsp;- Site &nbsp;<a
            moz-do-not-send="true" href="http://www.digivoice.com.br"
            target="_blank">www.digivoice.com.br</a><br>
          ________<br>
          YEALINK: Telefones IP e V&iacute;deoPhones IP com o melhor
          custo/benef&iacute;cio do mercado.<br>
          email: <a moz-do-not-send="true"
            href="mailto:yealink@commlogik.com.br">yealink@commlogik.com.br</a>
          | <a moz-do-not-send="true"
            href="http://www.commlogik.com.br" target="_blank">www.commlogik.com.br</a>
          | <a moz-do-not-send="true" href="tel:%2811%29%205503-1011"
            value="+551155031011">(11) 5503-1011</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">
      <div><br>
      </div>
      -- <br>
      --<br>
      Roger Pitigliani<br>
      <a moz-do-not-send="true" href="mailto:rogerwinter@gmail.com"
        target="_blank">rogerwinter@gmail.com</a><br>
      Skype: roger.pitigliani<br>
      <br>
      <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>
    <br>
  </body>
</html>