Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Bug with InputItem and 7940g phones

Apologies for the length of post, but it was the shortest I could make that still demonstrated the problem.

Which is, that softkeys for navigating to an url don't work from within a <CiscoIPPhoneInput> page.

The behaviour I’m seeing from the included example is that from the main page navigating to the test page with the “Works” button works fine, if however you navigate to the input page with the “Input” button then try navigating to the same test page as before, but with the “Broken” button the phone displays a blank screen with a cancel button on.

The functionality I was attempting to achieve when this bug cropped up was to present the user with an input box for a phone number, but with a softkey that would take them to a menu of predefined contacts.

Please could someone try the following pages, to confirm that it is not just me!

Cheers,

Duncan.

Note: the following pages need to be cut and created in the IPPhoneServices\PersonalDirectory

------ cut: xmlTestInput.asp ------

<%@ Language=javascript%>

<!-- #include file="xmlPDDefines.asp" -->

<!-- #include file="xmlGlobals.asp" -->

<%

Response.Write("<CiscoIPPhoneInput>");

Response.Write("<URL>" + urlText + "</URL>");

Response.Write("<InputItem>");

Response.Write("<DisplayName>Test</DisplayName>");

Response.Write("<QueryStringParam>test</QueryStringParam>");

Response.Write("</InputItem>");

Response.Write(generateSoftKey("Submit", "SoftKey:Submit", "1"));

Response.Write(generateSoftKey("Broken", urlText, "2"));

Response.Write("</CiscoIPPhoneInput>");

%>

------ cut: xmlTestText.asp ------

<%@ Language=javascript%>

<!-- #include file="xmlPDDefines.asp" -->

<!-- #include file="xmlGlobals.asp" -->

<%

var szQueryString = makeSafeHttpString(Request.QueryString.Item)

Response.Write("<CiscoIPPhoneText>\n");

Response.Write("<Text>QS:" + szQueryString + "</Text>");

Response.Write(generateSoftKey("Main", urlMain, "1"));

Response.Write("</CiscoIPPhoneText>\n");

%>

------ cut: xmlTestMain.asp ------

<%@ Language=javascript%>

<!-- #include file="xmlPDDefines.asp" -->

<!-- #include file="xmlGlobals.asp" -->

<%

Response.Write("<CiscoIPPhoneText>");

Response.Write("<Text>Select a Menu</Text>");

Response.Write(generateSoftKey("Input", urlInput, "1"));

Response.Write(generateSoftKey("Works", urlText, "2"));

Response.Write("</CiscoIPPhoneText>");

%>

------ cut: xmlGlobals.asp ------

<%

Response.Expires = -1;

var urlMain = getBaseURL() + "xmlTestMain.asp";

var urlInput = getBaseURL() + "xmlTestInput.asp";

var urlText = getBaseURL() + "xmlTestText.asp";

function generateSoftKey(szLabel, szUrl, szPos)

{

var szRet = "<SoftKeyItem>";

szRet = szRet + "<Name>" + szLabel + "</Name>";

szRet = szRet + "<URL>" + szUrl + "</URL>";

szRet = szRet + "<Position>" + szPos + "</Position>";

szRet = szRet + "</SoftKeyItem>";

return szRet;

}

%>

4 REPLIES
Silver

Re: Bug with InputItem and 7940g phones

What release of CallManager are you running this on? (ie phone load).

This works in a CM 3.3(3) environment. I had to make a couple quick changes in order to get it to run, as you didn't include the xmlPDDefines.asp document. So I removed the inclusion of that file, removed the call to makeSafeHttpString() and just referenced the querystring itself, replaced the call to getBaseURL() with the actual base url, and added a contenttype = text/xml to each page.

In any case, it works here. It could be a problem with your specific implementation (something to do with the xmlPDDefines.asp doc? the makeSafeHttpString function?), or perhaps a bug affecting your particular phone load. I assume that you specify the content type somewhere (probably in the xmlPDDefines.asp)?

(Note: I tried it on a 7960, not a 7940, but there should be no differences between the two platforms).

New Member

Re: Bug with InputItem and 7940g phones

Thanks for trying it... I'm using a CM v3.1 I thought the xmlPDDefines.asp file came as part of the CM release as it has (c)2001 cisco at the top, either way the only functionality it provides is:

Response.ContentType = "text/xml";

Response.Buffer = true;

and the makeSafeHttpString, getBaseURL functions, so your modifications shouldn't have changed anything...

I suspect the problem is with the phone, as the CallManager is not realy doing anything, just serving web pages.

Interesting that it works with 7960's though, perhaps I need a firmware update, here are the numbers my phone reports, are they current?

App Load ID: P00303010107

Boot Load ID: PC03C300

Version: 3.1(1.7)

Cheers,

Duncan.

New Member

Re: Bug with InputItem and 7940g phones

Found it! There is already a bug noted and fixed in firmware: P00303030303

CSCdx71413: A URL in the URL field of a custom SoftKeyItem in a CiscoIPPhoneInput object does not work.

Which is almost exactly what I typed in the useless Cisco search engine before I started this thread.

Duncan.

Silver

Re: Bug with InputItem and 7940g phones

Thanks for reporting back on the bug! Good to know...

108
Views
8
Helpful
4
Replies
CreatePlease to create content