Can't install neither SDK windows nor Telephony Web Services nor jtapi-sdk

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nlahrach
    Member
    • Sep 2021
    • 6

    Can't install neither SDK windows nor Telephony Web Services nor jtapi-sdk

    Hello everyone, I hope you are all well.
    I tried installing the Windows SDK and the Telephony Web Services and jtapi-sdk, but the installation won't complete.
    Can anyone help me?
    I only managed to install the Windows TSAPI Client.
    My AES Version: 10.2.0
    Thanks a lot in advance
  • avc861193901584
    Whiz
    • Sep 2024
    • 28

    #2
    Hello,

    Those are all very different SDKs. Before trying to triage the installation, could you please describe a little bit about what you are looking to accomplish (what type of application you want to build) so we can make sure it's the correct SDK?

    Best regards,
    Adam
    Adam | Swampfox Technologies Inc. | Avaya Partner
    Solutioning in: Avaya Experience Portal | AXP Connect | AES

    Comment

    • nlahrach
      Member
      • Sep 2021
      • 6

      #3
      Hello,

      I need to disconnect agent (avaya login) which statut remained unchanged since 90 minutes using TSAPI

      ​Best regards,

      Comment

      • avc861193901584
        Whiz
        • Sep 2024
        • 28

        #4
        Ok, in that case you will probably be writing code to establish station monitors (will consume basic TSAPI licenses on the AES) and then using the clear call service to disconnect an active call (or possibly the Set Agent State service if you want to log the agent out).

        There are 4 completely different APIs that you could use:
        1. TSAPI - requires purchasing the TSAPI C SDK. It's become a little unclear how to purchase it without DevConnect.
        2. JTAPI - no additional SDK cost. (I think you mentioned you tried downloading this one.) It's a Java wrapper for TSAPI. A good option for including in a Java-based application.
        3. DMCC - no additional SDK cost. Available as a Java client, .NET client and an XML API. Will require using DMCC licenses on the AES in addition to the basic TSAPI license.
        4. Web Telephony Interface - no additional SDK cost. Consists of an OpenAPI document for a REST client in any programming language of your choosing. (I believe this also consumes a DMCC license in addition to the basic TSAPI license, but not 100% sure.)

        Any one of four APIs are valid for your use case, so I would recommend you pick one based off of you and your team's familiarity with the programming languages involved and the licensing that you have available on your AES.


        Adam
        Adam | Swampfox Technologies Inc. | Avaya Partner
        Solutioning in: Avaya Experience Portal | AXP Connect | AES

        Comment

        • nlahrach
          Member
          • Sep 2021
          • 6

          #5
          Hello Adam

          Here are the licenses I currently have available:

          Unified CC API Desktop Edition (VALUE_AES_AEC_UNIFIED_CC_DESKTOP)

          TSAPI Simultaneous Users (VALUE_AES_TSAPI_USERS)

          DMCC


          I would like to use TSAPI for my project and write code in Java. However, I am unable to install the Windows SDK, Telephony Web Services, or the JTAPI SDK to take full advantage of all the possible features between TSAPI and Communication Manager. should I look for old versions

          Could you please confirm if the available licenses are sufficient to proceed with Java development using TSAPI?
          Any guidance on the limitations I might face without the additional SDKs would be greatly appreciated.

          Thank you very much for your help!

          Best regards,

          Noa

          Comment

          • avc861193901584
            Whiz
            • Sep 2024
            • 28

            #6
            Yes, the TSAPI Simultaneous Users (Basic TSAPI) license should be sufficient for the operations you've described.

            1. Go to APIs and SDKs | Avaya
            2. Click on JTAPI Avaya Aura AES Release 10.2 Dec 2023 JTAPI SDK and Client (Windows)
            3. Download to your computer
            4. Unzip the file
            5. Double click the unzipped executable
            6. Agree to the Terms of Use
            7. Provide a path to where to put the JTAPI SDK (for example, C:\tmp\JTAPI)

            Once extracted, you can look at the Sample Apps to see how to use the JTAPI library.
            The lib directory contains the JTAPI core library (ecsjtapia) and its dependencies (log4j 2.19).
            Based on your description, the autoanswerSrc\autoanswer\AutoAnswerService.java is the closest example to what you're trying to do.
            You can try to build the sample applications, but that's optional. By taking ecsjtapia and putting it on the classpath of your custom application, you should be good to go.

            The Java Docs in javadoc/index.html are very helpful at describing what each class can do and providing some examples.
            Adam | Swampfox Technologies Inc. | Avaya Partner
            Solutioning in: Avaya Experience Portal | AXP Connect | AES

            Comment

            • nlahrach
              Member
              • Sep 2021
              • 6

              #7
              Hello

              Is there a simple Java code example that can confirm connectivity to Communication Manager through TSAPI and retrieve some basic information? The example I found online generates many compilation errors. Also, where can I find reliable and working sample code?

              Thank you in advance!

              Best regards,

              Noa

              Comment

              • avc861193901584
                Whiz
                • Sep 2024
                • 28

                #8
                Hello,

                Here is some basic code that connects to the AES and has the AES ask CM for its current date and time.

                Code:
                import com.avaya.jtapi.tsapi.LucentProvider;
                
                import javax.telephony.JtapiPeer;
                import javax.telephony.JtapiPeerFactory;
                import javax.telephony.Provider;
                import java.util.Date;
                
                public class MinimalRunner {
                
                private static final String JTAPI_PEER_NAME = "com.avaya.jtapi.tsapi.TsapiPeer";
                
                
                public static void main(String[] args) {
                System.out.println("Swampfox JTAPI Test Tool Starting");
                
                String service = "AVAYA#CM#CSTA#AES"; // Your T-LINK
                String user = "user"; // Your AES-created user
                String password = "pass"; // Your AES-created user's password
                String host = "ip"; // Your AES IP address or DNS resolvable hostname
                
                
                Provider provider = null;
                try {
                JtapiPeer jtapiPeer = JtapiPeerFactory.getJtapiPeer(JTAPI_PEER_NAME);
                provider = jtapiPeer.getProvider(service + ";login=" + user + ";passwd=" + password + ";servers=" + host);
                
                long start = System.currentTimeMillis();
                try {
                Date switchTime = ((LucentProvider) provider).getSwitchDateAndTime();
                System.out.printf("The CM date time is: %s, query took %s ms", switchTime.toString(),
                String.valueOf(System.currentTimeMillis() - start));
                } catch (Exception e) {
                System.out.printf("The CM date time received error: %s, query took %s ms", e.getLocalizedMessage(),
                String.valueOf(System.currentTimeMillis() - start));
                provider.shutdown();
                System.exit(5);
                }
                } catch (Exception interruptedException) {
                System.out.println("Caught Exception, shutting down");
                if (provider != null) {
                provider.shutdown();
                provider = null;
                }
                System.exit(99);
                }
                
                }
                
                }
                After running it against my system this morning it outputs:

                Code:
                Swampfox JTAPI Test Tool Starting
                No logging configuration found in TSAPI.PRO file
                We are here as we don't have any old log4j configurations.... Reconfiguring it...
                The CM date time is: Tue Aug 01 10:23:49 EST 125, query took 39 ms​
                Reliable and working sample code is available in the JTAPI SDK and Java Docs download as I described above.
                I'm mostly just posting here as a volunteer, so I can point you in the right direction. Some of the core concepts like the Java class path and dependency management are a bit out of scope of the Avaya-specific pieces of the library and have some really good explanations on other sites.
                Adam | Swampfox Technologies Inc. | Avaya Partner
                Solutioning in: Avaya Experience Portal | AXP Connect | AES

                Comment

                Loading