本文整理汇总了Java中org.mobicents.protocols.ss7.tcap.asn.comp.Invoke.setOperationCode方法的典型用法代码示例。如果您正苦于以下问题:Java Invoke.setOperationCode方法的具体用法?Java Invoke.setOperationCode怎么用?Java Invoke.setOperationCode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.mobicents.protocols.ss7.tcap.asn.comp.Invoke
的用法示例。
在下文中一共展示了Invoke.setOperationCode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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;
}
示例2: 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;
}
示例3: 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;
}
示例4: addProcessUnstructuredSSRequest
import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addProcessUnstructuredSSRequest(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(600000); // 10 minutes
else
invoke.setTimeout(customInvokeTimeout);
// Operation Code
OperationCode oc = TcapFactory.createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.processUnstructuredSS_Request);
invoke.setOperationCode(oc);
ProcessUnstructuredSSRequestImpl req = new ProcessUnstructuredSSRequestImpl(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;
}
示例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;
}
示例6: 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;
}
示例7: addSendAuthenticationInfoRequest
import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addSendAuthenticationInfoRequest(int customInvokeTimeout, IMSI imsi, int numberOfRequestedVectors,
boolean segmentationProhibited, boolean immediateResponsePreferred, ReSynchronisationInfo reSynchronisationInfo,
MAPExtensionContainer extensionContainer, RequestingNodeType requestingNodeType, PlmnId requestingPlmnId,
Integer numberOfRequestedAdditionalVectors, boolean additionalVectorsAreForEPS) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.infoRetrievalContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx
.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for sendAuthenticationInfoRequest: must be infoRetrievalContext_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.sendAuthenticationInfo);
invoke.setOperationCode(oc);
if (imsi != null) {
// parameter is optional: is no imsi is included we will not add a parameter
SendAuthenticationInfoRequestImpl req = new SendAuthenticationInfoRequestImpl(this.appCntx
.getApplicationContextVersion().getVersion(), imsi, numberOfRequestedVectors, segmentationProhibited,
immediateResponsePreferred, reSynchronisationInfo, extensionContainer, requestingNodeType,
requestingPlmnId, numberOfRequestedAdditionalVectors, additionalVectorsAreForEPS);
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;
}
示例8: 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;
}
示例9: 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;
}
示例10: 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;
}
示例11: 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);
}
}
示例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);
}
}
示例13: addInformServiceCentreRequest
import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke; //导入方法依赖的package包/类
public Long addInformServiceCentreRequest(int customInvokeTimeout, ISDNAddressString storedMSISDN, MWStatus mwStatus,
MAPExtensionContainer extensionContainer, Integer absentSubscriberDiagnosticSM,
Integer additionalAbsentSubscriberDiagnosticSM) throws MAPException {
MAPApplicationContextVersion vers = this.appCntx.getApplicationContextVersion();
if (this.appCntx.getApplicationContextName() != MAPApplicationContextName.shortMsgGatewayContext
|| (vers != MAPApplicationContextVersion.version2 && vers != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for addInformServiceCentreRequest: must be shortMsgGatewayContext_V2 or V3");
Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCInvokeRequest(InvokeClass.Class4);
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.informServiceCentre);
invoke.setOperationCode(oc);
InformServiceCentreRequestImpl req = new InformServiceCentreRequestImpl(storedMSISDN, mwStatus, extensionContainer,
absentSubscriberDiagnosticSM, 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);
}
}
示例14: 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;
}
示例15: 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);
}
}