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