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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating and Displaying Images on IP phone

Status
Not open for further replies.

ahben

Technical User
Aug 19, 2003
2
SG
Hi Guys...
Anyone can guide me on how to create and display let's say a logo on my IP phone?
 
Download the IP Phone Services SDK from CCO. There's an ASP application included among the sample services to display a logo. Don't install it on your Call Manager server, you'll need another system with IIS.
 
Or you could use:


Included in the package is a utility to convert an image (PNG, JPG) to CIP.

You can then use a Perl CGI script:
[tt]
#!/usr/bin/perl -w
use strict;
use Cisco::IPPhone;
use IO::File;

open(HD, "/var/ || die("Could not open!");
binmode(HD);

seek(HD, 0, 2); # move to file end
my $size = tell(HD); # return bytes
seek(HD, 0, 0); # begining

my $buf;
read(HD, $buf, $size);

my $ipphone = new Cisco::IPPhone;

$ipphone->Image({Title=>"test image",
Prompt=>"test",
LocationX=>"-1",
LocationY=>"-1",
Width=>88,
Height=>31,
Depth=>"2",
Data=>$buf}
);

print $ipphone->Content;
[/tt]

Then you could access this script from the Services menu or use this CGI/script as the IDLE URL of the phone.

-- cmdev
 
I used the IP Phone Services SDK to create a Smily image for the phones. the whole xml file is here:


<%@ Language=JavaScript %>
<%

Response.ContentType = &quot;text/xml&quot;;
Response.Buffer = true;

%>

<CiscoIPPhoneImage>
<LocationX>-1</LocationX>
<LocationY>-1</LocationY>
<Width>76</Width>
<Height>65</Height>
<Depth>2</Depth>
<Data>0000000000000040E9FF6B050000000000000000000000000050FAFFFFFFBF05000000000000000000000000F9FFFFFFFFFFAF0000000000000000000000E0FFFFFFFFFFFFFF1B00000000000000000000FEFFFFFFFFFFFFFFBF010000000000000000D0FFFFAF550055FAFFFF0B0000000000000000F9FFBF0500000040FEFF6F0000000000000040FFFF06000000000090FFFF01000000000000E0FF6F00000000000000F9FF0B000000000000F8FF070000000000000090FF6F000000000000FEBF000000000000000000FEFF010000000080FF2F000000000000000000F4FF0600000000E0FF0700000000000000000080FF1F00000000F8FF0000000000000000000000FE2F00000000FE6F0000000000000000000000F8BF00000040FF1F0000000000000000000000E0FF010000D0FF07000000000000000000000080FF070000E0FF01000000000000000000000000FF0B0000F4BF00000000000000000000000000FD2F0000F82F00000000000000000000000000F87F0000FE1F000040BE0200000040FE020000E0BF0000FF0B0000E0FF1B000000E0FF1B0000D0FF0140FF030000F8FF2F000000F8FF2F000080FF02C0FF010000FDFFBF000000FDFFBF000040FF07D0FF000000FEFFFF000000FEFFFF000000FE0BE0BF000000FEFFFF000000FFFFFF000000FD0BE07F000000FEFFFF000000FFFFFF000000FC1FF42F000000FEFFFF000000FEFFFF000000F81FF81F000000FDFFBF000000FDFFBF000000F42FF81F000000F8FF2F000000F8FF2F000000F03FFC0F000000E0FF1B000000E0FF1F000000E07FFD0B00000040FE0100000040FE02000000E07FFD0B000000000000000000000000000000D0BFFD07000000000000000000000000000000D0BFFD07000000000000000000000000000000D0FFFE07000000000000000000000000000000C0FFFE07000000000000000000000000000000C0FFFE07000000000000000000000000000000C0FFFE07000000000000000000000000000000C0FFFE07000000000000000000000000000000C0FFFE0700002E000000000000000000F80000C0FFFE0700007F000000000000000000FC0000D0FFFD070000BE000000000000000000FD0000D0BFFD0B0000FE000000000000000000FE0000D0BFFC0B0000FD010000000000000000BF0000E07FFC0F0000FC0200000000000000407F0000E07FF81F0000F80700000000000000803F0000F03FF81F0000F40B00000000000000E02F0000F42FF42F0000E01F00000000000000F41F0000F82FE07F0000E07F00000000000000F80B0000F81FE0BF0000C0FF01000000000000FE070000FD0BD0FF000080FF06000000000080FF020000FE0BC0FF010000FE1F0000000000F4FF010040FF0740FF030000FDBF0100000040FEBF000080FF0200FF0B0000F4FF5B000000E4FF2F0000D0FF0100FE1F0000E0FFFF5A55A5FFFF0B0000E0BF0000F82F000040FFFFFFFFFFFFFF020000F87F0000F4BF000000FDFFFFFFFFFFBF000000FD2F0000E0FF010000E4FFFFFFFFFF1B000000FF0B0000D0FF03000040FFFFFFFFFF01000080FF07000040FF1F000000A4FFFFFF1B000000E0FF01000000FE6F00000000A5AA5A00000000F8BF00000000F8BF0000000000000000000000FE2F00000000E0FF0700000000000000000080FF1F0000000080FF1F000000000000000000F4FF060000000000FEBF000000000000000000FEFF010000000000F8FF060000000000000090FF6F000000000000E0FF6F00000000000000F9FF0B00000000000040FFFF06000000000090FFFF0100000000000000F9FFBF0100000040FEFF7F0000000000000000D0FFFFAF150054FAFFFF0B000000000000000000FEFFFFFFFFFFFFFFBF01000000000000000000E0FFFFFFFFFFFFFF1B0000000000000000000000F9FFFFFFFFFFAF01000000000000000000000050FEFFFFFFBF050000000000000000000000000050A9FFAB0500000000000000</Data>
<Title>Temporary title</Title>
<Prompt>Temporary prompt</Prompt>
</CiscoIPPhoneImage>


<%
Response.End();
 
we used the idle URL function to display the company logo. We didnt get as fancy as some of the others. Basically on the CCM admin page near the bottom the Cisco IP Phone - External Data Locations
IDLE setting we have:



We did not have to change any code or anything just put the logo.jpg file in the folder

RTMCKEE
 
I have the dont the following to get this working on our phones. I still cant get it to work any help would be much appreciated

This is the .asp file

<%@ Language=JavaScript %>
<%

Response.ContentType = &quot;text/xml&quot;;

Response.Buffer = true;

%>

Response.Write(&quot;<CiscoIPPhoneImage><Title> Test Message
</Title><LocationX>-1</LocationX><LocationY>-1</LocationY><Width>125</Width><Height>25</Height>
<Depth>2</Depth><Data>0000000000000000000000000000000000000000000000000000000000000000500554000
0000000400500000000000054010000000000005001000000000068A590010000000000280000000000005929000000
000000000A0000000000280006060000000000900000000000001880000100000000002400000000006400141800000
0000040020000000000240000080000000000A000000000009001006054005401141409400540050090010069015500
0515400250411550410200805506281990A9248091909100002A00A4054A066495010964246840060A00001A2860900
00A9080018A020100A00A4002182480060A2460808201092800002890004002184002562919000000A801090090000A
289090550A0908900100604002500A2000091900A0060000400A2400940218A04042060060204006008001096425800
0246000006900000064900059096080020919008052002800000624649000029080020040020000804102192480010A
24A000009900900100189090800208400219000109001440020964A0000628A0800600A002006915A480065A1A64001
AA0011818009095066480960629A4800668004006004055504515505050015500554015000055014005141454504515
40150008000000000000000000000000000000000000000000000000000000000000140050555555555555555555555
55555555555555555555555555555551540200000000000000000000000000000000000000000000000000000000000
40560000000000000000000000000000000000000000000000000000000000001400000000000000000060400629900
1155440055440011560400600000000000000000000000000008001080881002890022614020B189006190000000000
00000000000000000000192050051550410994900924604015940000000000000000000000000000001400000550000
41400000500000100400000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000</Data>
<Title>Temporary title</Title>
<Prompt>Temporary prompt</Prompt>
</CiscoIPPhoneImage>

<%
Response.End();


Where have I gone wrong????

thanks

ST
 
Make sure you don't have any linefeeds or carriage returns in your <Data> field. The phone won't like it. It should be one long field.

Consider hard-coding your IIS server's IP address in the URL instead of using a server name in CallManager. Make sure that your phone's VLAN can talk to your IIS server's VLAN.

During testing I set the idle timeout to 1 or 2 seconds so I don't have to wait to long for it to show up.
 
Isn't there a way to make the images display on the default &quot;start&quot; screen? Ya know, the one that has your options of redial, new call, call forward, and shows the clock?

It'd be nice to just have a small componay logo right on the first screen, without having to goto service | and then hit the service I created.. even then, that just shows a logo, you have to close out of that screen eventually..

How do I do that?
 
You can point the idle URL to the ASP file that you have created. This means that after the phone has not been used for the number of seconds you specify, it will be directed to your asp page to display a logo.
 
Sweet, and where do find the Idle URL? I see it mentioned everywhere, but I haven't seen it..

snoots
 
Nevermind, I found it. I was looking in the asp's when it was in the call manager admin.. duh.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top