!!! News !!!
Introduction
Installing
Calling Script From the
Phone
Searching the directory From The Phone
!!! NEWS !!!
The script has been updated nad now
- Provides online help
- Allows to search by number as well
- More comments
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. Most newer versions of perl ship with this
module already included by default but
if you do not already have it, it can be obtained from :-
CPAN
Change the entries in the hash array (called directory) to match your
user names and numbers.
The script returns match (completley or part thereof)
that match the search criteria entered. A limit of entries is returned as
the phone cannot handle a large number of entries to display. This limit
is controlled by the variable maxcount.
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:////searchdirectory.pl
EG :-
services_url: "http://1.2.3.4/cgi-bin/searchdirectory.pl"
For a CISCO 797x/7945 IP Phone, in the SEP config file add/change
the services URL to point to this script
http://196.22.67.196/cgi-bin/searchdirectory.pl
EG :-
http://1.2.3.4/cgi-bin/searchdirectory.pl"
Searching the directory From The Phone
On the phone, click the SERVICES button and either select :-
- Search
To search
- Help
For on-line help
When search either
enter some letters in
the Name field that may match a user or users in the directory or
some numbers in the Number field taht may match a user number.
press the Submit Softkey. if there are any directory matches, they
will appear.
NOTE :- The number of search result entries returned is limited 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
Compiled By :- Nic Tjirkalli
nictjir@gmail.com
©2009 Nic Tjirkalli