I have vxml file from which I am calling perl script, the perl script is very simple its just write on a text file. I am using voximal in asterisk to call the vxml file below is my vxml file.
<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<form>
<block>
<audio src="./audio/welcome.wav"/>
</block>
<record name="message" maxtime="30s" finalsilence="2s" dtmfterm="true">
</record>
<block>
<submit next="test.perl" enctype="multipart/form-data" method="post"/>
</block>
</form>
perl file
#! /usr/bin/perl
use strict;
use warnings;
open(my $fh, '>', 'report.txt');
print $fh "My first report generated by perl\n";
close $fh;
print "done\n";
dialplan
[from-twilio]
exten => _+1NXXXXXXXXX,1,Answer(200)
exten => _+1NXXXXXXXXX,n,Wait(1)
exten => _+1NXXXXXXXXX,n,Voximal(file:///home/ubuntu/voximal/test.vxml)
exten => _+1NXXXXXXXXX,n,Hangup()
when I dial a number I able to hear the welcome audio after that perl file is not calling, I checked the log inside /var/log/voximal/debug.log & vxml.log
it says :
Aug 14 09:50:21.56|0x7f37cca62700||0|EVENT|0|2|content=Error: error.badfetch ,test.perl
I tried everything, script, subdialog, submit tag with perl, python, php. I don't know whats happening any help is appreciated please be elaborate as I am beginner to voximal & asterisk.
`