I'll post this to the entire group since a few are interested.  If you
have any detailed questions, I'd be glad to answer off-list.  I hate to
interrupt the "Lunch" thread.  ;^)

This PDF is a great resource for the XML language that the phones
understand.  The examples are not great, but it's a start.  The PDF is
from Cisco.

http://acelinkdev.evansville.edu/IPTelephony/CiscoIPPhoneServicesApplica
tionDevelopmentNotes.pdf

Skip to the chapter on "CiscoIPPhone XML Objects".  Then, the next good
chapter is "CiscoIPPhone XML Object Quick Reference".

Since our IPT services web site is not visible from the internet, I
copied the files to a temp location that you can view "out there".

DISCLAIMER: these pages are not Ray-proof.  Since we can limit what
devices have access to the IPT Services web site, internally, it is not
as necessary to validate input as much as if you were building a desktop
browser-based page.

http://acelinkdev.evansville.edu/iptelephony/

This first page is just a simple, single menu item.  We set this page up
as a phone service on a few phones.  If we decide to push this service
to all phones, I won't have to change anything in my code.  The phone
administrator will determine which phones receive this service.

Also, this page/menu, will be the start of all custom-built services.
This way, we don't have to add more than one service to every phone.  It
keeps the list of services nice and tidy.

This page, as with all other Cisco phone pages, outputs XML.  The
packets are usually small and easy-to-create.  In this page, I set the
screen title and prompt, then I add a single link (MenuItem) to the
page.

The phone user would select this link and be taken to this page:
http://acelinkdev.evansville.edu/IPTelephony/BirthDates/GroupedDates.cfm

This is the same XML packet as before, but with more items in the menu.
This page lists all dates and gives a count of how many people share the
birthday.

The phone user would select a link from this page and be taken to a page
similar to:
http://acelinkdev.evansville.edu/IPTelephony/Birthdates/BirthdayDate.cfm
?birthdate=1111  (watch the wrap)

(I removed some information from this page so that it's safer to post
here.)

The CFM source for the first page is simply:

<cfcontent type="text/xml" reset="yes"><cfoutput><CiscoIPPhoneMenu>
  <title>UE IPT Services</title>
  <Prompt>Select an item</Prompt>
  <MenuItem>
    <Name>Upcoming UE Birthdays</Name>
 
<URL>http://#cgi.server_name#/IPTelephony/BirthDates/GroupedDates.cfm</U
RL>
  </MenuItem>
</CiscoIPPhoneMenu></cfoutput>

The rest of the pages obviously perform more processing than this one.

That is pretty much the overview.  First, you find your requirements,
then you choose a CiscoIPPhonexxx XML object that best suits the
purpose.

These examples don't show how to program the soft-keys, but those are
just an optional part of the XML packet for each XML object.

The very first thing you need to do is create a simple menu item page.
Then, have your phone administrator create a service to which you can
subscribe.  This will not force the service on anyone unless they
stumble across it in their phone settings web site.  Even then, most
people won't know how to subscribe to it anyway.

Once you have the menu item page and have subscribed to the service on
your phone, you are ready to add other functionality.  If you want to
allow users to input data just use the CiscoIPPhoneInput XML object.
You can even control, to an extent, what type of input the phone will
accept.

Yes, the CiscoIPPhone stuff can be very fun and cool to create!
Although I haven't actually used all of the XML objects, I am glad to
help anyone with questions about the process.

M!ke

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get Instant Hacker Protection, Virus Detection, Antispam & Personal Firewall.
http://www.houseoffusion.com/banners/view.cfm?bannerid=62

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:181345
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to