cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
110
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Greg Dowdy on 13-05-2010 01:25:55 PM
Hello All,
 
I am writing  an application to toggle hospital  room status (clean, dirty, occupied, etc
and wish to integrate the cisco phones with the app.
Having trouble figuring out how to post a variable to a querystring and send it
to the server.(Flying blind with limited directions)
 
The simplified menu: menu.xml
  <?xml version="1.0" encoding="ISO-8859-1" ?>
<CiscoIPPhoneInput>
<Title>Change Room Status</Title>
<Prompt>Enter Room Bed and Status</Prompt>
<URL>http://server/ciscoapps/room/products.asp?Products=status</URL>
<InputItem>
<DisplayName>Room Number</DisplayName>\r\n
<QueryStringParam>room</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>N</InputFlags>
</InputItem>
<InputItem>
<DisplayName>Bed Number</DisplayName>\r\n
<QueryStringParam>bed</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>N</InputFlags>
</InputItem>
<InputItem>
<DisplayName>Status Code</DisplayName>\r\n
<QueryStringParam>code</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>A</InputFlags>
</InputItem>
</CiscoIPPhoneInput>
 
This menu Posts to products.asp:
<%
    DIM strProducts
    strbed = Request.QueryString("BED")
    strroom = Request.QueryString("room")
    strcode = Request.QueryString("code")
    stri = "I"
    mMessage1 = stri&strroom&strbed&strcode
    mMessage = "Submitted " &  strroom & " bed " &  strBed & " to status " & strcode
  
    Response.Write mMessage
    %>
Code Submitted
<%
Response.Write mMessage1
( Delay then mystery code to post mMessage 1 to a server)
%>
 
After writing the status change to the phone, I want to delay a bit and then send the variable mMessage1 to a query string,
to actually toggle room status, Having trouble getting there and help is appreciated. Cant seem to get it to work correctly.
Response.Write("<URL>http://kyinap000044/StatusTracker/ipPhone.cfm?status=string</URL>\r\n")
will work if status is set to the actual code that toggles the room status, but am having trouble getting MMessage1 into string
and sending after a delay.  Response.Write("<URL>http://kyinap000044/StatusTracker/ipPhone.cfm?status=I4151D</URL>\r\n") which tells the cold fusion back end to Input room 415 bed 1 to status D (Dirty)
will work everytime. Just cant delay and get MMessage1 into the querystring status.
 
Have tried response.addheader, but either not getting the syntax right or something. Thanks in advance.

Subject: RE: Basic help
Replied by: David Staudt on 13-05-2010 02:57:42 PM
Not completely clear on the flow, but you can add this HTTP header to the response to trigger a 5 second timed refresh to your designated URL+param:
 
<pre class="de1">Refresh: 5; url=http://www.example.com?param=value
</pre>

Subject: RE: Basic help
Replied by: Greg Dowdy on 04-06-2010 12:42:20 PM
I could never get the <pre class="de1">Refresh: 5;
url=http://www.example.com?param=value

</pre>to work correcly on the 7940's we have.
 
It seems however that Response.AddHeader "Refresh", "5;URL=http://kyinap000044/StatusTracker/ipPhone.cfm?status=" & Server.URLEncode(mMessage1)  will work.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links