<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta name="Microsoft Theme 2.00" content="blueprnt 011">
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Arial","sans-serif";
        color:#003399;}
h1
        {mso-style-priority:9;
        mso-style-link:"Título 1 Char";
        margin-top:24.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:"Arial","sans-serif";
        color:#003399;}
h2
        {mso-style-priority:9;
        mso-style-link:"Título 2 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Arial","sans-serif";
        color:#003399;
        font-weight:normal;}
h3
        {mso-style-priority:9;
        mso-style-link:"Título 3 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Arial","sans-serif";
        color:#003399;
        font-weight:normal;}
h4
        {mso-style-priority:9;
        mso-style-link:"Título 4 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Arial","sans-serif";
        color:#003399;
        font-weight:normal;}
h5
        {mso-style-priority:9;
        mso-style-link:"Título 5 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Arial","sans-serif";
        color:#003399;
        font-weight:normal;}
h6
        {mso-style-priority:9;
        mso-style-link:"Título 6 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:"Arial","sans-serif";
        color:#003399;
        font-weight:normal;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#3366FF;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#9900FF;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.Ttulo1Char
        {mso-style-name:"Título 1 Char";
        mso-style-priority:9;
        mso-style-link:"Título 1";
        font-family:"Century Gothic","sans-serif";
        color:#003399;
        font-weight:bold;}
span.Ttulo2Char
        {mso-style-name:"Título 2 Char";
        mso-style-priority:9;
        mso-style-link:"Título 2";
        font-family:"Century Gothic","sans-serif";
        color:#003399;}
span.Ttulo3Char
        {mso-style-name:"Título 3 Char";
        mso-style-priority:9;
        mso-style-link:"Título 3";
        font-family:"Century Gothic","sans-serif";
        color:#003399;}
span.Ttulo4Char
        {mso-style-name:"Título 4 Char";
        mso-style-priority:9;
        mso-style-link:"Título 4";
        font-family:"Century Gothic","sans-serif";
        color:#003399;}
span.Ttulo5Char
        {mso-style-name:"Título 5 Char";
        mso-style-priority:9;
        mso-style-link:"Título 5";
        font-family:"Century Gothic","sans-serif";
        color:#003399;}
span.Ttulo6Char
        {mso-style-name:"Título 6 Char";
        mso-style-priority:9;
        mso-style-link:"Título 6";
        font-family:"Century Gothic","sans-serif";
        color:#003399;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:70.85pt 85.05pt 70.85pt 85.05pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white background="cid:image001.gif@01CD59D8.0CFB82B0" lang=PT-BR
link="#3366FF" vlink="#9900FF">
<img src="cid:image001.gif@01CD59D8.0CFB82B0"
v:src="cid:image001.gif@01CD59D8.0CFB82B0" v:shapes="_x0000_Mail" width=0
height=0 class=shape style='display:none;width:0;height:0'><!--[if gte mso 9]><xml>
 <v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="800,600">
  <v:fill src="cid:image001.gif@01CD59D8.0CFB82B0" o:title="blutextb" type="frame" />
 </v:background></xml><![endif]-->

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Olá galera, estava com uma dúvidas a alguns dias sobre AGI,
estou retomando meu projeto e conseqüentemente minhas dúvidas<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Quando finalizo uma ligação, mando ela para macro hangupcall,
segue abaixo<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>[macro-hangupcall]<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; s,1,Agi(/usr/local/g1telecom/calc_lig.php)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; s,2,Wait(2)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; s,3,NoCDR()<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; s,4,Hangup()<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; h,1,Agi(/usr/local/g1telecom/calc_lig.php)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; h,2,Wait(2)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; h,3,Hangup()<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; t,1,Agi(/usr/local/g1telecom/calc_lig.php)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>exten =&gt; t,2,Hangup()<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
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.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>No LOG da AGI no CLI aparece o seguinte...<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>-- Launched AGI Script /usr/local/g1telecom/calc_lig.php<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_request: /usr/local/g1telecom/calc_lig.php<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_channel: Local/1003@contexto-transferencia-7e61;2<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_language: en<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_type: Local<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_uniqueid: 1341411309.2240<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_version: 1.6.2.20<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_callerid: 4340529025<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_calleridname: tronco2<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_callingpres: 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_callingani2: 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_callington: 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_callingtns: 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_dnid: unknown<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_rdnis: unknown<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_context: macro-hangupcall<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_extension: s<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_priority: 2<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_enhanced: 0.0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_accountcode: TRANSFER<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt; agi_threadid: 45775760<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI Tx
&gt;&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>    -- &lt;Local/1003@contexto-transferencia-7e61;2&gt;AGI
Script /usr/local/g1telecom/calc_lig.php completed, returning 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>    -- Executing [s@macro-hangupcall:3]
NoCDR(&quot;Local/1003@contexto-transferencia-7e61;2&quot;, &quot;&quot;) in
new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>    -- Executing [s@macro-hangupcall:4]
Hangup(&quot;Local/1003@contexto-transferencia-7e61;2&quot;, &quot;&quot;) in
new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Ou seja, esta passando as variáveis para o arquivo em
questão. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Abaixo segue meu arquivo.php<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>#!/usr/bin/php<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>&lt;?php<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>require_once(phpagi.php);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>//quire_once(/dados/g1box/teste.php);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>$AGI = new AGI();<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>$Arg1 = $AGI-&gt;get_variable(&quot;UNIQUEID&quot;);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>//$Arg2 =  $AGI-&gt;get_variable(&quot;CALLERID(num)&quot;);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>//$Arg3 =  $AGI-&gt;get_variable(&quot;EXTEN&quot;);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>$abre_log = fopen(&quot;/dados/teste_log&quot;);<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>$log = $Arg1.&quot;teste&quot;;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>@fwrite($abre_log, $log);<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>@fclose($abre_log);<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>?&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>A questão é, estou errando onde que não consigo gravar o log
no arquivo teste_log?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Agradeço desde já a todos<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Tahoma","sans-serif";
color:#000066'>att<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Tahoma","sans-serif";
color:#000066'><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Tahoma","sans-serif";
color:#000066'>Danilo Ricardo de Almeida</span></b><b><span style='font-family:
"Tahoma","sans-serif";color:#000066'><o:p></o:p></span></b></p>

</div>

</body>

</html>