Introduction
Installing
Calling Script From the Phone
Searching the directory From The Phone

Introduction

I have hacked together some basic perl to make a script taht runs as a cgi-bin on a web server to return the phone number and names of a search of a directory for phone numbers on CISCO IP phones taht support XML. The script is very basic. The data searched/returned is contained in the script as a hash array.

I have written and tested this on a UNIX machine and tested it against CISCO 7940, 7960, 7970 and 7945 IP Phones



Installing

To install, place the script into the web servers cgi-bin directory anmd ensure that it is readable and executable by the user that the web-server runs as.

The script requires the PERL CGI.pm module to for processing and preparing HTTP requests and responses. If you do not already have it, it can be obtained from


Calling Script From The Phone

For a CISCO 796x/7940 IP Phone, in the SIPDefault or specific SIP config file add/changes the services URL to point to this script

services_url: "http://<webserver>/<path>/searchdirectory.pl EG :- services_url: "http://1.2.3.4/cgi-bin/rss2cisco.pl" For a CISCO 797x/7945 IP Phone, in the SEP config file add/change the services URL to point to this script

<servicesURL>http://196.22.67.196/cgi-bin/rss2cisco.pl</servicesURL> EG :- <servicesURL>http://1.2.3.4/cgi-bin/rss2cisco.pl"

Searching the directory From The Phone

On the phone, click the SERVICES button and enter some letters in the Name field taht may match a user or users in the directory and press the Submit Softkey. if there are any directory matches, they will appear.

NOTE :- The search returns at most 30 entries to prevent the phone from whining about too many entries in a directory list


Still haven't found what you are looking for (unlike U2) search
Google




Compiled By :- Nic Tjirkalli

nictjir@gmail.com
©2009 Nic Tjirkalli