All phpagi samples doesn’t work on asterisk 1.4.37. The error message is the same:
Any suggestions to find the root cause ?
========================================
Launched AGI Script /data/asterisk//var/lib/asterisk/agi-bin/1.php
AGI Tx >> agi_request: 1.php
AGI Tx >> agi_channel: SIP/805-00000005
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_language: jp
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_type: SIP
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_uniqueid: 1291685457.5
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_callerid: 805
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_calleridname: 805
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_callingpres: 0
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_callingani2: 0
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_callington: 0
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_callingtns: 0
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_dnid: 999
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_rdnis: unknown
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_context: default
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_extension: 999
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_priority: 1
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_enhanced: 0.0
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >> agi_accountcode:
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Tx >>
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << Usage: php [-q] [-h] [-s] [-v] [-i] [-f ]
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << php [args…]
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -a Run interactively
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -C Do not chdir to the script’s directory
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -c | Look for php.ini file in this directory
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -n No php.ini file will be used
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -d foo[=bar] Define INI entry foo with value 'bar’
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -e Generate extended information for debugger/profiler
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -f Parse . Implies `-q’
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -h This help
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -i PHP information
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -l Syntax check only (lint)
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -m Show compiled in modules
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -q Quiet-mode. Suppress HTTP Header output.
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -s Display colour syntax highlighted source.
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -v Version number
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -w Display source with stripped comments and whitespace.
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
AGI Rx << -z Load Zend extension .
AGI Tx >> 510 Invalid or unknown command
[2010-12-07 09:30:57] ERROR[2010]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
– AGI Script 1.php completed, returning 0
=========================================