Push 2 Phone Example Issue

Version 1
    This document was generated from CDN thread

    Created by: Tom Barrand on 06-01-2009 12:04:51 PM
    Hi,

    I have installed the latest version of Cisco IP Phone Services SDK and would like to get the Push 2 Phone JSP example working.

    I have amended the config values in the push2phone.jsp file to reflect my environment.

    My environment is Windows 2003 Server SP2, Tomcat 6.0.18 and jdk1.6.0_11.

    I have also copied CiscoIPPhoneSDK.jar to C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib.

    When I access the JSP page I get the following error:

    org.apache.jasper.JasperException: Unable to compile class for JSP:

    An error occurred at line: 7 in the generated java file
    Only a type can be imported. com.cisco.ipphone.sdk.push2phone.PushMessage resolves to a package

    An error occurred at line: 65 in the jsp file: /push2phone.jsp
    IPAddressProvider cannot be resolved to a type

    Any ideas what the issue is?

    Thanks

    Tom

    Subject: Re: Push 2 Phone Example Issue
    Replied by: Tom Barrand on 06-01-2009 08:49:49 PM
    Managed to get past this error. CiscoIPPhoneSDK.jar needed to be copied to the lib directory within the webapp, i.e. Tomcat 6.0\webapps\push2phone\WEB-INF\lib

    The issue I have now is that it the JSP page displays the html page but the list box on the right which I presume should list the phones is completely blank.

    No errors are returned though. Any ideas would be appreciated.

    Thanks

    Tom

    Subject: Re: Push 2 Phone Example Issue
    Replied by: Stephan Steiner on 07-01-2009 09:12:42 AM
    The last SDK I've seen still refered to CallManager 4 so you won't have any joy with CCM6 except for apps that require no CCM integration. For Push2Phone, the SDK sample uses the CCM4 IP Address Provider to get a list of IP Adresses of the phones... thus has stopped working with CCM5 and won't be coming back... you'll need AXL Serviceability (SelectCMDevices on the RisPort interface) to get IP addresses (you can get only up to 200 per request so if your system is larger you need to look up the phones via AXL, then partition your SelectCmDevices requests into one request per 200 phones).

    So I'm afraid that sample really isn't terribly useful at this point and it is quite involved to get back a working version as you have no way around learning axl / axl serviceability (the sdk contains axl code though and it can be used as a template.. it also refers to CCM4 though so it won't work from the getgo since CCM5+ has a new url where you have to send the requests to, plus not all requests have remained the same).

    Probably not what you've been looking for but I'm afraid that's how it is now.

    If you just need to send something to a phone outside your own software I can give a a html page which opens a form where you can enter what you want to send to the phone then press submit, enter login/password and the thing is done. Works quite well if you need to quickly test something but if course it's pretty useless if you need to do things programmatically on your own.

    Subject: Re: Push 2 Phone Example Issue
    Replied by: Tom Barrand on 08-01-2009 10:58:14 PM
    If you could send me that, it would be appreciated.

    Thanks

    Tom

    Subject: RE: Re: Push 2 Phone Example Issue
    Replied by: Yannis Kampourakis on 04-03-2009 11:33:21 AM
    The last SDK I've seen still refered to CallManager 4 so you won't have any joy with CCM6 except for apps that require no CCM integration. For Push2Phone, the SDK sample uses the CCM4 IP Address Provider to get a list of IP Adresses of the phones... thus has stopped working with CCM5 and won't be coming back... you'll need AXL Serviceability (SelectCMDevices on the RisPort interface) to get IP addresses (you can get only up to 200 per request so if your system is larger you need to look up the phones via AXL, then partition your SelectCmDevices requests into one request per 200 phones).

    So I'm afraid that sample really isn't terribly useful at this point and it is quite involved to get back a working version as you have no way around learning axl / axl serviceability (the sdk contains axl code though and it can be used as a template.. it also refers to CCM4 though so it won't work from the getgo since CCM5+ has a new url where you have to send the requests to, plus not all requests have remained the same).

    Probably not what you've been looking for but I'm afraid that's how it is now.

    If you just need to send something to a phone outside your own software I can give a a html page which opens a form where you can enter what you want to send to the phone then press submit, enter login/password and the thing is done. Works quite well if you need to quickly test something but if course it's pretty useless if you need to do things programmatically on your own.

     
    Stephan is it possible to attach the file "html page which opens a form where you can enter what you want to send
    to the phone then press submit, enter login/password and the thing is
    done" to this post so that the rest of us can check it out???
     
    Thanks in advance for your effort