" /> How to start or stop application using SolutionControlServerProtocol ? - Genesys CTI User Forum

Author Topic: How to start or stop application using SolutionControlServerProtocol ?  (Read 5958 times)

sgjin

  • Guest
Advertisement
 

Hi..

I'm using PlatformSDK 7.5.

I know how to start or stop application useing SolutionControlServerProtocol.

My code is ..



        Endpoint endpoint = new Endpoint(name, host, port);
     
        // Here is the sample of how to open connection to Solution Control Server
        // and retrieve actual information about application.
        SolutionControlServerProtocol protocol = new SolutionControlServerProtocol(endpoint);

        protocol.setTimeout(3 * 1000);
     
        try {
            protocol.open();
            System.out.println("Connected");
        } catch(Exception e) {
            System.out.println("Not Connected : " + e.getMessage());
        }
     
        RequestStopApplication rai = RequestStopApplication.create();
     
        // Application clientId which status we want to know
        rai.setControlObjectId(105);

     
        try {
            // request         
            Message message = protocol.request(rai);
            handleMessage(message);
         
        } catch (Exception e) {
            System.out.println("request error : " + e.getMessage());
        }



but.. result was "null" and the application didn't stop.

what is wrong ?

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Hi,

before we try this at home, can you please dump the log from SCS when you do that? What does it say?

Vic

sgjin

  • Guest
Thanks.

Here is SCS log after running my progarm.

(addp_xconfig) local 9000 msec, remote OFF, trace off
09:09:49.161 Connecting to LCAServer [4999:irevo_ivr] fd=448
09:09:50.082 Notify Host: HOST_STATUS_DISCONNECTED {103, irevo_ivr}
09:09:52.886 Client: new client 448 connected, 09:09:57.403  host information for 192.168.10.183 not found
09:09:57.403 IP-address 192.168.10.183
addp-trace no
(addp_xconfig) local 9000 msec, remote OFF, trace off
09:09:57.413 Connecting to LCAServer [4999:irevo_ivr] fd=456
09:09:57.423 Create CIRequester (socket: 448, name: 'Sample SCI')
09:09:57.423  Trace  ablecom-ipivr  SCS  GCTI-43-10400  SC Interface 'Sample SCI' connected, username='default', socket=448
09:09:57.423 ### LOCAL MESSAGE#=10400, 'SC Interface 'Sample SCI' connected, username='default', socket=448'
09:09:57.613 CIRequester disconnected, fd=448
09:09:57.613  Trace  ablecom-ipivr  SCS  GCTI-43-10401  SC Interface 'Sample SCI' disconnected, socket=448
09:09:57.613 ### LOCAL MESSAGE#=10401, 'SC Interface 'Sample SCI' disconnected, socket=448'
09:09:57.613 ~CIRequester (448,Sample SCI)
09:09:58.414 Notify Host: HOST_STATUS_DISCONNECTED {103, irevo_ivr}
addp-trace no
(addp_xconfig) local 9000 msec, remote OFF, trace off
09:10:01.418 Connecting to LCAServer [4999:irevo_ivr] fd=456
09:10:02.420 Notify Host: HOST_STATUS_DISCONNECTED {103, irevo_ivr}

As shown, open(), close() method ran successfully but there was not the message SCS received Request StopApplication.

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Sgjin,

What version of SCS do you have?

R.

sgjin

  • Guest
version of SCS is 7.5.000.08

read_me.html says that

Name : Solution Control Server
Package Version : 7.5.000.08
Build Date : 2007-01-19
Build Number : 1
Language : English (United States)
Release Type : General