Script terminates with a busy signal

Joined: Mon 22 of Oct, 2012

Script terminates with a busy signal

Posted:Mon 22 of Oct, 2012 (08:34 UTC)
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:

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


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

can someone help me?