Script terminates with a busy signal

lozio84
Joined: Mon 22 of Oct, 2012

Script terminates with a busy signal

Posted:Mon 22 of Oct, 2012 (08:34 UTC)
Hi!!
i'm new user of this forum!
I'm trying to execute a php script when i call a specific number.
my problem is that the call terminate with busy signal.
I don't want the call is answered.
this is my dial plan:


[custom-test]
exten => s,n,AGI(/var/lib/asterisk/agi-bin/script_test.php)
exten => s,n,Hangup

script_test.php:

"#!/usr/bin/php -q
<?
require '/var/lib/asterisk/agi-bin/phpagi.php';
$agi = new AGI();
$var=fopen("/var/lib/asterisk/agi-bin/documento.txt","a+");
fwrite($var, 'numero chiamante: '.$nocaller.' ; ');
fwrite($var, 'numero chiamato: '.$nocalled.' ; ');
?>"


can someone help me?
Thanks!!