Agi meetme - hang up problem

Hello, i want to use meetme agi background,

I use this script. /var/lib/asterisk/agi-bin/

"conf-background.agi"
The code:

#!/usr/bin/perl -w

use Asterisk::AGI;

$AGI = new Asterisk::AGI;
%input = $AGI->ReadParse();

$soundpath = “/usr/share/asterisk/sounds/”;
$timeout = 10;

while(1)
{
$input = chr($AGI->wait_for_digit($timeout));

    if ($input eq "*")
          {
          $AGI->stream_file("$soundpath/accounting");
          }
    if ($input eq "1")
          {
          exit 0;
          }

}

But when i run my meetme conf:
Created MeetMe conference 1023 for conference ‘1234’
– Playing ‘conf-onlyperson’ (language ‘en’)
– Launched AGI Script /usr/share/asterisk/agi-bin/conf-background.agi
– AGI Script conf-background.agi completed, returning 0
– Hungup ‘Zap/pseudo-1006318859’
– Executing Hangup(“SIP/juan-0819b4a8”, “”) in new stack

The zaptel hang up me!

I have asterisk 1.2 and a Zaptel card X100

Why i receive the hangup??

Thanks guys

== Parsing ‘/etc/asterisk/meetme.conf’: Found
– Created MeetMe conference 1023 for conference ‘1234’
– Playing ‘conf-onlyperson’ (language ‘en’)
– Launched AGI Script /usr/share/asterisk/agi-bin/conf-background.agi
AGI Tx >> agi_request: conf-background.agi
AGI Tx >> agi_channel: SIP/juan-081a44b8
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1190736010.2
AGI Tx >> agi_callerid: 1003
AGI Tx >> agi_calleridname: Juan’s Phone
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 8600
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: meetme-test
AGI Tx >> agi_extension: s
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
– AGI Script conf-background.agi completed, returning 0
– Hungup ‘Zap/pseudo-1464998478’
– Executing Hangup(“SIP/juan-081a44b8”, “”) in new stack