[AsteriskBrasil] FASTAGI SERVER
Alex Sander
sanderdabio em globo.com
Segunda Julho 1 17:00:49 BRT 2013
Pessoal, beleza!
To precisando de uma ajuda.
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.
Aqui está o log quando realizo a chamada:
Jul 1 16:50:15 localhost xinetd[9168]: Exiting...
Jul 1 16:50:16 localhost xinetd[9239]: xinetd Version 2.3.14 started with
libwrap loadavg labeled-networking options compiled in.
Jul 1 16:50:16 localhost xinetd[9239]: Started working: 1 available service
Jul 1 16:50:36 localhost xinetd[9239]: START: fastagi pid=9294
from=127.0.0.1
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)
Jul 1 16:50:36 localhost xinetd[9239]: EXIT: fastagi status=0 pid=9294
duration=0(sec)
Aqui o debug do AGI
AGI Debugging Enabled
== Using SIP RTP CoS mark 5
-- Executing [1002 em internal:1] Wait("SIP/2000-0000000a", "2") in new
stack
-- Executing [1002 em internal:2] AGI("SIP/2000-0000000a", "agi://
127.0.0.1:4573/teste2.php") in new stack
AGI Tx >> agi_network: yes
AGI Tx >> agi_network_script: teste2.php
<SIP/2000-0000000a>AGI Tx >> agi_request: agi://127.0.0.1:4573/teste2.php
<SIP/2000-0000000a>AGI Tx >> agi_channel: SIP/2000-0000000a
<SIP/2000-0000000a>AGI Tx >> agi_language: en
<SIP/2000-0000000a>AGI Tx >> agi_type: SIP
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Connection reset by peer
<SIP/2000-0000000a>AGI Tx >> agi_uniqueid: 1372708234.10
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_version: 1.8.19.0
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_callerid: 2000
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_calleridname: 2000
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_callingpres: 0
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_callingani2: 0
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_callington: 0
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_callingtns: 0
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_dnid: 1002
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_rdnis: unknown
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_context: internal
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_extension: 1002
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_priority: 2
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_enhanced: 0.0
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_accountcode:
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >> agi_threadid: -1243067536
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
<SIP/2000-0000000a>AGI Tx >>
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
-- <SIP/2000-0000000a>AGI Script
agi://127.0.0.1:4573/teste2.phpcompleted, returning 0
<SIP/2000-0000000a>AGI Tx >> HANGUP
[Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write()
returned error: Broken pipe
-- Executing [1002 em internal:3] Hangup("SIP/2000-0000000a", "") in new
stack
== Spawn extension (internal, 1002, 3) exited non-zero on
'SIP/2000-0000000a'
A permissão está full. AGI eu rodo numa boa, mas preciso do fastagi. Alguma
idéia?
Att,
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20130701/a9cf2810/attachment.htm
Mais detalhes sobre a lista de discussão AsteriskBrasil