Click here to Skip to main content
12,954,672 members (55,012 online)
Click here to Skip to main content
Add your own
alternative version


31 bookmarked
Posted 23 Aug 2006

Cisco IP Phone Services

, 23 Aug 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
A small example on how to produce content for Cisco IP Phones in ASP.NET.

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.

You may also be interested in...

Comments and Discussions

QuestionParser Error during running this sample. Pin
Member 105728916-Feb-14 0:30
memberMember 105728916-Feb-14 0:30 
QuestionHow i can get the emulator Pin
abdsalamhajjar8-Apr-11 23:22
memberabdsalamhajjar8-Apr-11 23:22 
GeneralAny dll must add to my reference Pin
abdsalamhajjar8-Apr-11 1:13
memberabdsalamhajjar8-Apr-11 1:13 
Questionfree download cisco ip services? Pin
evgkiriloff16-Dec-10 20:40
memberevgkiriloff16-Dec-10 20:40 
Generalsip dialer Pin
dan rogy19-Sep-10 9:41
memberdan rogy19-Sep-10 9:41 
GeneralMy vote of 1 Pin
Aussie Ausbourne8-Aug-10 22:52
memberAussie Ausbourne8-Aug-10 22:52 
Questionhow to listen events?? Pin
umurlu11-Mar-10 21:50
memberumurlu11-Mar-10 21:50 
AnswerRe: how to listen events?? Pin
umurlu22-Mar-10 1:53
memberumurlu22-Mar-10 1:53 
QuestionHelp for Small XML application -Cisco IP telephony Pin
learner.1125-Nov-09 3:49
memberlearner.1125-Nov-09 3:49 
Questionusing in visual studio,but i don't know which dll i should add, [modified] Pin
Evelen2-Nov-09 17:10
memberEvelen2-Nov-09 17:10 
GeneralEnvoyer un message texte via une page web Pin
TonyMontana29-May-08 21:19
memberTonyMontana29-May-08 21:19 
GeneralRe: Envoyer un message texte via une page web Pin
Guillaume Gros31-May-08 11:21
memberGuillaume Gros31-May-08 11:21 
Generalfile directories Pin
yaozhong8-May-08 15:46
memberyaozhong8-May-08 15:46 
GeneralRe: file directories Pin
Guillaume Gros9-May-08 4:26
memberGuillaume Gros9-May-08 4:26 
QuestionEnglish emulator needed Pin
yaozhong6-May-08 14:43
memberyaozhong6-May-08 14:43 
AnswerRe: English emulator needed Pin
Guillaume Gros6-May-08 18:54
memberGuillaume Gros6-May-08 18:54 
GeneralRe: English emulator needed Pin
yaozhong6-May-08 19:15
memberyaozhong6-May-08 19:15 
GeneralRe: English emulator needed Pin
Guillaume Gros6-May-08 19:41
memberGuillaume Gros6-May-08 19:41 
GeneralRe: English emulator needed Pin
Guillaume Gros6-May-08 19:46
memberGuillaume Gros6-May-08 19:46 
GeneralRe: English emulator needed Pin
yaozhong7-May-08 14:57
memberyaozhong7-May-08 14:57 
GeneralRe: English emulator needed Pin
Guillaume Gros9-May-08 4:23
memberGuillaume Gros9-May-08 4:23 
Question[Message Deleted] Pin
tabariz4-Apr-08 1:10
membertabariz4-Apr-08 1:10 
GeneralRe: I need help with the cisco SDK Pin
Guillaume Gros7-Apr-08 7:59
memberGuillaume Gros7-Apr-08 7:59 
NewsNew IP Phone Emulator! Pin
jesusmm20-Feb-08 23:06
memberjesusmm20-Feb-08 23:06 
GeneralDB connection fails Pin
noka0315-Apr-07 14:08
membernoka0315-Apr-07 14:08 

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

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

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