Hello, and thanks for help :
I am running Asterisk 1.8.8 on Amazon Linux AMI 2012.09.1 (Linux 3.2).
I have installed PHPAGI 2.2 on a remote server with xinetd and looks working :
ubuntu@ip-10-243-114-220:~$ sudo telnet 54.243.xxx.xxx 4573
Trying 54.243.xxx.xxx...
Connected to 54.243.xxx.xxx.
Escape character is '^]'.
Connection closed by foreign host.
ubuntu@ip-10-243-114-220:~$
when, from my asterisk box i try to call :
exten => _X.,1, Agi(agi://54.243.xxx.xxx:4573/a_sample.php)
where the file ‘sample.php’ contain only 1 line of code:
$fastagi->hungup('cool, the FastAGI server has been called!');
i get on my asterisk cli after a ‘agi set debug on’
a bounch of errors:
== Using SIP RTP CoS mark 5
-- Executing [2580@from-internal:1] AGI("SIP/2133-00000040", "agi://54.243.xxx.xxx:4573/a_sample.php") in new stack
AGI Tx >> agi_network: yes
AGI Tx >> agi_network_script: a_sample.php
<SIP/2133-00000040>AGI Tx >> agi_request: agi://54.243.xxx.xxx:4573/a_sample.php
<SIP/2133-00000040>AGI Tx >> agi_channel: SIP/2133-00000040
<SIP/2133-00000040>AGI Tx >> agi_language: en
<SIP/2133-00000040>AGI Tx >> agi_type: SIP
<SIP/2133-00000040>AGI Tx >> agi_uniqueid: 1363713052.64
<SIP/2133-00000040>AGI Tx >> agi_version: 1.8.8.1
<SIP/2133-00000040>AGI Tx >> agi_callerid: 2133
<SIP/2133-00000040>AGI Tx >> agi_calleridname: unknown
<SIP/2133-00000040>AGI Tx >> agi_callingpres: 0
<SIP/2133-00000040>AGI Tx >> agi_callingani2: 0
<SIP/2133-00000040>AGI Tx >> agi_callington: 0
<SIP/2133-00000040>AGI Tx >> agi_callingtns: 0
<SIP/2133-00000040>AGI Tx >> agi_dnid: 2580
<SIP/2133-00000040>AGI Tx >> agi_rdnis: unknown
[Mar 19 17:10:52] ERROR[10000]: utils.c:1164 ast_carefulwrite: write() returned error: Connection reset by peer
<SIP/2133-00000040>AGI Tx >> agi_context: from-internal
[Mar 19 17:10:52] ERROR[10000]: utils.c:1164 ast_carefulwrite: write() returned error: Broken pipe
<SIP/2133-00000040>AGI Tx >> agi_extension: 2580
[Mar 19 17:10:52] ERROR[10000]: utils.c:1164 ast_carefulwrite: write() returned error: Broken pipe
<SIP/2133-00000040>AGI Tx >> agi_priority: 1
[Mar 19 17:10:52] ERROR[10000]: utils.c:1164 ast_carefulwrite: write() returned error: Broken pipe
<SIP/2133-00000040>AGI Tx >> agi_enhanced: 0.0
[Mar 19 17:10:52] ERROR[10000]: utils.c:1164 ast_carefulwrite: write() returned error: Broken pipe
<SIP/2133-00000040>AGI Tx >> agi_accountcode:
[Mar 19 17:10:52] ERROR[10000]: utils.c:1164 ast_carefulwrite: write() returned error: Broken pipe
<SIP/2133-00000040>AGI Tx >> agi_threadid: 139841764480768
[Mar 19 17:10:52] ERROR[10000]: utils.c:1164 ast_carefulwrite: write() returned error: Broken pipe
<SIP/2133-00000040>AGI Tx >>
[Mar 19 17:10:52] ERROR[10000]: utils.c:1164 ast_carefulwrite: write() returned error: Broken pipe
-- <SIP/2133-00000040>AGI Script agi://54.243.203.90:4573/a_sample.php completed, returning 0
and the php code is not executed.
Pls, help.