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


Java Invoke.setInvokeId方法代码示例

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


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

示例1: addSendImsiRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addSendImsiRequest(int customInvokeTimeout, ISDNAddressString msisdn) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.imsiRetrievalContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2))
        throw new MAPException("Bad application context name for sendImsiRequest: must be imsiRetrievalContext_V2");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_m);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.sendIMSI);
    invoke.setOperationCode(oc);

    SendImsiRequestImpl req = new SendImsiRequestImpl(msisdn);
    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

    return invokeId;
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:40,代码来源:MAPDialogOamImpl.java

示例2: addInterrogateSSRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addInterrogateSSRequest(int customInvokeTimeout, SSForBSCode ssForBSCode) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addInterrogateSSRequest: must be networkFunctionalSsContext_V2");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_m);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.interrogateSS);
    invoke.setOperationCode(oc);

    InterrogateSSRequestImpl req = new InterrogateSSRequestImpl(ssForBSCode);
    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

    return invokeId;
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:40,代码来源:MAPDialogSupplementaryImpl.java

示例3: addGetPasswordRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addGetPasswordRequest(int customInvokeTimeout, Long linkedId, GuidanceInfo guidanceInfo) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addGetPasswordRequest: must be networkFunctionalSsContext_V2");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_ml);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.getPassword);
    invoke.setOperationCode(oc);

    GetPasswordRequestImpl req = new GetPasswordRequestImpl(guidanceInfo);
    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
        invoke.setLinkedId(linkedId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

    return invokeId;
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:41,代码来源:MAPDialogSupplementaryImpl.java

示例4: addRegisterPasswordRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addRegisterPasswordRequest(int customInvokeTimeout, SSCode ssCode) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addRegisterPasswordRequest: must be networkFunctionalSsContext_V2");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_m);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.registerPassword);
    invoke.setOperationCode(oc);

    RegisterPasswordRequestImpl req = new RegisterPasswordRequestImpl(ssCode);
    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

    return invokeId;
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:40,代码来源:MAPDialogSupplementaryImpl.java

示例5: addSendRoutingInformationRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addSendRoutingInformationRequest(int customInvokeTimeout, ISDNAddressString msisdn, CUGCheckInfo cugCheckInfo,
        Integer numberOfForwarding, InterrogationType interrogationType, boolean orInterrogation, Integer orCapability,
        ISDNAddressString gmscAddress, CallReferenceNumber callReferenceNumber, ForwardingReason forwardingReason,
        ExtBasicServiceCode basicServiceGroup, ExternalSignalInfo networkSignalInfo, CamelInfo camelInfo,
        boolean suppressionOfAnnouncement, MAPExtensionContainer extensionContainer, AlertingPattern alertingPattern,
        boolean ccbsCall, Integer supportedCCBSPhase, ExtExternalSignalInfo additionalSignalInfo,
        ISTSupportIndicator istSupportIndicator, boolean prePagingSupported,
        CallDiversionTreatmentIndicator callDiversionTreatmentIndicator, boolean longFTNSupported, boolean suppressVtCSI,
        boolean suppressIncomingCallBarring, boolean gsmSCFInitiatedCall, ExtBasicServiceCode basicServiceGroup2,
        ExternalSignalInfo networkSignalInfo2, SuppressMTSS supressMTSS, boolean mtRoamingRetrySupported,
        EMLPPPriority callPriority) throws MAPException {

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

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_m);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.sendRoutingInfo);
    invoke.setOperationCode(oc);

    if (true) { // validate parameters here...
        SendRoutingInformationRequestImpl req = new SendRoutingInformationRequestImpl(this.appCntx
                .getApplicationContextVersion().getVersion(), msisdn, cugCheckInfo, numberOfForwarding, interrogationType,
                orInterrogation, orCapability, gmscAddress, callReferenceNumber, forwardingReason, basicServiceGroup,
                networkSignalInfo, camelInfo, suppressionOfAnnouncement, extensionContainer, alertingPattern, ccbsCall,
                supportedCCBSPhase, additionalSignalInfo, istSupportIndicator, prePagingSupported,
                callDiversionTreatmentIndicator, longFTNSupported, suppressVtCSI, suppressIncomingCallBarring,
                gsmSCFInitiatedCall, basicServiceGroup2, networkSignalInfo2, supressMTSS, mtRoamingRetrySupported,
                callPriority);
        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());
        invoke.setParameter(p);
    }

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);
    return invokeId;
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:61,代码来源:MAPDialogCallHandlingImpl.java

示例6: addUpdateGprsLocationRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addUpdateGprsLocationRequest(int customInvokeTimeout, IMSI imsi, ISDNAddressString sgsnNumber,
        GSNAddress sgsnAddress, MAPExtensionContainer extensionContainer, SGSNCapability sgsnCapability,
        boolean informPreviousNetworkEntity, boolean psLCSNotSupportedByUE, GSNAddress vGmlcAddress, ADDInfo addInfo,
        EPSInfo epsInfo, boolean servingNodeTypeIndicator, boolean skipSubscriberDataUpdate, UsedRATType usedRATType,
        boolean gprsSubscriptionDataNotNeeded, boolean nodeTypeIndicator, boolean areaRestricted,
        boolean ueReachableIndicator, boolean epsSubscriptionDataNotNeeded, UESRVCCCapability uesrvccCapability)
        throws MAPException {

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

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_m);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.updateGprsLocation);
    invoke.setOperationCode(oc);

    UpdateGprsLocationRequestImpl req = new UpdateGprsLocationRequestImpl(imsi, sgsnNumber, sgsnAddress,
            extensionContainer, sgsnCapability, informPreviousNetworkEntity, psLCSNotSupportedByUE, vGmlcAddress, addInfo,
            epsInfo, servingNodeTypeIndicator, skipSubscriberDataUpdate, usedRATType, gprsSubscriptionDataNotNeeded,
            nodeTypeIndicator, areaRestricted, ueReachableIndicator, epsSubscriptionDataNotNeeded, uesrvccCapability,
            this.appCntx.getApplicationContextVersion().getVersion());

    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

    return invokeId;

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

示例7: addIstCommandRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addIstCommandRequest(int customInvokeTimeout, IMSI imsi, MAPExtensionContainer extensionContainer) throws MAPException {
    MAPApplicationContextVersion vers = this.appCntx.getApplicationContextVersion();
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.ServiceTerminationContext)
            || (vers != MAPApplicationContextVersion.version3))
        throw new MAPException(
                "Bad application context name for addIstCommandRequest: must be ServiceTerminationContext_V3");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_m);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.istCommand);
    invoke.setOperationCode(oc);

    IstCommandRequestImpl req = new IstCommandRequestImpl(imsi, 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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);
    return invokeId;

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

示例8: addCancelLocationRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addCancelLocationRequest(int customInvokeTimeout, IMSI imsi, IMSIWithLMSI imsiWithLmsi,
        CancellationType cancellationType, MAPExtensionContainer extensionContainer, TypeOfUpdate typeOfUpdate,
        boolean mtrfSupportedAndAuthorized, boolean mtrfSupportedAndNotAuthorized, ISDNAddressString newMSCNumber,
        ISDNAddressString newVLRNumber, LMSI newLmsi) 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 CancelLocationRequest: must be locationCancellationContext_V1, V2 or V3");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_m);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.cancelLocation);
    invoke.setOperationCode(oc);

    CancelLocationRequestImpl req = new CancelLocationRequestImpl(imsi, imsiWithLmsi, cancellationType, extensionContainer,
            typeOfUpdate, mtrfSupportedAndAuthorized, mtrfSupportedAndNotAuthorized, newMSCNumber, newVLRNumber, newLmsi,
            this.appCntx.getApplicationContextVersion().getVersion());

    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

    return invokeId;

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

示例9: addPurgeMSRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addPurgeMSRequest(int customInvokeTimeout, IMSI imsi, ISDNAddressString vlrNumber,
        ISDNAddressString sgsnNumber, MAPExtensionContainer extensionContainer) 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 PurgeMSRequest: must be msPurgingContext_V2 or msPurgingContext_V3");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_m);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.purgeMS);
    invoke.setOperationCode(oc);

    PurgeMSRequestImpl req = new PurgeMSRequestImpl(imsi, vlrNumber, sgsnNumber, extensionContainer, this.appCntx
            .getApplicationContextVersion().getVersion());

    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

    return invokeId;

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

示例10: addDeleteSubscriberDataRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addDeleteSubscriberDataRequest(long customInvokeTimeout, IMSI imsi, ArrayList<ExtBasicServiceCode> basicServiceList, ArrayList<SSCode> ssList,
        boolean roamingRestrictionDueToUnsupportedFeature, ZoneCode regionalSubscriptionIdentifier, boolean vbsGroupIndication,
        boolean vgcsGroupIndication, boolean camelSubscriptionInfoWithdraw, MAPExtensionContainer extensionContainer,
        GPRSSubscriptionDataWithdraw gprsSubscriptionDataWithdraw, boolean roamingRestrictedInSgsnDueToUnsuppportedFeature,
        LSAInformationWithdraw lsaInformationWithdraw, boolean gmlcListWithdraw, boolean istInformationWithdraw, SpecificCSIWithdraw specificCSIWithdraw,
        boolean chargingCharacteristicsWithdraw, boolean stnSrWithdraw, EPSSubscriptionDataWithdraw epsSubscriptionDataWithdraw,
        boolean apnOiReplacementWithdraw, boolean csgSubscriptionDeleted) throws MAPException {

    boolean isSubscriberDataMngtContext = false;
    if ((this.appCntx.getApplicationContextName() == MAPApplicationContextName.subscriberDataMngtContext)
            && (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version1
                    || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version2 || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version3))
        isSubscriberDataMngtContext = true;
    if (isSubscriberDataMngtContext == false)
        throw new MAPException("Bad application context name for DeleteSubscriberDataRequest: must be subscriberDataMngtContext_V1, V2 or V3");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default) {
        invoke.setTimeout(_Timer_m);
    } else {
        invoke.setTimeout(customInvokeTimeout);
    }

    // Operation Code
    OperationCode oc = TcapFactory.createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.deleteSubscriberData);
    invoke.setOperationCode(oc);

    DeleteSubscriberDataRequestImpl req = new DeleteSubscriberDataRequestImpl(imsi, basicServiceList, ssList, roamingRestrictionDueToUnsupportedFeature,
            regionalSubscriptionIdentifier, vbsGroupIndication, vgcsGroupIndication, camelSubscriptionInfoWithdraw, extensionContainer,
            gprsSubscriptionDataWithdraw, roamingRestrictedInSgsnDueToUnsuppportedFeature, lsaInformationWithdraw, gmlcListWithdraw,
            istInformationWithdraw, specificCSIWithdraw, chargingCharacteristicsWithdraw, stnSrWithdraw, epsSubscriptionDataWithdraw,
            apnOiReplacementWithdraw, csgSubscriptionDeleted);

    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

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

示例11: addCheckImeiRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addCheckImeiRequest(long customInvokeTimeout, IMEI imei, RequestedEquipmentInfo requestedEquipmentInfo,
        MAPExtensionContainer extensionContainer) throws MAPException {

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

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default) {
        invoke.setTimeout(_Timer_m);
    } else {
        invoke.setTimeout(customInvokeTimeout);
    }

    // Operation Code
    OperationCode oc = TcapFactory.createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.checkIMEI);
    invoke.setOperationCode(oc);

    CheckImeiRequestImpl req = new CheckImeiRequestImpl(this.appCntx.getApplicationContextVersion().getVersion(), imei,
            requestedEquipmentInfo, 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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

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

示例12: addReportSMDeliveryStatusRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addReportSMDeliveryStatusRequest(int customInvokeTimeout, ISDNAddressString msisdn,
        AddressString serviceCentreAddress, SMDeliveryOutcome sMDeliveryOutcome, Integer absentSubscriberDiagnosticSM,
        MAPExtensionContainer extensionContainer, boolean gprsSupportIndicator, boolean deliveryOutcomeIndicator,
        SMDeliveryOutcome additionalSMDeliveryOutcome, Integer additionalAbsentSubscriberDiagnosticSM) throws MAPException {

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

    if (msisdn == null || serviceCentreAddress == null
            || (vers != MAPApplicationContextVersion.version1 && sMDeliveryOutcome == null))
        throw new MAPException("msisdn, serviceCentreAddress and sMDeliveryOutcome must not be null");

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_s);
    else
        invoke.setTimeout(customInvokeTimeout);

    try {
        // Operation Code
        OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
        oc.setLocalOperationCode((long) MAPOperationCode.reportSM_DeliveryStatus);
        invoke.setOperationCode(oc);

        ReportSMDeliveryStatusRequestImpl req = new ReportSMDeliveryStatusRequestImpl(this.getApplicationContext()
                .getApplicationContextVersion().getVersion(), msisdn, serviceCentreAddress, sMDeliveryOutcome,
                absentSubscriberDiagnosticSM, extensionContainer, gprsSupportIndicator, deliveryOutcomeIndicator,
                additionalSMDeliveryOutcome, additionalAbsentSubscriberDiagnosticSM);
        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());
        invoke.setParameter(p);

        Long invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);

        this.sendInvokeComponent(invoke);

        return invokeId;

    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:53,代码来源:MAPDialogSmsImpl.java

示例13: addSendIdentificationRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addSendIdentificationRequest(int customInvokeTimeout, TMSI tmsi, Integer numberOfRequestedVectors,
        boolean segmentationProhibited, MAPExtensionContainer extensionContainer, ISDNAddressString mscNumber,
        LAIFixedLength previousLAI, Integer hopCounter, boolean mtRoamingForwardingSupported,
        ISDNAddressString newVLRNumber, LMSI lmsi) throws MAPException {

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

    Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
    if (customInvokeTimeout == _Timer_Default)
        invoke.setTimeout(_Timer_s);
    else
        invoke.setTimeout(customInvokeTimeout);

    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.sendIdentification);
    invoke.setOperationCode(oc);

    SendIdentificationRequestImpl req = new SendIdentificationRequestImpl(tmsi, numberOfRequestedVectors,
            segmentationProhibited, extensionContainer, mscNumber, previousLAI, hopCounter, mtRoamingForwardingSupported,
            newVLRNumber, lmsi, this.appCntx.getApplicationContextVersion().getVersion());

    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());
    invoke.setParameter(p);

    Long invokeId;
    try {
        invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }

    this.sendInvokeComponent(invoke);

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

示例14: addSubscriberLocationReportRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addSubscriberLocationReportRequest(int customInvokeTimeout, LCSEvent lcsEvent, LCSClientID lcsClientID,
        LCSLocationInfo lcsLocationInfo, ISDNAddressString msisdn, IMSI imsi, IMEI imei, ISDNAddressString naEsrd,
        ISDNAddressString naEsrk, ExtGeographicalInformation locationEstimate, Integer ageOfLocationEstimate,
        SLRArgExtensionContainer slrArgExtensionContainer, AddGeographicalInformation addLocationEstimate,
        DeferredmtlrData deferredmtlrData, Integer lcsReferenceNumber, PositioningDataInformation geranPositioningData,
        UtranPositioningDataInfo utranPositioningData, CellGlobalIdOrServiceAreaIdOrLAI cellIdOrSai,
        GSNAddress hgmlcAddress, Integer lcsServiceTypeID, boolean saiPresent, boolean pseudonymIndicator,
        AccuracyFulfilmentIndicator accuracyFulfilmentIndicator, VelocityEstimate velocityEstimate, Integer sequenceNumber,
        PeriodicLDRInfo periodicLDRInfo, boolean moLrShortCircuitIndicator,
        GeranGANSSpositioningData geranGANSSpositioningData, UtranGANSSpositioningData utranGANSSpositioningData,
        ServingNodeAddress targetServingNodeForHandover) throws MAPException {

    if (lcsEvent == null || lcsClientID == null || lcsLocationInfo == null) {
        throw new MAPException("Mandatroy parameters lCSEvent, lCSClientID or lCSLocationInfo cannot be null");
    }
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.locationSvcEnquiryContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3)
        throw new MAPException(
                "Bad application context name for addSubscriberLocationReportRequest: must be locationSvcEnquiryContext_V3");

    try {
        Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
        if (customInvokeTimeout == _Timer_Default)
            invoke.setTimeout(_Timer_m);
        else
            invoke.setTimeout(customInvokeTimeout);

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

        SubscriberLocationReportRequestImpl req = new SubscriberLocationReportRequestImpl(lcsEvent, lcsClientID,
                lcsLocationInfo, msisdn, imsi, imei, naEsrd, naEsrk, locationEstimate, ageOfLocationEstimate,
                slrArgExtensionContainer, addLocationEstimate, deferredmtlrData, lcsReferenceNumber, geranPositioningData,
                utranPositioningData, cellIdOrSai, hgmlcAddress, lcsServiceTypeID, saiPresent, pseudonymIndicator,
                accuracyFulfilmentIndicator, velocityEstimate, sequenceNumber, periodicLDRInfo, moLrShortCircuitIndicator,
                geranGANSSpositioningData, utranGANSSpositioningData, targetServingNodeForHandover);

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

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

        invoke.setParameter(p);

        Long invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);

        this.sendInvokeComponent(invoke);

        return invokeId;
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:61,代码来源:MAPDialogLsmImpl.java

示例15: addSendRoutingInfoForLCSRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addSendRoutingInfoForLCSRequest(int customInvokeTimeout, ISDNAddressString mlcNumber,
        SubscriberIdentity targetMS, MAPExtensionContainer extensionContainer) throws MAPException {

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

    try {
        Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest();
        if (customInvokeTimeout == _Timer_Default)
            invoke.setTimeout(_Timer_m);
        else
            invoke.setTimeout(customInvokeTimeout);

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

        SendRoutingInfoForLCSRequestImpl req = new SendRoutingInfoForLCSRequestImpl(mlcNumber, targetMS, extensionContainer);

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

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

        invoke.setParameter(p);

        Long invokeId = this.tcapDialog.getNewInvokeId();
        invoke.setInvokeId(invokeId);

        this.sendInvokeComponent(invoke);

        return invokeId;
    } catch (TCAPException e) {
        throw new MAPException(e.getMessage(), e);
    }
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:47,代码来源:MAPDialogLsmImpl.java


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