about push2phone

Version 1
    This document was generated from CDN thread

    Created by: qing zhu on 24-09-2009 08:20:41 AM
    hi,
      I'm developing Service to cisco Ip Phone, but i donot understand about
        LDAPProvider ldapProv = new LDAPProvider(ldapServer, ldapUserId, ldapPassword, ldapPort, ldapRoot);
     what's mean about  Parameters in Constructor.
     
    thanks,
     qing zhu

    Subject: RE: about push2phone
    Replied by: David Staudt on 24-09-2009 02:01:50 PM
    I believe you are looking at some code that uses the Java 'helper classes' that are provided as part of the IP Phone Services SDK.  The source file for that class/interface should have been installed to: ../CiscoIPServices/Java/src/com/cisco/iphone/sdk/LDAPProvider.java.

    Subject: RE: about push2phone
    Replied by: qing zhu on 25-09-2009 01:56:10 AM
    thinks davie,
       I'm learning SDK.I just known about LADP Server ,but I donot understand why¿ is LADP Server embed Call mananger?
     
      and when I running push2phone.jsp is proviered by Cisco got wrong as:
     
    java.io.FileNotFoundException: http://172.18.10.111/ccmadmin/reports/devicelistx.asp
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
     at com.cisco.ipphone.sdk.IPAddressProvider$ProviderImpl$RefreshTask.sendRequest(IPAddressProvider.java:376)
     at com.cisco.ipphone.sdk.IPAddressProvider$ProviderImpl$RefreshTask.getDeviceList(IPAddressProvider.java:343)
     at com.cisco.ipphone.sdk.IPAddressProvider$ProviderImpl$RefreshTask.run(IPAddressProvider.java:313)
     at com.cisco.ipphone.sdk.IPAddressProvider$ProviderImpl.<init>(IPAddressProvider.java:221)
     at com.cisco.ipphone.sdk.IPAddressProvider.<init>(IPAddressProvider.java:110)
     at com.cisco.ipphone.sdk.IPAddressProvider.<init>(IPAddressProvider.java:74)
     at org.apache.jsp.push2phone_jsp._jspService(push2phone_jsp.java:120)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
     at java.lang.Thread.run(Unknown Source)
    IPAddressProvider.getDeviceList() request failed.
     
    we are using Call Manager 7.0

    thanks,
    qing,

    Subject: RE: about push2phone
    Replied by: qing zhu on 25-09-2009 03:08:07 AM
    thanks David,
      yes¿  I have learned a lot of XML tags by the samples.  now , I want send messages to IP Pone  ¿so ¿How should I do¿ 

    Subject: RE: about push2phone
    Replied by: David Staudt on 25-09-2009 02:52:40 AM
    The 4.1(1) version of the IP Phone Services SDK is designed to work with UCM v4.x.  Unfortunately the SDK has not been updated to work with UCM v5 and higher yet.
     
    As you note, two significant differences between UCM v4 and v5+ are:
     
    - Cisco user information in v4 was hosted in an onboard LDAP service; in v5+ this data is in the UCM SQL database, accessible via the AXL SOAP API
    - v4 provided the DeviceListX.asp report for obtaining device IP addresses; in v5+ this function is served by the more robust Serviceability SOAP API
     
    Due to these differences (and some others), many of the sample apps in the IPPS SDK will not work out-of-the-box, without some (somewhat large) modifications.  The good news is that the core parts of the code that show how to use the XML objects and features of the phone are still useful, but you will probably not be able to run the samples as-is.