VIcidial version: 2.14b0.5
Asterisk: 13.25.0
OS: Ubuntu 14.04 EC2 AWS
Scratch install
So I configured 3 Trunks and was not working, I have breaking my head for days why incoming calls were not working, messed a lot with different dialplan options but none seemed to work. So I began to mess with the AGI script as I saw (had to purchase a non e164 phone number to discard was not it (+) the problem).
So I was doing some prints while debbuging the script in mention until arrived to where the log file agi.out is supposed to be created.
If I execute the script from outside asterisk (linux command line) it does create the file and print some dummy info), however inside the Asterisk itself it just don't do a thing...it breaks, and therefore doing nothing for the routing rules. So I went and commented out the lines:
- Code: Select all
sub agi_output
{
if ($AGILOG >=2)
{
### open the log file for writing ###
#open(Lout, ">>$AGILOGfile")
# || die "Can't open $AGILOGfile: $!\n";
#print Lout "$now_date|$script|$agi_string\n";
#close(Lout);
}
### send to STDERR writing ###
if ( ($AGILOG == '1') || ($AGILOG == '3') )
{print STDERR "$now_date|$script|$agi_string\n";}
$agi_string='';
}
sub did_output
{
if ($AGILOG >=2)
{
### open the log file for writing ###
#open(Dout, ">>$DIDLOGfile")
# || die "Can't open $DIDLOGfile: $!\n";
#print Dout "$did_string\n";
#close(Dout);
}
$did_string='';
}
and bam! began to work...not the Asterisk cli didn't show the Die message that is supposed to happen...why???
Any idea or what to do???
Thanks