Examples of SubmitSMResp


Examples of ie.omk.smpp.message.SubmitSMResp

        case SMPPPacket.SUBMIT_SM:
            response = new SubmitSM();
            break;

        case SMPPPacket.SUBMIT_SM_RESP:
            response = new SubmitSMResp();
            break;

        case SMPPPacket.DATA_SM:
            response = new DataSM();
            break;
View Full Code Here

Examples of org.jsmpp.bean.SubmitSmResp

                sourceAddr, destAddrTon, destAddrNpi, destinationAddr,
                esmClass, protocolId, priorityFlag, scheduleDeliveryTime,
                validityPeriod, registeredDelivery, replaceIfPresentFlag,
                dataCoding, smDefaultMsgId, shortMessage, optionalParameters);
     
        SubmitSmResp resp = (SubmitSmResp)executeSendCommand(submitSmTask, getTransactionTimer());
      return resp.getMessageId();
    }
View Full Code Here

Examples of org.jsmpp.bean.SubmitSmResp

                sourceAddr, destAddrTon, destAddrNpi, destinationAddr,
                esmClass, protocolId, priorityFlag, scheduleDeliveryTime,
                validityPeriod, registeredDelivery, replaceIfPresentFlag,
                dataCoding, smDefaultMsgId, shortMessage, optionalParameters);

        SubmitSmResp resp = (SubmitSmResp)executeSendCommand(submitSmTask,
                getTransactionTimer());
        return resp.getMessageId();
    }
View Full Code Here

Examples of org.jsmpp.bean.SubmitSmResp

                sourceAddr, destAddrTon, destAddrNpi, destinationAddr,
                esmClass, protocolId, priorityFlag, scheduleDeliveryTime,
                validityPeriod, registeredDelivery, replaceIfPresentFlag,
                dataCoding, smDefaultMsgId, shortMessage, optionalParameters);
     
        SubmitSmResp resp = (SubmitSmResp)executeSendCommand(submitSmTask, getTransactionTimer());
      return resp.getMessageId();
    }
View Full Code Here

Examples of org.jsmpp.bean.SubmitSmResp

                sourceAddr, destAddrTon, destAddrNpi, destinationAddr,
                esmClass, protocolId, priorityFlag, scheduleDeliveryTime,
                validityPeriod, registeredDelivery, replaceIfPresentFlag,
                dataCoding, smDefaultMsgId, shortMessage, optionalParameters);

        SubmitSmResp resp = (SubmitSmResp)executeSendCommand(submitSmTask,
                getTransactionTimer());
        return resp.getMessageId();
    }
View Full Code Here

Examples of org.jsmpp.bean.SubmitSmResp

        PendingResponse<Command> pendingResp = responseHandler
                .removeSentItem(pduHeader.getSequenceNumber());
        if (pendingResp != null) {
            try {
                SubmitSmResp resp = pduDecomposer.submitSmResp(pdu);
                pendingResp.done(resp);
            } catch (PDUStringException e) {
                logger.error("Failed decomposing submit_sm_resp", e);
                responseHandler.sendGenerickNack(e.getErrorCode(), pduHeader
                        .getSequenceNumber());
View Full Code Here

Examples of org.jsmpp.bean.SubmitSmResp

     * (non-Javadoc)
     *
     * @see org.jsmpp.util.PDUDecomposer#submitSmResp(byte[])
     */
    public SubmitSmResp submitSmResp(byte[] b) throws PDUStringException {
        SubmitSmResp resp = new SubmitSmResp();
        SequentialBytesReader reader = new SequentialBytesReader(b);
        assignHeader(resp, reader);
        if (resp.getCommandLength() > 16 && resp.getCommandStatus() == 0) {
            resp.setMessageId(reader.readCString());
            StringValidator.validateString(resp.getMessageId(),
                    StringParameter.MESSAGE_ID);
        }
        return resp;
    }
View Full Code Here

Examples of org.smpp.pdu.SubmitSMResp

                    LOGGER.debug("Submit request " + request.debugString());
                }

                // Get a session from the pool and attempt to send the message.
                boolean submitted = false;
                SubmitSMResp response = null;
                while (!submitted) {
                    Session SMSSession = (Session) sessionPool.borrowObject();
                    try {
                        response = SMSSession.submit(request);
                        submitted = true;
                        sessionPool.returnObject(SMSSession);
                    } catch (Exception e) {
                        LOGGER.warn("message-submit-failure-retrying", e.getMessage());
                        sessionPool.invalidateObject(SMSSession);
                    }
                }

                if(response!=null){
                    if(LOGGER.isDebugEnabled()) {
                        LOGGER.debug("Submit response " +
                                response.debugString());
                    }
                    if (response.getCommandStatus() != Data.ESME_ROK) {
                        final MessageRecipient failedRecipient =
                            message.getMessageRecipient(i);
                        failedRecipient.setFailureReason(
                            localizer.format("message-submit-failure-with-status",
                                new Integer(response.getCommandStatus())));
                        failedRecipients.add(failedRecipient);
                    }
                }
            } catch (Exception e) {
                final MessageRecipient failedRecipient =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.