I can't active service


#1

Executing [3727007053@default:1] Answer("SIP/99.80.21.136-0000004b", "") in new stack -- Executing [3727007053@default:2] AGI("SIP/99.80.21.136-0000004b", "../urphone/go.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/../urphone/go.agi -- <SIP/99.80.21.136-0000004b>AGI Script ../urphone/go.agi completed, returning 0 -- Executing [3727007053@default:3] Hangup("Sip/99.80.21.136-0000004f", "") in stack Spawn extension (default, 3727007053, 3) exited non-zero on 'SIP/99.80.21.136-0000004e

I use langage Perl to connect with my message ; if i connect the will be like this code

Executing [3727007053@default:1] Answer("SIP/99.80.21.136-0000004b", "") in new stack -- Executing [3727007053@default:2] AGI("SIP/99.80.21.136-0000004b", "../urphone/go.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/../urphone/go.agi -- <SIP/99.80.21.136-0000004b>AGI Script ../urphone/go.agi completed, returning -1 -- Playing '../urphone/sound/urphone' (escape_digits=) (sample_offset 0)

and the script of go.agi

[code]#!/usr/bin/perl

use Asterisk::AGI;

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

$verbose = 1;

my $soupath = “…/urphone/sound/”;
###############################################
sub verbose
{
if (defined($verbose))
{
$AGI->verbose("@_", $verbose);
return(0);
}
}
##########################################################
#start
##########################################################
$AGI->stream_file($soupath.“urphone1”);
exit();
#################################################################################[/code]

i don’t konw what the problem !!! i use code g729 and the file to read him *.wav !!!