Click here to Skip to main content
12,398,000 members (46,227 online)
Click here to Skip to main content
Add your own
alternative version

Stats

150.5K views
1.6K downloads
30 bookmarked
Posted

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

Introduction

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));
Response.Write(t.ToString());

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:

<CiscoIPPhoneText>
<Title>Hello World</Title>
<Prompt>Hello World</Prompt>
<Text>Hello World</Text>
<SoftKeyItem>
<Name>Hello</Name>
<URL></URL>
<Position>1</Position>
</SoftKeyItem>
</CiscoIPPhoneText>

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...

History

  • 2006-Aug-23: v0.1.

License

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

Share

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 http://www.sciodev.com 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 asp.net 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 
Generalgetting phone number Pin
Member #2112905-Feb-07 7:03
memberMember #2112905-Feb-07 7:03 
AnswerRe: getting phone number Pin
PaulHarris6-Feb-07 13:42
memberPaulHarris6-Feb-07 13:42 
GeneralPhone settings Pin
JorisBijnens25-Jan-07 22:35
memberJorisBijnens25-Jan-07 22:35 
GeneralRe: Phone settings Pin
Guillaume Gros26-Jan-07 4:43
memberGuillaume Gros26-Jan-07 4:43 
AnswerRe: Phone settings Pin
PaulHarris6-Feb-07 13:45
memberPaulHarris6-Feb-07 13:45 
GeneralRe: Phone settings Pin
pocjoc8-May-09 2:56
memberpocjoc8-May-09 2:56 
QuestionWhere can i get the IP Phone emulator? Pin
ccastillouaeh5-Jan-07 11:55
memberccastillouaeh5-Jan-07 11:55 
AnswerRe: Where can i get the IP Phone emulator? Pin
Guillaume Gros5-Jan-07 12:14
memberGuillaume Gros5-Jan-07 12:14 
AnswerRe: Where can i get the IP Phone emulator? Pin
PaulHarris6-Feb-07 13:47
memberPaulHarris6-Feb-07 13:47 
QuestionRe: Where can i get the IP Phone emulator? Pin
Nagarajan Arunachalam7-Sep-07 20:07
memberNagarajan Arunachalam7-Sep-07 20:07 
QuestionHelp me please? Pin
tweetyq146-Nov-06 22:17
membertweetyq146-Nov-06 22:17 
AnswerRe: Help me please? Pin
Guillaume Gros13-Nov-06 6:45
memberGuillaume Gros13-Nov-06 6:45 
QuestionError Pin
GoldFishRock19-Oct-06 22:48
memberGoldFishRock19-Oct-06 22:48 
AnswerRe: Error Pin
Guillaume Gros20-Oct-06 4:53
memberGuillaume Gros20-Oct-06 4:53 
GeneralRe: Error Pin
CatoGonzalez17-Apr-07 10:35
memberCatoGonzalez17-Apr-07 10:35 
GeneralRe: Error Pin
JH Foo31-Jul-07 22:05
memberJH Foo31-Jul-07 22:05 
GeneralGreat work, but I wonder.. Pin
Moataz M. Medhat6-Sep-06 5:31
memberMoataz M. Medhat6-Sep-06 5:31 
GeneralRe: Great work, but I wonder.. [modified] Pin
Guillaume Gros20-Oct-06 4:48
memberGuillaume Gros20-Oct-06 4:48 

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.

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