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


Java Invoke.setParameter方法代码示例

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


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

示例1: addEraseSSRequest

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

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

示例4: addProvideSubscriberInfoRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public long addProvideSubscriberInfoRequest(long customInvokeTimeout, IMSI imsi, LMSI lmsi, RequestedInfo requestedInfo,
        MAPExtensionContainer extensionContainer, EMLPPPriority callPriority) throws MAPException {

    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.subscriberInfoEnquiryContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
        throw new MAPException("Bad application context name for ProvideSubscriberInfoRequest: must be subscriberInfoEnquiryContext_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.provideSubscriberInfo);
    invoke.setOperationCode(oc);

    ProvideSubscriberInfoRequestImpl req = new ProvideSubscriberInfoRequestImpl(imsi, lmsi, requestedInfo, extensionContainer, 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,代码行数:44,代码来源:MAPDialogMobilityImpl.java

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

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

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

示例8: addAlertServiceCentreRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addAlertServiceCentreRequest(int customInvokeTimeout, ISDNAddressString msisdn,
        AddressString serviceCentreAddress) throws MAPException {

    if (this.appCntx.getApplicationContextName() != MAPApplicationContextName.shortMsgAlertContext
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version1 && this.appCntx
                    .getApplicationContextVersion() != MAPApplicationContextVersion.version2))
        throw new MAPException(
                "Bad application context name for addAlertServiceCentreRequest: must be shortMsgAlertContext_V1 or V2");

    Invoke invoke;
    if (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version1)
        invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
                .createTCInvokeRequest(InvokeClass.Class4);
    else
        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();
        if (this.appCntx.getApplicationContextVersion() == MAPApplicationContextVersion.version1)
            oc.setLocalOperationCode((long) MAPOperationCode.alertServiceCentreWithoutResult);
        else
            oc.setLocalOperationCode((long) MAPOperationCode.alertServiceCentre);
        invoke.setOperationCode(oc);

        AlertServiceCentreRequestImpl req = new AlertServiceCentreRequestImpl(msisdn, serviceCentreAddress);
        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,代码行数:52,代码来源:MAPDialogSmsImpl.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: addRestoreDataRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
@Override
public Long addRestoreDataRequest(int customInvokeTimeout, IMSI imsi, LMSI lmsi, VLRCapability vlrCapability, MAPExtensionContainer extensionContainer,
        boolean restorationIndicator) 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 RestoreDataRequest: must be networkLocUpContext_V2 or networkLocUpContext_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.restoreData);
    invoke.setOperationCode(oc);

    RestoreDataRequestImpl req = new RestoreDataRequestImpl(imsi, lmsi, vlrCapability, extensionContainer, restorationIndicator);

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

示例11: addAnyTimeSubscriptionInterrogationRequest

import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public long addAnyTimeSubscriptionInterrogationRequest(int customTimeout, SubscriberIdentity subscriberIdentity,
        RequestedSubscriptionInfo requestedSubscriptionInfo, ISDNAddressString gsmSCFAddress, MAPExtensionContainer extensionContainer,
        boolean isLongFTNSupported) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.anyTimeInfoHandlingContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
        throw new MAPException(
                "Bad application context name for AnyTimeSubscriptionInterrogationRequest: must be anyTimeInfoHandlingContext_V3");

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

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

    AnyTimeSubscriptionInterrogationRequestImpl req = new AnyTimeSubscriptionInterrogationRequestImpl(subscriberIdentity, requestedSubscriptionInfo, gsmSCFAddress, extensionContainer, isLongFTNSupported);
    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

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

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

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

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


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