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


Java Invoke.setTimeout方法代码示例

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


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

示例1: addDeactivateSSRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addDeactivateSSRequest(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 addDeactivateSSRequest: 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.deactivateSS);
    invoke.setOperationCode(oc);

    DeactivateSSRequestImpl req = new DeactivateSSRequestImpl(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

示例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: addNoteSubscriberPresentRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addNoteSubscriberPresentRequest(int customInvokeTimeout, IMSI imsi) throws MAPException {

    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.mwdMngtContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version1))
        throw new MAPException("Bad application context name for addNoteSubscriberPresentRequest: must be mwdMngtContext_V1");

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

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

    NoteSubscriberPresentRequestImpl req = new NoteSubscriberPresentRequestImpl(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());
    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,代码行数:41,代码来源:MAPDialogSmsImpl.java

示例5: addUnstructuredSSNotifyRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addUnstructuredSSNotifyRequest(int customInvokeTimeout, CBSDataCodingScheme ussdDataCodingScheme,
        USSDString ussdString, AlertingPattern alertingPatter, ISDNAddressString msisdn) throws MAPException {

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

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

    if (ussdString != null) {
        UnstructuredSSRequestImpl req = new UnstructuredSSRequestImpl(ussdDataCodingScheme, ussdString, alertingPatter, 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,代码来源:MAPDialogSupplementaryImpl.java

示例6: 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

示例7: addProvideRoamingNumberRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addProvideRoamingNumberRequest(int customInvokeTimeout, IMSI imsi, ISDNAddressString mscNumber,
        ISDNAddressString msisdn, LMSI lmsi, ExternalSignalInfo gsmBearerCapability, ExternalSignalInfo networkSignalInfo,
        boolean suppressionOfAnnouncement, ISDNAddressString gmscAddress, CallReferenceNumber callReferenceNumber,
        boolean orInterrogation, MAPExtensionContainer extensionContainer, AlertingPattern alertingPattern,
        boolean ccbsCall, SupportedCamelPhases supportedCamelPhasesInInterrogatingNode,
        ExtExternalSignalInfo additionalSignalInfo, boolean orNotSupportedInGMSC, boolean prePagingSupported,
        boolean longFTNSupported, boolean suppressVtCsi, OfferedCamel4CSIs offeredCamel4CSIsInInterrogatingNode,
        boolean mtRoamingRetrySupported, PagingArea pagingArea, EMLPPPriority callPriority, boolean mtrfIndicator,
        ISDNAddressString oldMSCNumber) 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 addProvideRoamingNumberRequest: must be roamingNumberEnquiryContext _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.provideRoamingNumber);
    invoke.setOperationCode(oc);

    ProvideRoamingNumberRequestImpl req = new ProvideRoamingNumberRequestImpl(imsi, mscNumber, msisdn, lmsi,
            gsmBearerCapability, networkSignalInfo, suppressionOfAnnouncement, gmscAddress, callReferenceNumber,
            orInterrogation, extensionContainer, alertingPattern, ccbsCall, supportedCamelPhasesInInterrogatingNode,
            additionalSignalInfo, orNotSupportedInGMSC, prePagingSupported, longFTNSupported, suppressVtCsi,
            offeredCamel4CSIsInInterrogatingNode, mtRoamingRetrySupported, pagingArea, callPriority, mtrfIndicator,
            oldMSCNumber, 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,代码行数:56,代码来源:MAPDialogCallHandlingImpl.java

示例8: 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

示例9: addActivateTraceModeRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addActivateTraceModeRequest(int customInvokeTimeout, IMSI imsi, TraceReference traceReference, TraceType traceType, AddressString omcId,
        MAPExtensionContainer extensionContainer, TraceReference2 traceReference2, TraceDepthList traceDepthList, TraceNETypeList traceNeTypeList,
        TraceInterfaceList traceInterfaceList, TraceEventList traceEventList, GSNAddress traceCollectionEntity, MDTConfiguration mdtConfiguration)
        throws MAPException {

    boolean isTracingContext = false;
    boolean isNetworkLocUpContext = false;
    boolean isGprsLocationUpdateContext = false;
    if ((this.appCntx.getApplicationContextName() == MAPApplicationContextName.tracingContext)
            && (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version1
                    || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version2 || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version3))
        isTracingContext = true;
    if ((this.appCntx.getApplicationContextName() == MAPApplicationContextName.networkLocUpContext)
            && (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version1
                    || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version2 || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version3))
        isNetworkLocUpContext = true;
    if ((this.appCntx.getApplicationContextName() == MAPApplicationContextName.gprsLocationUpdateContext)
            && (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version3))
        isGprsLocationUpdateContext = true;

    if (!isTracingContext && !isNetworkLocUpContext && !isGprsLocationUpdateContext)
        throw new MAPException(
                "Bad application context name for activateTraceModeRequest: must be tracingContext_V1, V2 or V3, networkLocUpContext_V1, V2 or V3 or 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.activateTraceMode);
    invoke.setOperationCode(oc);

    ActivateTraceModeRequestImpl_Oam req = new ActivateTraceModeRequestImpl_Oam(imsi, traceReference, traceType, omcId, extensionContainer, traceReference2,
            traceDepthList, traceNeTypeList, traceInterfaceList, traceEventList, traceCollectionEntity, mdtConfiguration);
    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,代码行数:60,代码来源:MAPDialogOamImpl.java

示例10: addProvideSubscriberLocationRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addProvideSubscriberLocationRequest(int customInvokeTimeout, LocationType locationType,
        ISDNAddressString mlcNumber, LCSClientID lcsClientID, boolean privacyOverride, IMSI imsi, ISDNAddressString msisdn,
        LMSI lmsi, IMEI imei, LCSPriority lcsPriority, LCSQoS lcsQoS, MAPExtensionContainer extensionContainer,
        SupportedGADShapes supportedGADShapes, Integer lcsReferenceNumber, Integer lcsServiceTypeID,
        LCSCodeword lcsCodeword, LCSPrivacyCheck lcsPrivacyCheck, AreaEventInfo areaEventInfo, GSNAddress hgmlcAddress,
        boolean moLrShortCircuitIndicator, PeriodicLDRInfo periodicLDRInfo, ReportingPLMNList reportingPLMNList)
        throws MAPException {

    if (locationType == null || mlcNumber == null) {
        throw new MAPException(
                "addProvideSubscriberLocationRequest: Mandatroy parameters locationType or mlcNumber cannot be null");
    }

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

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

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

        ProvideSubscriberLocationRequestImpl req = new ProvideSubscriberLocationRequestImpl(locationType, mlcNumber,
                lcsClientID, privacyOverride, imsi, msisdn, lmsi, imei, lcsPriority, lcsQoS, extensionContainer,
                supportedGADShapes, lcsReferenceNumber, lcsServiceTypeID, lcsCodeword, lcsPrivacyCheck, areaEventInfo,
                hgmlcAddress, moLrShortCircuitIndicator, periodicLDRInfo, reportingPLMNList);

        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,代码行数:57,代码来源:MAPDialogLsmImpl.java

示例11: addRegisterSSRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addRegisterSSRequest(int customInvokeTimeout, SSCode ssCode, BasicServiceCode basicService, AddressString forwardedToNumber,
        ISDNAddressString forwardedToSubaddress, Integer noReplyConditionTime, EMLPPPriority defaultPriority, Integer nbrUser,
        ISDNAddressString longFTNSupported) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addRegisterSSRequest: 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.registerSS);
    invoke.setOperationCode(oc);

    RegisterSSRequestImpl req = new RegisterSSRequestImpl(ssCode, basicService, forwardedToNumber, forwardedToSubaddress, noReplyConditionTime,
            defaultPriority, nbrUser, longFTNSupported);
    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,代码行数:43,代码来源:MAPDialogSupplementaryImpl.java

示例12: 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

示例13: addAnyTimeInterrogationRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public long addAnyTimeInterrogationRequest(long customInvokeTimeout, SubscriberIdentity subscriberIdentity,
        RequestedInfo requestedInfo, ISDNAddressString gsmSCFAddress, 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");

    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.anyTimeInterrogation);
    invoke.setOperationCode(oc);

    AnyTimeInterrogationRequestImpl req = new AnyTimeInterrogationRequestImpl(subscriberIdentity, requestedInfo,
            gsmSCFAddress, 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,代码行数:46,代码来源:MAPDialogMobilityImpl.java

示例14: addActivateTraceModeRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addActivateTraceModeRequest(int customInvokeTimeout, IMSI imsi, TraceReference traceReference, TraceType traceType, AddressString omcId,
        MAPExtensionContainer extensionContainer, TraceReference2 traceReference2, TraceDepthList traceDepthList, TraceNETypeList traceNeTypeList,
        TraceInterfaceList traceInterfaceList, TraceEventList traceEventList, GSNAddress traceCollectionEntity, MDTConfiguration mdtConfiguration)
        throws MAPException {

    boolean isTracingContext = false;
    boolean isNetworkLocUpContext = false;
    boolean isGprsLocationUpdateContext = false;
    if ((this.appCntx.getApplicationContextName() == MAPApplicationContextName.tracingContext)
            && (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version1
                    || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version2 || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version3))
        isTracingContext = true;
    if ((this.appCntx.getApplicationContextName() == MAPApplicationContextName.networkLocUpContext)
            && (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version1
                    || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version2 || this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version3))
        isNetworkLocUpContext = true;
    if ((this.appCntx.getApplicationContextName() == MAPApplicationContextName.gprsLocationUpdateContext)
            && (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version3))
        isGprsLocationUpdateContext = true;

    if (!isTracingContext && !isNetworkLocUpContext && !isGprsLocationUpdateContext)
        throw new MAPException(
                "Bad application context name for activateTraceModeRequest: must be tracingContext_V1, V2 or V3, networkLocUpContext_V1, V2 or V3 or 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.activateTraceMode);
    invoke.setOperationCode(oc);

    ActivateTraceModeRequestImpl_Mobility req = new ActivateTraceModeRequestImpl_Mobility(imsi, traceReference, traceType, omcId, extensionContainer, traceReference2,
            traceDepthList, traceNeTypeList, traceInterfaceList, traceEventList, traceCollectionEntity, mdtConfiguration);
    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,代码行数:60,代码来源:MAPDialogMobilityImpl.java

示例15: addResetRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addResetRequest(int customInvokeTimeout, NetworkResource networkResource, ISDNAddressString hlrNumber, ArrayList<IMSI> hlrList)
        throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.resetContext)
            || ((this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2) && (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version1)))
        throw new MAPException("Bad application context name for ResetRequest: must be resetContext_V1 or V2");

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

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

    int version = this.appCntx.getApplicationContextVersion().getVersion();
    ResetRequestImpl req = new ResetRequestImpl(networkResource, hlrNumber, hlrList, version);

    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,代码行数:43,代码来源:MAPDialogMobilityImpl.java


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