本文整理汇总了Java中org.mobicents.protocols.ss7.map.api.service.mobility.MAPDialogMobility.getLocalDialogId方法的典型用法代码示例。如果您正苦于以下问题:Java MAPDialogMobility.getLocalDialogId方法的具体用法?Java MAPDialogMobility.getLocalDialogId怎么用?Java MAPDialogMobility.getLocalDialogId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.mobicents.protocols.ss7.map.api.service.mobility.MAPDialogMobility
的用法示例。
在下文中一共展示了MAPDialogMobility.getLocalDialogId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAnyTimeInterrogationResponse
import org.mobicents.protocols.ss7.map.api.service.mobility.MAPDialogMobility; //导入方法依赖的package包/类
@Override
public void onAnyTimeInterrogationResponse(AnyTimeInterrogationResponse ind) {
if (!isStarted)
return;
this.countAtiResp++;
MAPDialogMobility curDialog = ind.getMAPDialog();
long invokeId = curDialog.getLocalDialogId();
currentRequestDef += "Rsvd AtiResp;";
String uData = this.createAtiRespData(invokeId, ind);
this.testerHost.sendNotif(SOURCE_NAME, "Rcvd: atiResp", uData, Level.DEBUG);
}
示例2: onAnyTimeInterrogationRequest
import org.mobicents.protocols.ss7.map.api.service.mobility.MAPDialogMobility; //导入方法依赖的package包/类
public void onAnyTimeInterrogationRequest(AnyTimeInterrogationRequest atir) {
logger.debug("[[[[[[[[[[ onAnyTimeInterrogationRequest ]]]]]]]]]]");
try {
MAPDialogMobility curDialog = atir.getMAPDialog();
long invokeId = curDialog.getLocalDialogId();
ISDNAddressString vlrNumber = mapProvider.getMAPParameterFactory().createISDNAddressString(AddressNature.international_number, NumberingPlan.ISDN, HP_VLR_NUMBER);
LocationNumberMap locationNumber = null;
LSAIdentity selectedLSAId = null;
ISDNAddressString mscNumber = null;
LocationInformationEPS locationInformationEPS = null;
UserCSGInformation userCSGInformation = null;
int mcc = HP_MCC;
int mnc = HP_MNC;
int lac = HP_LAC;
int cellId = HP_CELLID;
int ageOfLocationInformation = HP_AGE_OF_LOCATION;
GeographicalInformation geographicalInformation = mapProvider.getMAPParameterFactory().createGeographicalInformation(HP_GEO_INFO_d, HP_GEO_INFO_d1, HP_GEO_INFO_d2);
boolean saiPresent = false;
GeodeticInformation geodeticInformation = null;
boolean currentLocationRetrieved = false;
CellGlobalIdOrServiceAreaIdFixedLength cellGlobalIdOrServiceAreaIdFixedLength = mapProvider.getMAPParameterFactory()
.createCellGlobalIdOrServiceAreaIdFixedLength(mcc, mnc, lac, cellId);
CellGlobalIdOrServiceAreaIdOrLAI cellGlobalIdOrServiceAreaIdOrLAI = mapProvider.getMAPParameterFactory().createCellGlobalIdOrServiceAreaIdOrLAI(
cellGlobalIdOrServiceAreaIdFixedLength);
LocationInformation li = mapProvider.getMAPParameterFactory().createLocationInformation(ageOfLocationInformation, geographicalInformation,
vlrNumber, locationNumber, cellGlobalIdOrServiceAreaIdOrLAI, null, selectedLSAId, mscNumber, geodeticInformation,
currentLocationRetrieved, saiPresent, locationInformationEPS, userCSGInformation);
SubscriberState ss = this.mapProvider.getMAPParameterFactory().createSubscriberState(SubscriberStateChoice.netDetNotReachable, NotReachableReason.imsiDetached);
SubscriberInfo si = this.mapProvider.getMAPParameterFactory().createSubscriberInfo(li, ss, null, null, null, null, null, null, null);
// clamp InvokeID
if (invokeId > 127) { invokeId = 127; }
if (invokeId < -128) { invokeId = -128; }
curDialog.addAnyTimeInterrogationResponse(invokeId, si, null);
} catch (MAPException e) {
logger.error("Error while sending SendRoutingInfoForSMResponse ", e);
}
}
示例3: onProvideSubscriberInfoRequest
import org.mobicents.protocols.ss7.map.api.service.mobility.MAPDialogMobility; //导入方法依赖的package包/类
public void onProvideSubscriberInfoRequest(ProvideSubscriberInfoRequest psir) {
logger.debug("[[[[[[[[[[ onProvideSubscriberInfoRequest ]]]]]]]]]]");
try {
MAPDialogMobility curDialog = psir.getMAPDialog();
long invokeId = curDialog.getLocalDialogId();
ISDNAddressString vlrNumber = mapProvider.getMAPParameterFactory().createISDNAddressString(AddressNature.international_number, NumberingPlan.ISDN, "5555555666");
LocationNumberMap locationNumber = null;
LSAIdentity selectedLSAId = null;
ISDNAddressString mscNumber = null;
LocationInformationEPS locationInformationEPS = null;
UserCSGInformation userCSGInformation = null;
int mcc = HP_MCC;
int mnc = HP_MNC;
int lac = HP_LAC;
int cellId = HP_CELLID;
int ageOfLocationInformation = HP_AGE_OF_LOCATION;
GeographicalInformation geographicalInformation = mapProvider.getMAPParameterFactory().createGeographicalInformation(HP_GEO_INFO_d, HP_GEO_INFO_d1, HP_GEO_INFO_d2);
boolean saiPresent = false;
GeodeticInformation geodeticInformation = null;
boolean currentLocationRetrieved = false;
CellGlobalIdOrServiceAreaIdFixedLength cellGlobalIdOrServiceAreaIdFixedLength = mapProvider.getMAPParameterFactory()
.createCellGlobalIdOrServiceAreaIdFixedLength(mcc, mnc, lac, cellId);
CellGlobalIdOrServiceAreaIdOrLAI cellGlobalIdOrServiceAreaIdOrLAI = mapProvider.getMAPParameterFactory().createCellGlobalIdOrServiceAreaIdOrLAI(
cellGlobalIdOrServiceAreaIdFixedLength);
LocationInformation li = mapProvider.getMAPParameterFactory().createLocationInformation(ageOfLocationInformation, geographicalInformation,
vlrNumber, locationNumber, cellGlobalIdOrServiceAreaIdOrLAI, null, selectedLSAId, mscNumber, geodeticInformation,
currentLocationRetrieved, saiPresent, locationInformationEPS, userCSGInformation);
SubscriberState ss = this.mapProvider.getMAPParameterFactory().createSubscriberState(SubscriberStateChoice.netDetNotReachable, NotReachableReason.imsiDetached);
SubscriberInfo si = this.mapProvider.getMAPParameterFactory().createSubscriberInfo(li, ss, null, null, null, null, null, null, null);
// clamp InvokeID
if (invokeId > 127) { invokeId = 127; }
if (invokeId < -128) { invokeId = -128; }
curDialog.addProvideSubscriberInfoResponse(invokeId, si, null);
} catch (MAPException e) {
logger.error("Error while sending SendRoutingInfoForSMResponse ", e);
}
}