Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Setup a live web cam on an Avaya IP phone. 5

Status
Not open for further replies.

phoneguy55

Programmer
May 25, 2005
2,596
0
36
US
How to Setup a live web cam on an Avaya IP phone:

I wanted to be able to view a live web cam on my 9640 Avaya IP phone. In theory this should work for any IP phone that supports WML and has a color display that will show a .jpg image.

Materials used:

1. Web cam. I picked the Logitech QuickCam Pro 5000. Any web cam should work.
2. A PC running as your file server. We’ll call this PC “file server” going forward. I used a Windows XP SP2 box with a static IP address. Avaya has a TFTP/HTTP/HTTPS file server that works great and it is free. It is called MV_IPTel. See link below. You will need to install this application on the PC and make sure that your IP phone can pull files from it. I won’t go into detail on how to set this up. If you are all ready using 9640’s or any other IP phone, you should have a one of these or something like it running already.


3. A PC to be used as a web server. We’ll call this PC “web server” going forward. I used a Windows XP SP2 box with a static IP address. I go over the setup of this box in detail later.
4. The Windows XP SP2 disk.

Let’s get started:

1. The hard drive on your web server is slow. We need to be able to take picture with the web cam and save it over and over very quickly. So we can either purchase a fast hard drive or set up a RAM disk. I chose to setup a RAM disk as it’s free.
2. To setup the RAM disk follow the instructions below. You will need to download 2 zip files and unpack them.


3. After successfully installing the RAM disk, your web server should now have a B: drive. Since this is RAM, you will loose everything in this drive when you shutdown the PC, but that doesn’t matter.
4. You now need to install the drivers that came with your web cam. This will be different for everyone. I just installed the drivers and none of the other garbage software that come with the web came. Your web cam should now be working. You can verify that by checking with the device manager in Windows XP.
5. We now need to install software that will take a picture using your web cam. I choose Windows Timershot due to it being a free download from the internet. See link below.


6. Timershot is very easy to configure. Set it to take a picture every 2 seconds. Set it to Default (No resizing). The file name will be pic.jpg and we will save in B:\
7. Apply the settings in Timershot. You should now be able to go to B: and see your web cam taking a picture every 2 seconds. If not, go back and find out why.
8. After you have confirmed that Timershot is taking pictures and storing them in B:\ we can shut it down for now.
9. I suggest that you read WML Server (MIME Types) Setup guide from Document # 16-300507. Link below


10. You will want to follow the instructions in WML Server Setup guide. I’ll highlight the 2 topics.
11. Install and Configure IIS. You will need the Windows XP SP2 disk for this.
12. Install and Configure Apache Web Server. Free download from the internet. I choose to use version 2.2.
13. You can now download some sample web pages from Avaya’s web site. See link below. If you put these files in the following file, see below, you should be able to redirect your IP phone to see them.

C:/Program Files/Apache Software Foundation/Apache2.2/htdocs


14. You should now be able to change your 46xxsettings.txt file on your file server so that:
SET WMLHOME SET WMLIDLEURI
Make sure you set these for the 9640 and not some other set type. 10.X.X.X is the IP address of your web sever. If you prefer to edit your DNS and do it that way, so be it. I didn’t.

15. When you reboot your IP phone, you should now be able to navigate to home.wml. If not, go back and fix it.
16. We need to reconfigure the Apache Web Server so that it uses B:\ as its default place to look for web files. By default, C:/Program Files/Apache Software Foundation/Apache2.2/htdocs is the directory used. To change this open httpd.txt. You should be able to find this by clicking start, all programs, apache HTTP server 2.2, configure apache server, edit the apache httpd.conf configuration file.
17. Once you have this file open we will need to make 4 changes.
1. Find: DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" and put a # in front of it.
2. On the next line add: DocumentRoot "B:/"
3. Find <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"> and put a # in front of it.
4. On the next line add: <Directory "B:/">
18. Save the file with the same name. Stop and restart the apache web server.
19. Now your 9640 IP phone should not see any web page. You will most likely see some type of error. That is fine as the web server is looking in B:\ and there is nothing there.
20. Open notepad and type the following:

<?xml version="1.0"?>

<wml>

<card id="Image" title="Image" ontimer="9600home.wml">
<timer value="5"/>
<p>
<img src="pic.jpg" alt="something broke"/>
</p>
</card>
</wml>

21. Save the file as 9600home.txt in my documents. This file is your web page. Very simply, it loads a picture and when the timer hits, reloads the web page.
22. Now you need to write down the DOS directory structure for my documents. In my case, mine is C:\Documents and Settings\my name\My Documents\. Yours may be different.
23. Open a new notepad and type the following:

cd c:\
xcopy “C:\Documents and Settings\my name\My Documents\9600home.wml” B:\

24. Save this file as copypage.txt in my documents. This will be the script that copy’s the web page to B: when the PC boots. Remember a RAM drive will delete everything in it upon reboot.
25. Now go a DOS prompt. Start, run, cmd. At the DOS prompt, type c:\
26. Hit enter. Navigate to C:\Documents and Settings\my name\My Documents\
27. Type dir
28. You should see the 2 txt files that we just make. Both need to be renamed. Type the following 2 commands follow each by the enter key.

Ren 9600home.txt 9600home.wml
Ren copypage.txt copypage.bat



29. If you type dir you should see the new files 9600home.wml and copypage.bat, if not go back and fix it.
30. Now click Start, all programs and look in your startup file. You want to put copypage.bat, Monitor Apache server, and Timershot in there.
31. We now need to go back to the file server and re-edit the following:

SET WMLHOME SET WMLIDLEURI

32. This will redirect us to the new web page.
33. Reboot the IP phone. It’s now looking for the new web page 9600home.wml in B:
34. Reboot the web server. Upon reboot Timershot will start taking pictures and storing them in B:, copypage.bat will move the 9600home.wml to B: and if you navigate your IP phone to the web you should start seeing your pictures updated every second or so.

Enjoy,

Dave (liquidvw, phoneguy55)
 
Phoneguy55, you have too much time on your hands...
 
Very cool Dave. I am sure someone at one time or another will be asked to come up with a solution like this.

Thanks for posting and sharing.

Hell, there are no rules here - we're trying to accomplish something.
Thomas A. Edison

For the best response to a question, read faq690-6594


 
Excellant. Have you considered putting this into the FAQ?

Susan
"Opportunity is missed by most people because it is dressed in overalls, and looks like work." - Thomas A. Edison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top