Asterisk has not any reaction digit pressing in some numbers

I use phpagi extension for asterisk call. In some number I press digit and get result while playing audio file. But in some numbers I press digit but was being result=-1. So, failure result. What can I do? Here is my extensions.conf:

exten => _055XXXXXXX,1,AGI(test.agi)

And it is my test.agi file:

#!/usr/bin/php -q

<?php set_time_limit(0); require ('phpagi.php'); $agi = new AGI(); function errors($errno, $errstr, $errfile, $errline){ global $agi; $agi->verbose($errstr." at line: ".$errline." in file: ".$errfile); } set_error_handler("errors"); $agi->verbose($agi->request); $callerid = $agi->request['agi_extension'];//Get caller ID $callerid = "994".substr($callerid, 1); $agi -> answer(); a: $char = $agi -> get_data('test'); $message = ''; $id =$char['result']; $agi->say_number($id); $agi->verbose("resultt:".$id); if ($id == 1) { $message = "1e basildi"; $response = file_get_contents('http://localhost/sms-inbox.php?msisdn='.$callerid.'&short_code=9006&key_word=start&isFromSite=2'); $agi->verbose($response); } elseif($id==-1){ goto a; } else { $message = 'basqa duyme'; } $agi -> verbose($message); $agi -> hangup(); ?>