Re: [AsteriskBrasil] FASTAGI SERVER
Alexandre, O arquivo tá certo, pois o servidor está rodando, as permissões também. O executável está apontando corretamente, mas quando rodo meu script ele lê as informações de configuração e pára na execução do phpagi-fastagi. Veja o erro: PHP Fatal error: require_once(): Failed opening required '/var/lib/asterisk/agi-bin//' (include_path='/var/lib/asterisk/agi-bin:.:/usr/share/pear:/usr/share/php') in /var/lib/asterisk/agi-bin/phpagi-fastagi.php on line 80 Já defini este caminho no php.ini e não rolou. Já usei a função set_include_path(/var/lib/asterisk/agi-bin.PATH_SEPARATOR.get_include_path()) no arquivo e não funcionou. Segue meu script de teste: #!/usr/bin/php -q ?php require('phpagi-fastagi.php'); $agi = $fastagi; //$agi = new AGI(); $agi-answer(); $agi-say_number(123456); $agi-hangup(); ? Alguma idéia... Em 1 de julho de 2013 17:44, Alexandre Correa ajcor...@gmail.com escreveu: 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 sanderda...@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@internal:1] Wait(SIP/2000-000a, 2) in new stack -- Executing [1002@internal:2] AGI(SIP/2000-000a, 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-000aAGI Tx agi_request: agi://127.0.0.1:4573/teste2.php SIP/2000-000aAGI Tx agi_channel: SIP/2000-000a SIP/2000-000aAGI Tx agi_language: en SIP/2000-000aAGI 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-000aAGI Tx agi_uniqueid: 1372708234.10 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI 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-000aAGI Tx agi_callerid: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_calleridname: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingpres: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingani2: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callington: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingtns: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_dnid: 1002 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_rdnis: unknown [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_context: internal [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_extension: 1002 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_priority: 2 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_enhanced: 0.0 [Jul 1
Re: [AsteriskBrasil] FASTAGI SERVER
tenta trocar por require('/dir/que/o/script/esta/phpagi-fastagi.php'); coloca o path direto.. Sds. Alexandre J. Correa Onda Internet http://www.onda.net.br IPV6 Ready !!! 2013/7/2 Alex Sander sanderda...@globo.com Alexandre, O arquivo tá certo, pois o servidor está rodando, as permissões também. O executável está apontando corretamente, mas quando rodo meu script ele lê as informações de configuração e pára na execução do phpagi-fastagi. Veja o erro: PHP Fatal error: require_once(): Failed opening required '/var/lib/asterisk/agi-bin//' (include_path='/var/lib/asterisk/agi-bin:.:/usr/share/pear:/usr/share/php') in /var/lib/asterisk/agi-bin/phpagi-fastagi.php on line 80 Já defini este caminho no php.ini e não rolou. Já usei a função set_include_path(/var/lib/asterisk/agi-bin.PATH_SEPARATOR.get_include_path()) no arquivo e não funcionou. Segue meu script de teste: #!/usr/bin/php -q ?php require('phpagi-fastagi.php'); $agi = $fastagi; //$agi = new AGI(); $agi-answer(); $agi-say_number(123456); $agi-hangup(); ? Alguma idéia... Em 1 de julho de 2013 17:44, Alexandre Correa ajcor...@gmail.comescreveu: 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 sanderda...@globo.comwrote: 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@internal:1] Wait(SIP/2000-000a, 2) in new stack -- Executing [1002@internal:2] AGI(SIP/2000-000a, 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-000aAGI Tx agi_request: agi:// 127.0.0.1:4573/teste2.php SIP/2000-000aAGI Tx agi_channel: SIP/2000-000a SIP/2000-000aAGI Tx agi_language: en SIP/2000-000aAGI 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-000aAGI Tx agi_uniqueid: 1372708234.10 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI 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-000aAGI Tx agi_callerid: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_calleridname: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingpres: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingani2: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callington: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingtns: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_dnid: 1002 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_rdnis: unknown [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_context: internal [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_extension: 1002 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171
Re: [AsteriskBrasil] FASTAGI SERVER
Alexandre, antes de mais nada obrigado pela ajuda! Alterei algumas configs no phpagi-fastagi, basicamente troquei o dirname(__NULL__) por uma variavel que defini o caminho dos arquivos e defini como base_dir. Construi o objeto $agi apontando para phpagi.conf. Quando se trata de fastagi o script não pode ser executável, daí removi o #!/usr/bin/php -q... O erro que dava antes(acima) quando eu executava o arquivo, ocorria porque o server(fastagi) espera o arquivo para carregá-lo, a chamada deve ser apenas assim ...agi://IP:PORTA/script. Agora tá reproduzindo. Mantive o require('phpagi-fastagi.php'). Minha idéia é transformar o phpagi numa library do codeigniter para facilitar a criação das aplicações. Com o phpagi-asmanager foi moleza, mas esse deu trabalho. Obrigado pela atenção. Em 2 de julho de 2013 14:42, Alexandre Correa ajcor...@gmail.com escreveu: tenta trocar por require('/dir/que/o/script/esta/phpagi-fastagi.php'); coloca o path direto.. Sds. Alexandre J. Correa Onda Internet http://www.onda.net.br IPV6 Ready !!! 2013/7/2 Alex Sander sanderda...@globo.com Alexandre, O arquivo tá certo, pois o servidor está rodando, as permissões também. O executável está apontando corretamente, mas quando rodo meu script ele lê as informações de configuração e pára na execução do phpagi-fastagi. Veja o erro: PHP Fatal error: require_once(): Failed opening required '/var/lib/asterisk/agi-bin//' (include_path='/var/lib/asterisk/agi-bin:.:/usr/share/pear:/usr/share/php') in /var/lib/asterisk/agi-bin/phpagi-fastagi.php on line 80 Já defini este caminho no php.ini e não rolou. Já usei a função set_include_path(/var/lib/asterisk/agi-bin.PATH_SEPARATOR.get_include_path()) no arquivo e não funcionou. Segue meu script de teste: #!/usr/bin/php -q ?php require('phpagi-fastagi.php'); $agi = $fastagi; //$agi = new AGI(); $agi-answer(); $agi-say_number(123456); $agi-hangup(); ? Alguma idéia... Em 1 de julho de 2013 17:44, Alexandre Correa ajcor...@gmail.comescreveu: 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 sanderda...@globo.comwrote: 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@internal:1] Wait(SIP/2000-000a, 2) in new stack -- Executing [1002@internal:2] AGI(SIP/2000-000a, 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-000aAGI Tx agi_request: agi:// 127.0.0.1:4573/teste2.php SIP/2000-000aAGI Tx agi_channel: SIP/2000-000a SIP/2000-000aAGI Tx agi_language: en SIP/2000-000aAGI 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-000aAGI Tx agi_uniqueid: 1372708234.10 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI 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-000aAGI Tx agi_callerid: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_calleridname: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingpres: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingani2: 0 [Jul 1 16:50:36] ERROR[9293]:
[AsteriskBrasil] FASTAGI SERVER
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@internal:1] Wait(SIP/2000-000a, 2) in new stack -- Executing [1002@internal:2] AGI(SIP/2000-000a, 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-000aAGI Tx agi_request: agi://127.0.0.1:4573/teste2.php SIP/2000-000aAGI Tx agi_channel: SIP/2000-000a SIP/2000-000aAGI Tx agi_language: en SIP/2000-000aAGI 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-000aAGI Tx agi_uniqueid: 1372708234.10 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI 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-000aAGI Tx agi_callerid: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_calleridname: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingpres: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingani2: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callington: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingtns: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_dnid: 1002 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_rdnis: unknown [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_context: internal [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_extension: 1002 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_priority: 2 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_enhanced: 0.0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_accountcode: [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_threadid: -1243067536 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe -- SIP/2000-000aAGI Script agi://127.0.0.1:4573/teste2.phpcompleted, returning 0 SIP/2000-000aAGI Tx HANGUP [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe -- Executing [1002@internal:3] Hangup(SIP/2000-000a, ) in new stack == Spawn extension (internal, 1002, 3) exited non-zero on 'SIP/2000-000a' 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
Re: [AsteriskBrasil] FASTAGI SERVER
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 sanderda...@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@internal:1] Wait(SIP/2000-000a, 2) in new stack -- Executing [1002@internal:2] AGI(SIP/2000-000a, 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-000aAGI Tx agi_request: agi://127.0.0.1:4573/teste2.php SIP/2000-000aAGI Tx agi_channel: SIP/2000-000a SIP/2000-000aAGI Tx agi_language: en SIP/2000-000aAGI 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-000aAGI Tx agi_uniqueid: 1372708234.10 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI 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-000aAGI Tx agi_callerid: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_calleridname: 2000 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingpres: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingani2: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callington: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_callingtns: 0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_dnid: 1002 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_rdnis: unknown [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_context: internal [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_extension: 1002 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_priority: 2 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_enhanced: 0.0 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_accountcode: [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx agi_threadid: -1243067536 [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe SIP/2000-000aAGI Tx [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe -- SIP/2000-000aAGI Script agi://127.0.0.1:4573/teste2.phpcompleted, returning 0 SIP/2000-000aAGI Tx HANGUP [Jul 1 16:50:36] ERROR[9293]: utils.c:1171 ast_carefulwrite: write() returned error: Broken pipe -- Executing [1002@internal:3] Hangup(SIP/2000-000a, ) in new stack == Spawn extension (internal, 1002, 3) exited non-zero on 'SIP/2000-000a' A permissão está full. AGI