Custom XML IP Phone Services for the UC500 and Cisco Unified Call Manager Express
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>
- Printer-friendly version
- Login or register to post comments


Comments
Ip
And how could one ge a copy of tyhe scrip ? don't jus keep it to yourself please Voip Telephones have been troubeling me for some time i have been trying to set up a gateway
Cameras on Cisco Phones
I followed the directions on this site: http://hq.ipas.nl/showthread.php?p=34#post34
And got it running not only axis cameras but also on NetBotz and Sony IPELA cameras... It was difficult to get the linux server built right... I used UBUNTU on a VMWARE server
Email me if your intrested in a copy of the Virtual Server... I could change the pwds and IPs and post it as a torrent...
Does anyone know if it is possible to add to this script and make the XML object on the phone refresh the image every second or so instead of just having a still image?
Axis and other camera on 7970 phone
If you want to use an ip camera ( Axis ) on an 7970 phone.. check out this article:
http://hq.ipas.nl/showthread.php?p=34#post34 It contains a useful script.
Grtz
Ipas
Thank you for the ideas
I always looked to buy a multitask mobile phone because it is very useful for me as a businessman. My brother is a businessman. He always going around the world for his businesses. So he always looking to buy a Business VoIP phone.my brother has Business VoIP and he got lot of advantage from it. I m also looking forward buy that one
IP Camera on Cisco phone
rtomoham, any update on that script you were working on? I would like to get a copy to look over. I have a different model ip camera, but the mods should not be difficult. I am willing to make a contribution to help cover your costs.
Thanks. tim@geddings.net
XML Error[4]: Parse Error
I keep getting this error with a valid XML document, sent as text/xml, with a 7960G IP phone.
I'm using the Services button, which pulls up a valid menu.xml object. The error occurs when I then push 1 for a custom phone directory, currently named test.xml in the URLServices directory.
Test.xml has 32 entries and is a valid CiscoIPPhoneDirectory object.
Does the Services button have to be configured in Call Manager 4.1 to accept a CiscoIPPhoneDirectory object?
Solved??
Hi Ben,
Just a quick question.. did you solved the issue with the xml parse error ???
because having the same problem overhere... im using a apache webserver,that is the problem with an iis webserver no problems...however...i also want to use php for some nice script on this site too.. so that's why i installed apache and php...
Did you also using apache? or a different webserver? and if you have the solutions can you perhaps tell me how you solved it?
Thanks.. Ken
phone-xml.berbee.com/menu.xml
I've found a way to add an "extra" tab under the Services option of a phone connected to UC520.
The answer was to build an ephone template for your phone(s) that looks like this.
ephone-template 16
url services 1 http://phone-xml.berbee.com/menu.xml NewsWeather
softkeys idle Redial Newcall Cfwdall Pickup Gpickup Dnd Login
softkeys seized Cfwdall Endcall Redial Pickup Meetme Gpickup Callback
softkeys connected Hold Endcall Trnsfer TrnsfVM Confrn ConfList RmLstC Acct Park
!
(Line-wrap provided at no extra charge)...
Naturally, your mileage may vary...
NEED HELP!
hi guys, i have a XML Parse Error 4 on this script. can anyone please explain what is wrong with my implementation?
MY senoir project is depend on this and if anyone know how to fix it please let me know. Please help!
Need URGENT Help
I need to know a list (for example, button, textbox, .....) that could be used in Cisco IP Phone Services Application.
Somebody please help me.
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.
XML Error [4]: Parse Error
In following this older thread, I've come up with what appears to be the same trouble others have had.. Specifically the named Error 4 Parse error.
I've used Cisco's config example, as well as others' and I still haven't found a successful 'menu.xml'.
I've used Several servers, including IIS and Apache, and according to each config, I'm service up XML properly, according to the logs each is serving up the 'menu.xml' file successfully, (I get a 200 return from Apache), but still no joy.
What chicken-bone have I not shook at the web server? What makes my file not parse for cisco when it passes every other test I can find?
Thank you...
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?
XML Script
Hi,
Would it be possible to get a copy of the script to see how it work's? I have an Axis 221 Network camera and would like to try sending pictures to my CME phones.
Thanks.