Open overhead paging-play sound file -then talk

Version 1
    This document was generated from CDN thread

    Created by: Greg Dowdy on 16-08-2011 01:37:52 PM
    I am muddling through a cisco phone app (I am normally the janitor, not a programmer) that will open a connection to the overhead paging system, play an alert tone that changes with the situation, then allows the app instigator to speak after the tone.
     
    I have created a menuing system that allows the user to pick the alert tone, weather alert, hospital code blue, etc.
    At that point the connection overhead is opened with:
     
    <%@ Language=JavaScript %>
    <%
    mydigits="60";
    mMessage1="60";
    Response.Buffer = true;
    Response.ContentType = "text/xml";
    Response.Write("<CiscoIPPhoneExecute>\r\n");
    Response.Write("<ExecuteItem URL=\"SendDigits:"+mydigits+":1\"/>\r\n");
    Response.Write("</CiscoIPPhoneExecute>\r\n");
    Response.Flush();
    %>
     
    This all works swimmingly. At that point, what is the best way to play the soundfile, or is this even possible? A working code snipet would help.
    I set one of the alert tones as a multicast stream on the CM at 239.1.1.1:16384, but am having trouble playing the stream. Can this even be done over the open connection? I read where the port needs to be greater than 20xxx. Is this true?
    Is tftp a better method? Help is appreciated.

    Subject: RE: Open overhead paging-play sound file -then talk
    Replied by: Greg Dowdy on 24-08-2011 04:28:18 PM
    I am muddling through a cisco phone app (I am normally the janitor, not a programmer) that will open a connection to the overhead paging system, play an alert tone that changes with the situation, then allows the app instigator to speak after the tone.
     
    I have created a menuing system that allows the user to pick the alert tone, weather alert, hospital code blue, etc.
    At that point the connection overhead is opened with:
     
    <%@ Language=JavaScript %>
    <%
    mydigits="60";
    mMessage1="60";
    Response.Buffer = true;
    Response.ContentType = "text/xml";
    Response.Write("<CiscoIPPhoneExecute>\r\n");
    Response.Write("<ExecuteItem URL=\"SendDigits:"+mydigits+":1\"/>\r\n");
    Response.Write("</CiscoIPPhoneExecute>\r\n");
    Response.Flush();
    %>
     
    This all works swimmingly. At that point, what is the best way to play the soundfile, or is this even possible? A working code snipet would help.
    I set one of the alert tones as a multicast stream on the CM at 239.1.1.1:16384, but am having trouble playing the stream. Can this even be done over the open connection? I read where the port needs to be greater than 20xxx. Is this true?
    Is tftp a better method? Help is appreciated.


     
    More info:
    <%@ Language=JavaScript %>

    <%

    mywigits="analog1.raw";
    mMessage1="chime.raw";
    mMessage2="analog2.raw";

    serverIP = Request.ServerVariables("LOCAL_ADDR");

    Response.Buffer = true;

    Response.ContentType = "text/xml";






    Response.Write("<CiscoIPPhoneExecute>\r\n");
    Response.Write("<ExecuteItem URL=\"Play:"+mywigits+"\"/>\r\n");
    Response.Write("<ExecuteItem URL=\"Play:"+mMessage1+"\"/>\r\n");
    Response.Write("<ExecuteItem URL=\"Play:"+mMessage2+"\"/>\r\n");
    Response.Write("</CiscoIPPhoneExecute>\r\n");

    Response.Flush();

    %>
     
    Plays the raw files off the server via tftp, but if you code to dial the number first, the browser loses focus and will not play the raw files.
    I am fooling with: Open connection
                              Delay,
                              Play file
     
    but not having much luck.