public void doIt() throws Exception
{
System.out.println("Example: Send/Receive message through SMPP using JSMPP.");
System.out.println(Library.getLibraryDescription());
System.out.println("Version: " + Library.getLibraryVersion());
JSMPPGateway gateway = new JSMPPGateway("smppcon", "localhost", 2715, new BindAttributes("smppclient1", "password", "cp", BindType.TRANSCEIVER));
Service.getInstance().addGateway(gateway);
Service.getInstance().setInboundMessageNotification(new InboundNotification());
Service.getInstance().setGatewayStatusNotification(new GatewayStatusNotification());
Service.getInstance().setOutboundMessageNotification(new OutboundNotification());
Service.getInstance().startService();