Click here to Skip to main content
6,630,289 members and growing! (22,558 online)
Email Password   helpLost your password?
Web Development » ASP.NET » General     Intermediate License: The Code Project Open License (CPOL)

Cisco IP Phone Services

By Guillaume Gros

A small example on how to produce content for Cisco IP Phones in ASP.NET
Windows, .NET, ASP.NET, Visual Studio, Dev
Posted:23 Aug 2006
Views:64,681
Bookmarked:25 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
6 votes for this article.
Popularity: 3.24 Rating: 4.17 out of 5

1

2
2 votes, 33.3%
3
1 vote, 16.7%
4
3 votes, 50.0%
5

Sample Image - CiscoIPPhoneServices.jpg

Introduction

The new Cisco IP Phones (7920, 7940, 7960, 7970, 7971) all supports showing content located on a webserver. This content needs to be formatted using Cisco proprietary format using XML. This article will walk you thru 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 have been 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 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 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:
"line1">
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 3 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 that :
<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 to get the screen shot?
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)

About the Author

Guillaume Gros


Member
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.
Occupation: Architect
Company: SCIO International, LLC
Location: Mexico Mexico

Other popular ASP.NET articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 34 (Total in Forum: 34) (Refresh)FirstPrevNext
Questionusing asp.net in visual studio,but i don't know which dll i should add, [modified] PinmemberEvelen18:10 2 Nov '09  
GeneralEnvoyer un message texte via une page web PinmemberTonyMontana22:19 29 May '08  
GeneralRe: Envoyer un message texte via une page web PinmemberGuillaume Gros12:21 31 May '08  
Generalfile directories Pinmemberyaozhong16:46 8 May '08  
GeneralRe: file directories PinmemberGuillaume Gros5:26 9 May '08  
QuestionEnglish emulator needed Pinmemberyaozhong15:43 6 May '08  
AnswerRe: English emulator needed PinmemberGuillaume Gros19:54 6 May '08  
GeneralRe: English emulator needed Pinmemberyaozhong20:15 6 May '08  
GeneralRe: English emulator needed PinmemberGuillaume Gros20:41 6 May '08  
GeneralRe: English emulator needed PinmemberGuillaume Gros20:46 6 May '08  
GeneralRe: English emulator needed Pinmemberyaozhong15:57 7 May '08  
GeneralRe: English emulator needed PinmemberGuillaume Gros5:23 9 May '08  
Question[Message Deleted] Pinmembertabariz2:10 4 Apr '08  
GeneralRe: I need help with the cisco SDK PinmemberGuillaume Gros8:59 7 Apr '08  
NewsNew IP Phone Emulator! Pinmemberjesusmm0:06 21 Feb '08  
GeneralDB connection fails Pinmembernoka0315:08 15 Apr '07  
Generalgetting phone number Pinmember8:03 5 Feb '07  
AnswerRe: getting phone number PinmemberPaulHarris14:42 6 Feb '07  
GeneralPhone settings PinmemberJorisBijnens23:35 25 Jan '07  
GeneralRe: Phone settings PinmemberGuillaume Gros5:43 26 Jan '07  
AnswerRe: Phone settings PinmemberPaulHarris14:45 6 Feb '07  
GeneralRe: Phone settings Pinmemberpocjoc3:56 8 May '09  
GeneralWhere can i get the IP Phone emulator? Pinmemberccastillouaeh12:55 5 Jan '07  
GeneralRe: Where can i get the IP Phone emulator? PinmemberGuillaume Gros13:14 5 Jan '07  
AnswerRe: Where can i get the IP Phone emulator? PinmemberPaulHarris14:47 6 Feb '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 23 Aug 2006
Editor:
Copyright 2006 by Guillaume Gros
Everything else Copyright © CodeProject, 1999-2009
Web18 | Advertise on the Code Project