Genesys CTI User Forum > Genesys-related Development
start campaign
Kubig:
I still do not understand and see in what part of integration/development is the main problem - as I have asked before - are you able to connect to the OC server? Are you able to send a message in general and consume the event?
K.Palyanichka:
exactly how to connect I do not know, I find the script, but has no idea how to use it. This applies to the message.
At the momment I'm beginning to learn java.
I will be very grateful if you give a short lesson with an example run a specific campaign in steps.
I think that this mini-training will be very useful for all residents
cavagnaro:
Option 1:
First you need to connect to TServer (PSDK guide has working samples and forum does too) then you send commands via OCS API (OCS Deployment, Reference guide|Samples everywhere on forum).
K.Palyanichka:
Good morning.
could you give me an example of a simple code that will serve as the connection to the server.
At the momment my acquaintance with java is just beginning, but the problem must vyplnyat.
Here is an example of how I tried to bridge the OCS, but alas I have failed.
package pack;
import java.net.URISyntaxException;
import com.genesyslab.platform.commons.protocol.Endpoint;
import com.genesyslab.platform.commons.protocol.ProtocolException;
import com.genesyslab.platform.commons.protocol.RegistrationException;
import com.genesyslab.platform.configuration.protocol.ConfServerProtocol;
import com.genesyslab.platform.configuration.protocol.types.CfgAppType;
import com.genesyslab.platform.outbound.protocol.outboundserver.requests.RequestStartDialing;
public class OutboundServerProtocol {
public static void main(String[] args) throws RegistrationException, ProtocolException, IllegalStateException, InterruptedException, URISyntaxException {
Endpoint cfgServerEndpoint = new Endpoint("cfg_proxy", "eostvgen11", 2020);
ConfServerProtocol protocol = new ConfServerProtocol(cfgServerEndpoint);
protocol.setClientName("cfg_proxy");
protocol.open();
RequestStartDialing req = RequestStartDialing.creare();
req.setCampaignId(113);
req.setGroupId(135);
protocol.close();
}
}
Proceeding from this, I'm asking you a simple example of code. If possible, with little description.
cavagnaro:
There are samples given on the help files of the PSDK, why would we copy/paste the same thing??
Read the help files please, all is there.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version