Amigo,<br><br>Mude sua linha:<br><br>De:<br><span style="font-size:11pt;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)<br><br>Para:<br>
</span><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext" lang="EN-US">exten =&gt; s,1,DeadAGI(/usr/local/g1telecom/calc_lig.php)</span><br><br>Rogger<br><br><div class="gmail_quote">
Em 4 de julho de 2012 12:11, Mike Tesliuk <span dir="ltr">&lt;<a href="mailto:mike@tesliuk.com" target="_blank">mike@tesliuk.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 bgcolor="#FFFFFF" text="#000000">
    <div>Outra coisa, verifique se o arquivo
      existe, se existe verifique se o asterisk tem permissão suficiente
      para jogar o conteudo dentro do mesmo.<br>
      <br>
      Eu por exemplo rodo o asterisk com um usuario asterisk, supondo
      que você esteja fazendo o mesmo é necessário que o usuario
      asterisk tenha permissão no arquivo, se estiver utilizando o
      asterisk com root então não deve gerar problemas.<br>
      <br>
      Em 04-07-2012 12:02, Roger Pitigliani escreveu:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <p class="MsoNormal" style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext" lang="EN-US"><br>
        </span></p>
      <p class="MsoNormal" style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:11pt;font-family:Arial,sans-serif" lang="EN-US"><font color="#ff0000">require_once(&quot;phpagi.php&quot;);</font></span></p>

      <p class="MsoNormal" style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><span style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt">$Arg1
          = $AGI-&gt;get_variable(&quot;UNIQUEID&quot;)</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-size:13px;font-family:arial,sans-serif"><span style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt"><br>
        </span></p>
      <p class="MsoNormal" style="font-size:13px;font-family:arial,sans-serif"><span style="font-family:Arial,sans-serif;font-size:11pt"><font color="#ff0000">$abre_log = fopen(&quot;/dados/teste_log&quot;,&#39;a&#39;);</font></span></p>

      <p class="MsoNormal" style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><span style="color:windowtext;font-family:Arial,sans-serif;font-size:11pt"><br>
        </span></p>
      <p class="MsoNormal" style="font-size:13px;font-family:arial,sans-serif"><span style="font-family:Arial,sans-serif;font-size:11pt"><font color="#ff0000">$log = $Arg1[&#39;data&#39;] .&quot;teste&quot;;</font></span></p>

      <p class="MsoNormal" style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><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-size:13px;font-family:arial,sans-serif"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"> </span></p>
      <p class="MsoNormal" style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><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 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" 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á
                  galera, estava com uma dúvidas a alguns dias sobre
                  AGI,
                  estou retomando meu projeto e conseqüentemente minhas
                  dúvidas</span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"> </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çã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"> </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"> </span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"> </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á-la
                  posteriormente para fazer o calculo da ligaçã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"> </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 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">    --
                  &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">    -- Executing [s@macro-hangupcall:3]
                  NoCDR(&quot;Local/1003@contexto-transferencia-7e61;2&quot;, &quot;&quot;)
                  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">    -- Executing [s@macro-hangupcall:4]
                  Hangup(&quot;Local/1003@contexto-transferencia-7e61;2&quot;, &quot;&quot;)
                  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"> </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áveis para o arquivo em
                  questão. </span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"> </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"> </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"> </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"> </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(&quot;UNIQUEID&quot;);</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 = 
                  $AGI-&gt;get_variable(&quot;CALLERID(num)&quot;);</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 = 
                  $AGI-&gt;get_variable(&quot;EXTEN&quot;);</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"> </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(&quot;/dados/teste_log&quot;);</span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"> </span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">$log
                  = $Arg1.&quot;teste&quot;;</span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"> </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"> </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"> </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"> </span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">A
                  questão é, estou errando onde que nã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"> </span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">Agradeço
                  desde já a todos</span></p>
              <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"> </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"> </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ção: External Board Series<br>
          Módulos de 1/2 rack e 1U para todas as interfaces e soluções
          Asterisk e FreeSWITCH.<br>
          Tenha a External Series Experience na sua aplicação. Visite <a href="http://www.khomp.com" target="_blank">www.khomp.com</a><br>
          _______________________________________________<br>
          DIGIVOICE  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 -  Asterisk  - Site  <a href="http://www.digivoice.com.br" target="_blank">www.digivoice.com.br</a><br>
          ________<br>
          YEALINK: Telefones IP e VídeoPhones IP com o melhor
          custo/benefício do mercado.<br>
          email: <a href="mailto:yealink@commlogik.com.br" target="_blank">yealink@commlogik.com.br</a>
          | <a href="http://www.commlogik.com.br" target="_blank">www.commlogik.com.br</a>
          | <a href="tel:%2811%29%205503-1011" value="+551155031011" target="_blank">(11) 5503-1011</a><br>
          ______________________________________________<br>
          Para remover seu email desta lista, basta enviar um email em
          branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      --<br>
      Roger Pitigliani<br>
      <a href="mailto:rogerwinter@gmail.com" target="_blank">rogerwinter@gmail.com</a><br>
      Skype: roger.pitigliani<br>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
KHOMP Inovação: External Board Series
Módulos de 1/2 rack e 1U para todas as interfaces e soluções Asterisk e FreeSWITCH.
Tenha a External Series Experience na sua aplicação. Visite <a href="http://www.khomp.com" target="_blank">www.khomp.com</a>
_______________________________________________
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 href="http://www.digivoice.com.br" target="_blank">www.digivoice.com.br</a>
________
YEALINK: Telefones IP e VídeoPhones IP com o melhor custo/benefício do mercado.
email: <a href="mailto:yealink@commlogik.com.br" target="_blank">yealink@commlogik.com.br</a> | <a href="http://www.commlogik.com.br" target="_blank">www.commlogik.com.br</a> | (11) 5503-1011
______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></pre>

    </blockquote>
    <br>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
KHOMP Inovação: External Board Series<br>
Módulos de 1/2 rack e 1U para todas as interfaces e soluções Asterisk e FreeSWITCH.<br>
Tenha a External Series Experience na sua aplicação. Visite <a href="http://www.khomp.com" target="_blank">www.khomp.com</a><br>
_______________________________________________<br>
DIGIVOICE  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 -  Asterisk  - Site  <a href="http://www.digivoice.com.br" target="_blank">www.digivoice.com.br</a><br>
________<br>
YEALINK: Telefones IP e VídeoPhones IP com o melhor custo/benefício do mercado.<br>
email: <a href="mailto:yealink@commlogik.com.br">yealink@commlogik.com.br</a> | <a href="http://www.commlogik.com.br" target="_blank">www.commlogik.com.br</a> | (11) 5503-1011<br>
______________________________________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br></blockquote></div>
<br>