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

Custom Speed Dial list not working.

I have created a directory that has corporate wide entries in it. The customer wanted a separate lists for all of his trucks and didn't want to build them as CCM users. So I created a asp page using vbscript that will search the file and return the results. However I have something wrong as the XML object is not displaying correctly. When the phone gets a response I see a page shows the xml object but it includes the tags in its display. So I see <CiscoIPPhoneDirectory> etc etc etc.

A code snippet is shown below that displays all my response objects. Can anyone show me what is wrong. I left out the search code for space purposes.

<%@ LANGUAGE="VBScript" %>

<%

Sub InitDir()

Response.Write ("<CiscoIPPhoneDirectory>")

Response.Write("<Title>")

Response.Write("Results")

Response.Write("</Title>")

Response.Write("<Prompt>")

Response.Write("sigh")

Response.Write("</Prompt>")

end sub

sub WriteDir(name,phone)

Response.Write("<DirectoryEntry>")

Response.Write("<Name>")

Response.Write (cstr(name))

Response.Write("</Name>")

Response.Write("<Telephone>")

Response.Write (cstr(phone))

Response.Write("</Telephone>")

Response.Write("</DirectoryEntry>")

end sub

sub CloseDir()

Response.Write("</CiscoIPPhoneDirectory>")

end sub

call InitDir()

Call WriteDir("Doe,John","1234")

call CloseDir()

%>

1 REPLY
Silver

Re: Custom Speed Dial list not working.

Add a contentype directive after your language directive to tell the phone to interpret the content as XML and not plain text:

<%@ LANGUAGE="VBScript" %>

<% Response.ContentType="text/xml" %>

92
Views
0
Helpful
1
Replies
CreatePlease to create content