<div dir="ltr">Pessoal, beleza!<div><br></div><div style>To precisando de uma ajuda. </div><div style><br></div><div style>Vou usar o fastagi do projeto phpagi. Já criei o serviço com xinetd e está rodando certinho, ouvindo a porta que configurei no server. Mas quando faço uma chamada para ler meu escript dá um erro. Já pesquisei bastante e não achei nada.</div>
<div style><br></div><div style>Aqui está o log quando realizo a chamada:</div><div style><br></div><div style><div>Jul 1 16:50:15 localhost xinetd[9168]: Exiting...</div><div>Jul 1 16:50:16 localhost xinetd[9239]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.</div>
<div>Jul 1 16:50:16 localhost xinetd[9239]: Started working: 1 available service</div><div>Jul 1 16:50:36 localhost xinetd[9239]: START: fastagi pid=9294 from=127.0.0.1</div><div>Jul 1 16:50:36 localhost xinetd[9294]: execv( /var/lib/asterisk/agi-bin/phpagi-fastagi.php ) failed: No such file or directory (errno = 2)</div>
<div>Jul 1 16:50:36 localhost xinetd[9239]: EXIT: fastagi status=0 pid=9294 duration=0(sec)</div><div><br></div><div style>Aqui o debug do AGI</div><div style><br></div><div style><div>AGI Debugging Enabled</div><div> == Using SIP RTP CoS mark 5</div>
<div> -- Executing [1002@internal:1] Wait("SIP/2000-0000000a", "2") in new stack</div><div> -- Executing [1002@internal:2] AGI("SIP/2000-0000000a", "agi://<a href="http://127.0.0.1:4573/teste2.php">127.0.0.1:4573/teste2.php</a>") in new stack</div>
<div>AGI Tx >> agi_network: yes</div><div>AGI Tx >> agi_network_script: teste2.php</div><div><SIP/2000-0000000a>AGI Tx >> agi_request: agi://<a href="http://127.0.0.1:4573/teste2.php">127.0.0.1:4573/teste2.php</a></div>
<div><SIP/2000-0000000a>AGI Tx >> agi_channel: SIP/2000-0000000a</div><div><SIP/2000-0000000a>AGI Tx >> agi_language: en</div><div><SIP/2000-0000000a>AGI Tx >> agi_type: SIP</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Connection reset by peer</div>
<div><SIP/2000-0000000a>AGI Tx >> agi_uniqueid: 1372708234.10</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_version: 1.8.19.0</div>
<div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_callerid: 2000</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div>
<div><SIP/2000-0000000a>AGI Tx >> agi_calleridname: 2000</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_callingpres: 0</div>
<div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_callingani2: 0</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div>
<div><SIP/2000-0000000a>AGI Tx >> agi_callington: 0</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_callingtns: 0</div>
<div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_dnid: 1002</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div>
<div><SIP/2000-0000000a>AGI Tx >> agi_rdnis: unknown</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_context: internal</div>
<div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_extension: 1002</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div>
<div><SIP/2000-0000000a>AGI Tx >> agi_priority: 2</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_enhanced: 0.0</div>
<div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >> agi_accountcode:</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div>
<div><SIP/2000-0000000a>AGI Tx >> agi_threadid: -1243067536</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div><SIP/2000-0000000a>AGI Tx >></div>
<div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div> -- <SIP/2000-0000000a>AGI Script agi://<a href="http://127.0.0.1:4573/teste2.php">127.0.0.1:4573/teste2.php</a> completed, returning 0</div>
<div><SIP/2000-0000000a>AGI Tx >> HANGUP</div><div>[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe</div><div> -- Executing [1002@internal:3] Hangup("SIP/2000-0000000a", "") in new stack</div>
<div> == Spawn extension (internal, 1002, 3) exited non-zero on 'SIP/2000-0000000a'</div><div><br></div><div style>A permissão está full. AGI eu rodo numa boa, mas preciso do fastagi. Alguma idéia?</div><div style>
<br></div><div style>Att,</div></div></div></div>