I am trying to do the following
- Create a call file like
========== snippet ==============
callerid: “My ID” <*66>
======== end snippet =========
As can be see this call file will call up and then execute something like
which calls up the extension and then call the my_dev.agi script with the file name myfile.txt as an argument.
This all works great. This agi script basically does something along the lines
========= snippet ===========
print “STREAM FILE $myfile “0123456789”\n”;
print “GET DATA $myfile 15000 1 \n”;
my $result = ;
======== end snippet ===========
Now similar code works great when I enter the AGI script from the dial plan. However, when entering it from the call file I can for some reason not interact with the AGI script. What I mean to say is that the GET DATA line doesn’t read in my choice on the phone (DTMF) and instead times out.
Are there different file descriptors or something when an AGI script is initiated from a call file?
Any help is highly appreciated.
// Jonas Arndt