[AsteriskBrasil] FASTAGI SERVER

Alexandre Correa ajcorrea em gmail.com
Segunda Julho 1 17:44:49 BRT 2013


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)



a localização deste arquivo esta certa (phpagi-fastagi.php) ? Verifica as
permissões tambem caso o caminho esteja correto..

dentro desse php veja se a primeira linha aponta para o binario do php
corretamente, linha tem #! e a localização do binario do php



Sds.
Alexandre J. Correa
Onda Internet
http://www.onda.net.br


IPV6 Ready !!!



On Mon, Jul 1, 2013 at 5:00 PM, Alex Sander <sanderdabio em globo.com> wrote:

> 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,
>
> _______________________________________________
> KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
> Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
> Intercomunicadores para acesso remoto via rede IP. Conheça em
> www.Khomp.com.
> _______________________________________________
> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
> Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br.
> _______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para
> asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20130701/0b6ac79b/attachment-0001.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil