当前位置: 首页>>代码示例>>Java>>正文


Java ReturnResultLast.setParameter方法代码示例

本文整理汇总了Java中org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast.setParameter方法的典型用法代码示例。如果您正苦于以下问题:Java ReturnResultLast.setParameter方法的具体用法?Java ReturnResultLast.setParameter怎么用?Java ReturnResultLast.setParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast的用法示例。


在下文中一共展示了ReturnResultLast.setParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addProvideRoamingNumberResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addProvideRoamingNumberResponse(long invokeId, ISDNAddressString roamingNumber,
        MAPExtensionContainer extensionContainer, boolean releaseResourcesSupported, ISDNAddressString vmscAddress)
        throws MAPException {

    MAPApplicationContextVersion vers = this.appCntx.getApplicationContextVersion();
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.roamingNumberEnquiryContext)
            || (vers != MAPApplicationContextVersion.version1 && vers != MAPApplicationContextVersion.version2 && vers != MAPApplicationContextVersion.version3))
        throw new MAPException(
                "Bad application context name for addProvideRoamingNumberResponse: must be roamingNumberEnquiryContext_V1, V2 or V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();
    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.provideRoamingNumber);
    resultLast.setOperationCode(oc);

    ProvideRoamingNumberResponseImpl res = new ProvideRoamingNumberResponseImpl(roamingNumber, extensionContainer,
            releaseResourcesSupported, vmscAddress, this.appCntx.getApplicationContextVersion().getVersion());
    AsnOutputStream aos = new AsnOutputStream();
    res.encodeData(aos);

    Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
    p.setTagClass(res.getTagClass());
    p.setPrimitive(res.getIsPrimitive());
    p.setTag(res.getTag());
    p.setData(aos.toByteArray());
    resultLast.setParameter(p);

    this.sendReturnResultLastComponent(resultLast);

}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:36,代码来源:MAPDialogCallHandlingImpl.java

示例2: addSubscriberLocationReportResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addSubscriberLocationReportResponse(long invokeId, ISDNAddressString naEsrd, ISDNAddressString naEsrk,
        MAPExtensionContainer extensionContainer) throws MAPException {

    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.locationSvcEnquiryContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3)
        throw new MAPException(
                "Bad application context name for addSubscriberLocationReportResponse: must be locationSvcEnquiryContext_V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();
    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.subscriberLocationReport);
    resultLast.setOperationCode(oc);

    SubscriberLocationReportResponseImpl resInd = new SubscriberLocationReportResponseImpl(naEsrd, naEsrk,
            extensionContainer);

    AsnOutputStream asnOs = new AsnOutputStream();
    resInd.encodeData(asnOs);

    Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
    p.setTagClass(resInd.getTagClass());
    p.setPrimitive(resInd.getIsPrimitive());
    p.setTag(resInd.getTag());
    p.setData(asnOs.toByteArray());

    resultLast.setParameter(p);

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:34,代码来源:MAPDialogLsmImpl.java

示例3: addSendImsiResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addSendImsiResponse(long invokeId, IMSI imsi) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.imsiRetrievalContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2))
        throw new MAPException("Bad application context name for addSendImsiResponse: must be imsiRetrievalContext_V2");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.sendIMSI);
    resultLast.setOperationCode(oc);

    SendImsiResponseImpl req = new SendImsiResponseImpl(imsi);
    AsnOutputStream aos = new AsnOutputStream();
    req.encodeData(aos);

    Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
    p.setTagClass(req.getTagClass());
    p.setPrimitive(req.getIsPrimitive());
    p.setTag(req.getTag());
    p.setData(aos.toByteArray());
    resultLast.setParameter(p);

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogOamImpl.java

示例4: addRegisterSSResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addRegisterSSResponse(long invokeId, SSInfo ssInfo) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addRegisterSSResponse: must be networkFunctionalSsContext_V2");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.registerSS);
    resultLast.setOperationCode(oc);

    if (ssInfo != null) {
        RegisterSSResponseImpl req = new RegisterSSResponseImpl(ssInfo);
        AsnOutputStream aos = new AsnOutputStream();
        req.encodeData(aos);

        Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
        p.setTagClass(req.getTagClass());
        p.setPrimitive(req.getIsPrimitive());
        p.setTag(req.getTag());
        p.setData(aos.toByteArray());
        resultLast.setParameter(p);
    }

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:31,代码来源:MAPDialogSupplementaryImpl.java

示例5: addSendRoutingInfoForLCSResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addSendRoutingInfoForLCSResponse(long invokeId, SubscriberIdentity targetMS, LCSLocationInfo lcsLocationInfo,
        MAPExtensionContainer extensionContainer, GSNAddress vgmlcAddress, GSNAddress hGmlcAddress, GSNAddress pprAddress,
        GSNAddress additionalVGmlcAddress) throws MAPException {

    if (targetMS == null || lcsLocationInfo == null) {
        throw new MAPException("Mandatroy parameters targetMS or lcsLocationInfo cannot be null");
    }
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.locationSvcGatewayContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3)
        throw new MAPException(
                "Bad application context name for addSendRoutingInfoForLCSResponse: must be locationSvcGatewayContext_V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();
    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.sendRoutingInfoForLCS);
    resultLast.setOperationCode(oc);

    SendRoutingInfoForLCSResponseImpl resInd = new SendRoutingInfoForLCSResponseImpl(targetMS, lcsLocationInfo,
            extensionContainer, vgmlcAddress, hGmlcAddress, pprAddress, additionalVGmlcAddress);

    AsnOutputStream asnOs = new AsnOutputStream();
    resInd.encodeData(asnOs);

    Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
    p.setTagClass(resInd.getTagClass());
    p.setPrimitive(resInd.getIsPrimitive());
    p.setTag(resInd.getTag());
    p.setData(asnOs.toByteArray());

    resultLast.setParameter(p);

    this.sendReturnResultLastComponent(resultLast);

}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:39,代码来源:MAPDialogLsmImpl.java

示例6: addRestoreDataResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addRestoreDataResponse(long invokeId, ISDNAddressString hlrNumber, boolean msNotReachable, MAPExtensionContainer extensionContainer)
        throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkLocUpContext)
            || ((this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3) && (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)))
        throw new MAPException("Bad application context name for RestoreDataResponse: must be networkLocUpContext_V2 or networkLocUpContext_V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.restoreData);
    resultLast.setOperationCode(oc);

    RestoreDataResponseImpl resp = new RestoreDataResponseImpl(hlrNumber, msNotReachable, extensionContainer);

    AsnOutputStream aos = new AsnOutputStream();
    resp.encodeData(aos);

    Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
    p.setTagClass(resp.getTagClass());
    p.setPrimitive(resp.getIsPrimitive());
    p.setTag(resp.getTag());
    p.setData(aos.toByteArray());
    resultLast.setParameter(p);

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:32,代码来源:MAPDialogMobilityImpl.java

示例7: addDeactivateSSResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addDeactivateSSResponse(long invokeId, SSInfo ssInfo) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addDeactivateSSResponse: must be networkFunctionalSsContext_V2");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.deactivateSS);
    resultLast.setOperationCode(oc);

    if (ssInfo != null) {
        DeactivateSSResponseImpl req = new DeactivateSSResponseImpl(ssInfo);
        AsnOutputStream aos = new AsnOutputStream();
        req.encodeData(aos);

        Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
        p.setTagClass(req.getTagClass());
        p.setPrimitive(req.getIsPrimitive());
        p.setTag(req.getTag());
        p.setData(aos.toByteArray());
        resultLast.setParameter(p);
    }

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:31,代码来源:MAPDialogSupplementaryImpl.java

示例8: addInterrogateSSResponse_SSStatus

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addInterrogateSSResponse_SSStatus(long invokeId, SSStatus ssStatus) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addInterrogateSSResponse: must be networkFunctionalSsContext_V2");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.interrogateSS);
    resultLast.setOperationCode(oc);

    InterrogateSSResponseImpl req = new InterrogateSSResponseImpl(ssStatus);
    AsnOutputStream aos = new AsnOutputStream();
    req.encodeData(aos);

    Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
    p.setTagClass(req.getTagClass());
    p.setPrimitive(req.getIsPrimitive());
    p.setTag(req.getTag());
    p.setData(aos.toByteArray());
    resultLast.setParameter(p);

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogSupplementaryImpl.java

示例9: addCancelLocationResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addCancelLocationResponse(long invokeId, MAPExtensionContainer extensionContainer) throws MAPException {

    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.locationCancellationContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version1
                    && this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx
                    .getApplicationContextVersion() != MAPApplicationContextVersion.version3))
        throw new MAPException(
                "Bad application context name for CancelLocationResponse: must be locationCancellationContext_V1, V2 or V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.cancelLocation);
    resultLast.setOperationCode(oc);

    if (extensionContainer != null) {
        CancelLocationResponseImpl req = new CancelLocationResponseImpl(extensionContainer);

        AsnOutputStream aos = new AsnOutputStream();
        req.encodeData(aos);

        Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
        p.setTagClass(req.getTagClass());
        p.setPrimitive(req.getIsPrimitive());
        p.setTag(req.getTag());
        p.setData(aos.toByteArray());
        resultLast.setParameter(p);
    }

    this.sendReturnResultLastComponent(resultLast);

}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:38,代码来源:MAPDialogMobilityImpl.java

示例10: addPurgeMSResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addPurgeMSResponse(long invokeId, boolean freezeTMSI, boolean freezePTMSI,
        MAPExtensionContainer extensionContainer, boolean freezeMTMSI) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.msPurgingContext)
            || ((this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3) && (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)))
        throw new MAPException("Bad application context name for PurgeMSResponse: must be msPurgingContext_V3 OR  msPurgingContext_V2");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.purgeMS);
    resultLast.setOperationCode(oc);

    PurgeMSResponseImpl resp = new PurgeMSResponseImpl(freezeTMSI, freezePTMSI, extensionContainer, freezeMTMSI);

    if (this.appCntx.getApplicationContextVersion().getVersion() >= 3 && (freezeTMSI || freezePTMSI || extensionContainer != null || freezeMTMSI)) {
        AsnOutputStream aos = new AsnOutputStream();
        resp.encodeData(aos);

        Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
        p.setTagClass(resp.getTagClass());
        p.setPrimitive(resp.getIsPrimitive());
        p.setTag(resp.getTag());
        p.setData(aos.toByteArray());
        resultLast.setParameter(p);
    }

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:34,代码来源:MAPDialogMobilityImpl.java

示例11: addGetPasswordResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addGetPasswordResponse(long invokeId, Password password) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addGetPasswordResponse: must be networkFunctionalSsContext_V2");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.getPassword);
    resultLast.setOperationCode(oc);

    GetPasswordResponseImpl req = new GetPasswordResponseImpl(password);
    AsnOutputStream aos = new AsnOutputStream();
    req.encodeData(aos);

    Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
    p.setTagClass(req.getTagClass());
    p.setPrimitive(req.getIsPrimitive());
    p.setTag(req.getTag());
    p.setData(aos.toByteArray());
    resultLast.setParameter(p);

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogSupplementaryImpl.java

示例12: addSendAuthenticationInfoResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addSendAuthenticationInfoResponse(long invokeId, AuthenticationSetList authenticationSetList,
        MAPExtensionContainer extensionContainer, EpsAuthenticationSetList epsAuthenticationSetList) throws MAPException {

    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.infoRetrievalContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx
                    .getApplicationContextVersion() != MAPApplicationContextVersion.version3))
        throw new MAPException(
                "Bad application context name for addSendAuthenticationInfoResponse: must be infoRetrievalContext_V2 or V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    if (authenticationSetList != null || extensionContainer != null || epsAuthenticationSetList != null) {
        // Operation Code
        OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
        oc.setLocalOperationCode((long) MAPOperationCode.sendAuthenticationInfo);
        resultLast.setOperationCode(oc);

        SendAuthenticationInfoResponseImpl req = new SendAuthenticationInfoResponseImpl(this.appCntx
                .getApplicationContextVersion().getVersion(), authenticationSetList, extensionContainer,
                epsAuthenticationSetList);
        AsnOutputStream aos = new AsnOutputStream();
        req.encodeData(aos);

        Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
        p.setTagClass(req.getTagClass());
        p.setPrimitive(req.getIsPrimitive());
        p.setTag(req.getTag());
        p.setData(aos.toByteArray());
        resultLast.setParameter(p);
    }

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:37,代码来源:MAPDialogMobilityImpl.java

示例13: addAuthenticationFailureReportResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addAuthenticationFailureReportResponse(long invokeId, MAPExtensionContainer extensionContainer) throws MAPException {

    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.authenticationFailureReportContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
        throw new MAPException("Bad application context name for authenticationFailureReportResponse: must be authenticationFailureReportContext_V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    if (extensionContainer != null) {
        // Operation Code
        OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
        oc.setLocalOperationCode((long) MAPOperationCode.authenticationFailureReport);
        resultLast.setOperationCode(oc);

        AuthenticationFailureReportResponseImpl req = new AuthenticationFailureReportResponseImpl(extensionContainer);
        AsnOutputStream aos = new AsnOutputStream();
        req.encodeData(aos);

        Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
        p.setTagClass(req.getTagClass());
        p.setPrimitive(req.getIsPrimitive());
        p.setTag(req.getTag());
        p.setData(aos.toByteArray());
        resultLast.setParameter(p);
    }

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:33,代码来源:MAPDialogMobilityImpl.java

示例14: addMtForwardShortMessageResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addMtForwardShortMessageResponse(long invokeId, SmsSignalInfo sm_RP_UI, MAPExtensionContainer extensionContainer)
        throws MAPException {

    if (this.appCntx.getApplicationContextName() != MAPApplicationContextName.shortMsgMTRelayContext
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3)
        throw new MAPException(
                "Bad application context name for addMtForwardShortMessageResponse: must be shortMsgMTRelayContext_V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.mt_forwardSM);
    resultLast.setOperationCode(oc);

    if (sm_RP_UI != null || extensionContainer != null) {

        MtForwardShortMessageResponseImpl resp = new MtForwardShortMessageResponseImpl(sm_RP_UI, extensionContainer);
        AsnOutputStream aos = new AsnOutputStream();
        resp.encodeData(aos);

        Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
        p.setTagClass(resp.getTagClass());
        p.setPrimitive(resp.getIsPrimitive());
        p.setTag(resp.getTag());
        p.setData(aos.toByteArray());
        resultLast.setParameter(p);
    }

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:35,代码来源:MAPDialogSmsImpl.java

示例15: addAnyTimeInterrogationResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addAnyTimeInterrogationResponse(long invokeId, SubscriberInfo subscriberInfo,
        MAPExtensionContainer extensionContainer) throws MAPException {

    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.anyTimeEnquiryContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
        throw new MAPException(
                "Bad application context name for AnyTimeInterrogationRequest: must be networkLocUpContext_V3");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
            .createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.anyTimeInterrogation);
    resultLast.setOperationCode(oc);

    AnyTimeInterrogationResponseImpl req = new AnyTimeInterrogationResponseImpl(subscriberInfo, extensionContainer);
    AsnOutputStream aos = new AsnOutputStream();
    req.encodeData(aos);

    Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
    p.setTagClass(req.getTagClass());
    p.setPrimitive(req.getIsPrimitive());
    p.setTag(req.getTag());
    p.setData(aos.toByteArray());
    resultLast.setParameter(p);

    this.sendReturnResultLastComponent(resultLast);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:32,代码来源:MAPDialogMobilityImpl.java


注:本文中的org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast.setParameter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。