cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
800
Views
0
Helpful
9
Replies

implementation of IP phone services

prettysali
Level 1
Level 1

Hi,

I want to implement some IP phone services like weather.I use CCM5.

in the first time, I installed CiscoIPPS_SDK_V4[1].1.1 in which i found for this service in C:/CiscoIPServices/ASP/weather 4 codes. after that, I added this service in CCM5 in which i specified this URL:

http://localhost:81/CiscoIPServices/weather/ASP/weatherzipinput.asp?name=#DEVICENAME#

my IIS is declared in port 81.

when opening this service with IP phone it displayed:

Authorization required!

UserName:

password:

Real:tr>

<head>

<style>

please, im waiting for your help

thank you in advance

salima

9 Replies 9

agiaccone
Level 1
Level 1

In the service's URL set in the CCM configuration, you must provide the address of the server where the IP phone service is installed (your box in this case), not localhost, otherwise the phone will search for the service on itself (localhost).

The right URL is http://:81/CiscoIPServices/weather/ASP/weatherzipinput.asp?name=#DEVICENAME#

HTH,

Alberto

thanks alot for your reply

in the SDK documentation,I read that we must located this service in a server independent of the servers in CUCM,so i installed in a server which i created with IIS and i tried this URL http://127.0.0.1:81/CiscoIPServices/weather/ASP/weatherzipinput.asp?name=#DEVICENAME# but it doesn't work (the same message).

(sorry i don't understand what means)

salima

means the ip address of the server where you installed IIS and the IP Phone Services.

127.0.0.1 is a fake ip address that means localhost, so, not having really changed nothing, you get the same message.

If the server which hosts the IP Phone Service has ip address 10.0.0.1 and IIS is set to listen to port 81 then the right URL to set in CCM configuration is :

http://10.0.0.1:81/CiscoIPServices/weather/ASP/weatherzipinput.asp?name=#DEVICENAME#

HTH,

Alberto

127.0.0.1 and localhost only mean to access the web server on the local machine -- so this IP and host is not reachable externally (such as from an IP phone).

For weather alerts, you may want to look at PhoneTop Messenger as well. It pushes local weather alerts to Cisco phones and you can configure it based on event type (tornado, flood, etc), time of day, geographic area, etc.

thx,

I arrived to solve this probleme but i have another one:

as i tell you last time,the weather service contain 4 codes, so when i executed them and arrived to the last one it displayed:

Weather Service Error

un composant ActiveX ne peut pas creer un objet.

-2146827859

if you have an idea about this

salima

If you look into the file weather.asp (the one yuo invoke to get data from Internet) you'll see this :

new ActiveXObject("CiscoURLProxy.URLGrabber");

CiscoURLProxy is a COM ActiveX object used by the SDK examples to grab data from Internet.

You should install it before running the examples, setup and docs are in C:\CiscoIPServices\COMServers\CiscoURLProxy\

After the setup's complete you shouldn't see that message any more.

HTH,

Alberto

Hi,

you're right,thx for your useful information.

when i execute these codes, I have 2 problems:

1- when i enter the zipcode,it displyed "Error:Not able to Access Service URL"

2- or when i choose to enter city and state code, i have "Error:Invalid input parameter"

I wonder if the URL exist in weather.asp are valid and get the same variables.

please, if you have an idea about this pb

salima

I've looked into the weather.asp code and I found that the URLs used to get the zip code from state and city and the one used to get the weather info based on the zip code are both not valid.

I've found these two valid urls, but you'll have to change the weather.asp code to make it parse correctly the new pages:

Weather forecast based on zip code :

http://www.weather.com/weather/wxdetail/

Zip code lookup based on city/state :

http://zip4.usps.com/zip4/zcl_1_results.jsp?visited=0&pagenumber=0&city=&state=

terms within <> are the parameters to pass to the services.

HTH,

Alberto

Hi,

I tried a lot to make weather.asp parse the new url(other url"http://www.meteoma.net") just by entering the city for example, but it doesn't work.

I didn't understand how i can extract the useful information from the code of web page.

please can you help me because if i understand this i can developp other services

thx for advance

salima

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: