#!/usr/local/perl5/bin/perl5
# Edit the line above, to point at your local installation of Perl5,
# then put this file into your cgi-bin directory, so it can be
# accessed by the VXML interpreter.
# ***********************************************************************
# * BeVocal Sample Code *
# * (C) Copyright BeVocal, Inc. 2003, All rights reserved. *
# * *
# * This Sample Code is provided for your reference purposes, and *
# * carries no warranty whatsoever. Use of this code is restricted to *
# * use in connection with the BeVocal Cafe developer's program. *
# * BeVocal disclaims and excludes any and all warranties of *
# * merchantability, title and fitness for a particular purpose. *
# * BeVocal does not warrant that the software will satisfy your *
# * requirements, or that the software is without defect or error. *
# * You are using the software at your own risk. *
# ***********************************************************************
use CGI;
use Cwd;
use File::Basename;
use Time::localtime;
# ---------------------------------------------------------------------
# These are here for debugging, in case you need more information
# about exactly how the parameters were passed in.
if (defined($ENV{'REQUEST_METHOD'}))
{
$method = $ENV{'REQUEST_METHOD'};
}
if (defined($ENV{'CONTENT_TYPE'}))
{
$content_type = $ENV{'CONTENT_TYPE'};
}
if (defined($ENV{'CONTENT_LENGTH'}))
{
$content_length = $ENV{'CONTENT_LENGTH'};
}
# Go ahead and print the HTTP headers here,
# because we need them no matter what happens
print "Content-type: application/voicexml+xml\n";
print "\n";
print "\n";
print "\n";
print "\n";
print " \n";
print "\n";
}
sub error($) {
my ($error) = @_;
print " Error. $error\n";
print_footer();
exit 0;
}