Click here to Skip to main content
Click here to Skip to main content

Cisco IP Phone Services

By , 23 Aug 2006
Rate this:
Please Sign up or sign in to vote.

Sample Image - CiscoIPPhoneServices.jpg


The new Cisco IP Phones (7920, 7940, 7960, 7970, 7971) all support showing content located on a web server. This content needs to be formatted using the Cisco proprietary format using XML. This article will walk you through creating a small Hello World using the library I created.

Cisco SDK

If you take the time to open the SDK, you will see that if you want to create content, you basically have to write an XML file. For static content, this works pretty well, but if you want to create dynamic content using ASP.NET, a library would be useful. The library provided here is partially complete and you are welcome to send updates. The size of the screen being small, possibilities are limited but still the applications that can be developed are interesting. The SDK freely available from the Cisco website includes various examples (weather, stock, etc.) that will demonstrate the possibilities. Cisco SDK.

Using the Code

Now let's go and create our Hello World. First create an ASP.NET project and then add the DLL to your reference. Create a WebForm and delete all HTML from the ASPX file and leave only the first line (Page tag) at the top.

Your ASPX file should look like that:

<%@ Page language="c#" Codebehind="hello.aspx.cs" 
          AutoEventWireup="false" Inherits="IPPhone.hello" %>

Then in the Page_Load function, write the following:

Response.ContentType = "text/xml";
CiscoIPPhoneText t = new CiscoIPPhoneText("Hello World", 
                             "Hello World","Hello World");
t.AddSoftKey(new CiscoSoftKey("Hello","",1));

Here you first need to set the Content Type to XML and then you can use the CiscoIPPhoneText object of the library. Creating a new CiscoIPPhoneText will require three parameters: Title, Prompt, and Text. Once the object is created, you can then send it to the browser with a Response.Write. Optionally, you can add a soft key using the AddSoftKey method. Note: Please refer to the SDK documentation to see where those strings will be displayed.

Testing the Code

OK, now if you open this same page in your web browser, you can see an XML file that will look like:

<Title>Hello World</Title>
<Prompt>Hello World</Prompt>
<Text>Hello World</Text>

But how do we get the screenshot?

Well, unless you have a Cisco IP Phone, you will need to use an emulator; Aptigen is providing one. They have a trial version that will allow you to test your Hello World and get a screen just like the one above...


  • 2006-Aug-23: v0.1.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Guillaume Gros
Architect SCIO International, LLC
Mexico Mexico
I am french although I currently live in Mexico.
I have a master in electrical and computer engineering.
I am currently working for a software company named SCIO Consulting where I lead projects on the Microsoft platform.

Comments and Discussions

QuestionParser Error during running this sample. PinmemberMember 105728916-Feb-14 0:30 
QuestionHow i can get the emulator Pinmemberabdsalamhajjar8-Apr-11 23:22 
GeneralAny dll must add to my reference Pinmemberabdsalamhajjar8-Apr-11 1:13 
Questionfree download cisco ip services? Pinmemberevgkiriloff16-Dec-10 20:40 
Generalsip dialer Pinmemberdan rogy19-Sep-10 9:41 
GeneralMy vote of 1 PinmemberAussie Ausbourne8-Aug-10 22:52 
Questionhow to listen events?? Pinmemberumurlu11-Mar-10 21:50 
AnswerRe: how to listen events?? Pinmemberumurlu22-Mar-10 1:53 
QuestionHelp for Small XML application -Cisco IP telephony Pinmemberlearner.1125-Nov-09 3:49 
Questionusing in visual studio,but i don't know which dll i should add, [modified] PinmemberEvelen2-Nov-09 17:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 23 Aug 2006
Article Copyright 2006 by Guillaume Gros
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid