Berbee has some example XML services that are free to use at http://www.berbee.com/public/berbeesoftware/XMLFree.aspx
The problem is that one cannot simply add a service to the url services: a new service always replaces the current service. That why you have to create a custom menu.xml file on your webserver if you still want to use VoiceView Express. (The instructions on Berbee's site are for full blown Call Manager.)
Here's an example menu that I use in demo's for the UC520 .
Below file is menu.xml, and it's available on http://192.168.10.2/menu.xml (this is only available on the LAN). By pointing url services to this url, the menu is displayed, and the user gets the choice of three options.
For completeness, I've included my url services line under telephony-service.
url services http://192.168.10.2/menu.xml
Please make sure that your webserver presents the xml file as text/xml.
HTH,
Rober.t
<?xml version="1.0" encoding="utf-8" ?>
<CiscoIPPhoneMenu>
<Title>My XML Services</Title>
<Prompt>Please make your selection.</Prompt>
<MenuItem>
<Name>Axis camera</Name>
<URL>http://192.168.10.2/camera.asp</URL>
</MenuItem>
<MenuItem>
<Name>VoiceView</Name>
<URL>http://10.1.10.1/voiceview/common/login.do</URL>
</MenuItem>
<MenuItem>
<Name>Weather, News & Stocks</Name>
<URL>http://phone-xml.berbee.com/menu.xml?opts=13456</URL>
</MenuItem>
</CiscoIPPhoneMenu>
Menu.XML and Apache
I set up this, but was getting a XML Parse error 4.
It turned out to be that an Apache WWW Server default install does not return the correct mime header for XML.
Edit ./conf/mime.types
Locate text/xml in the list.
Add the extension xml to it.
This solved the problem straight away.
menu.xml file and Apache - &
AS a heads up, the version of Apache that I use wasn't happy with the & symbol (so I replaced it wit and). That got the Parse error 4 to go away.
Also as pointed out elsewhere by beowulf, you want to setup the DNS on the phones using the following commands.
UC520#conf t
Enter configuration commands, one per line. End with CNTL/Z.
UC520(config)#ip dhcp pool phone
UC520(dhcp-config)#dns-server 63.203.35.55
UC520(dhcp-config)#exit
UC520(config)#exit
UC520#wr mem
Regarding restaring telephony-services
Dear sir:
How can I restart telephony services without effecting all IP Phones through command line after replacing url services?
Sincerely,
Islam
Configuring for Direct Inward Dialing over ISDN PRI
Am Using a 2851 router. Have configured E1 for voice over ISDN PRI but the problem is I cannot provide Direct inward dials for specific stations.
Could someone help me out?
I would really appreciate.
Rodgers
Axis camera on Cisco Phone
Thanks for the sample XML menu! Nicely done. I'm interested to learn how to display an Axis camera image on the phone. I see the Axis Camera menu item points to camera.asp on your web server rather than the Axis camera itself.
-cypressmn
I have followed these
I have followed these instructions but no matter what I do I am getting XML Parse Error 4 or something like that. Am I missing something?
George
Parse Error 4
I am running into the same problem. If I point my phone at the Berbee menu using "url services http://phone-xml.berbee.com/menu.xml" and it all runs just fine. If I try to point at my version of menu.xml, I get parse error 4. I think the problem is where the file is being served from. If the mime type is application/xml instead of text/xml on that web server, then you get the parse error 4. As I understand it Apache uses application xml as the default and most of the web servers out in the Internet are free Apache servers. I am trying to find a web server that I can put my menu.xml that uses mimetype text/xml to test my theory.
If I can not find a server my next test when I get some time is to put the phone on a shared hub with a protocol analyzer and see what the mime type that is actually being sent with the Berbee version that works and my version that does not work. Probably won't get to that for a couple of weeks.
Mike.
Hi cypressmn, As the Axis IP
Hi cypressmn,
As the Axis IP camera does not provide png images (which is what is required for display on a Cisco IP phone), I've added a script on my webserver that does the following:
- it takes a jpg image from the Axis, by browsing to
http://<Axis-ip>/jpg/image.jpg;- converts that jpg to png (through ImageMagick);
- presents an xml file that instructs the IP phone to display the png image.
Currently, I'm working on developing a similar script for a Linksys IP camera. Will post a full description once I've completed that.
Here's the xml code that the script produces. For a detailed explanation, refer to Cisco Unified IP Phone Service Application Development Notes.
<CiscoIPPhoneImageFile><URL>http://192.168.10.2/pngviewer/image.png</URL><SoftKeyItem><Name>Refresh</Name><URL>http://192.168.10.2/camera.asp</URL><Position>2</Position></SoftKeyItem><SoftKeyItem><Name>Exit</Name><URL>SoftKey:Exit</URL><Position>3</Position></SoftKeyItem></CiscoIPPhoneImageFile>Webcam
Can you post o email me the camera.asp script you create to see how it works? Thank you. My email is edenon@gmail.com
Axis Cameras?
What model of Axis IP Camera are you using?