Vxml , using using post to save the audio file to server using php

Posted on 2005-04-26
Last Modified: 2013-11-19
  I am working on cisco  voice gateway and all i need to is post an audio file which I save on the local RAM at the gateway to my server (IIS 5.0)

the code for submit is
<submit next="http://IPaddrXXX:portXXX/xml/loadsound.php" namelist ="myrec" method="post" enctype="multipart/form-data"/>
the audio file is being saved as myrec.

My loadsound.php goes as follows:-
 $msg = "";
$code = 1;
if (is_uploaded_file($tmpFile))
  copy($tmpFile, sprintf("%s",$wavfile));
  $msg = "audio saved";
  $code = 0;
  $msg = "unable to save audio";
 $to = "";
   $from = "";
    $subject = "This is a test email";
    $message = "Dear John,\n\nThis is a fake email, I hope you enjoy it.\n\nFrom Jane.";

    $headers  = "From: $from\r\n";

    $success = mail($to, $subject, $message, $headers);
    if ($success)
        echo "The email to $to from $from was successfully sent";
        echo "An error occurred when sending the email to $to from $from" ;  

But What is happening is that even the php script is not being invoked since I do not recieve an email as it should
But if i use
<goto next="http://IPaddrXXX:portXXX/xml/loadsound.php">
It calls the script and sends me a mail.
So the paths and IP addresses,portno. all are fine.
Some problem with POST. Am I doing something wrong while posting it? At times I even get a http 503 .
Question by:blinker82
    LVL 5

    Accepted Solution

    I take it that you're sure your email works from other scripts...

    What happens if you POST to that php file from a normal html page?  Maybe try creating a dummy html page that uploads a file to this page and "fakes" what your VXML script would be doing?

    Just a thought.  I always helps to narrow down the exact source of your problem.

    Author Comment

    ya Doug,
    I did that........and it works fine.
    But when I call it from my vxml script..........nothing happens.........
    Somewhere in an older cisco manual I did read that posting an audio file does not work for PHP using IIS 5.0,
    which sounded strange to me.
    Any insights there?
    LVL 3

    Expert Comment

    check this may help.

    Here is some explantain about the 503 error.

    hope this help.s

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now