org.mobicents.protocols.ss7.map.api.service.mobility.subscriberInformation.AnyTimeInterrogationRequest Java Examples
The following examples show how to use
org.mobicents.protocols.ss7.map.api.service.mobility.subscriberInformation.AnyTimeInterrogationRequest.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MobileCoreNetworkInterfaceSbb.java From gmlc with GNU Affero General Public License v3.0 | 6 votes |
/** * Subscriber Information services * MAP_ANY_TIME_INTERROGATION (ATI) Events */ /* * MAP ATI Request Event */ public void onAnyTimeInterrogationRequest(AnyTimeInterrogationRequest event, ActivityContextInterface aci) { try { if (this.logger.isFineEnabled()) { this.logger.fine("\nReceived onAnyTimeInterrogationRequest = " + event); } MobileCoreNetworkGenerationLocationType = MobileCoreNetworkGeneration.GSM; } catch (Exception e) { logger.severe(String.format("Error while trying to process onAnyTimeInterrogationRequest=%s", event), e); } }
Example #2
Source File: SS7Honeypot.java From SigFW with GNU Affero General Public License v3.0 | 4 votes |
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); } }
Example #3
Source File: SS7Firewall.java From SigFW with GNU Affero General Public License v3.0 | 4 votes |
@Override public void onAnyTimeInterrogationRequest(AnyTimeInterrogationRequest request) { //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. logger.debug("[[[[[[[[[[ onAnyTimeInterrogationRequest ]]]]]]]]]]"); }
Example #4
Source File: Server.java From gmlc with GNU Affero General Public License v3.0 | 4 votes |
@Override public void onAnyTimeInterrogationRequest(AnyTimeInterrogationRequest atiReq) { if (logger.isDebugEnabled()) { logger.debug( String.format("onAnyTimeInterrogationRequest for DialogId=%d", atiReq.getMAPDialog().getLocalDialogId())); } if (logger.isInfoEnabled()) { logger.info(String.format("onAnyTimeInterrogationRequest for DialogId=%d", atiReq.getMAPDialog().getLocalDialogId())); } /*else { logger.warn(String.format("onAnyTimeInterrogationRequest for DialogId=%d", atiReq.getMAPDialog().getLocalDialogId())); }*/ try { long invokeId = atiReq.getInvokeId(); MAPDialogMobility mapDialogMobility = atiReq.getMAPDialog(); mapDialogMobility.setUserObject(invokeId); MAPParameterFactoryImpl mapFactory = new MAPParameterFactoryImpl(); // Create Subscriber Information parameters including Location Information and Subscriber State // for concerning MAP operation int mcc, mnc, lac, cellIdOrServiceAreaCode; mcc = 748; mnc = 1; lac = 23; cellIdOrServiceAreaCode = 369; CellGlobalIdOrServiceAreaIdFixedLength cellGlobalIdOrServiceAreaIdFixedLength = mapFactory .createCellGlobalIdOrServiceAreaIdFixedLength(mcc, mnc, lac, cellIdOrServiceAreaCode); CellGlobalIdOrServiceAreaIdOrLAI cellGlobalIdOrServiceAreaIdOrLAI = mapFactory .createCellGlobalIdOrServiceAreaIdOrLAI(cellGlobalIdOrServiceAreaIdFixedLength); ISDNAddressString vlrNumber = new ISDNAddressStringImpl(AddressNature.international_number, org.mobicents.protocols.ss7.map.api.primitives.NumberingPlan.ISDN, "5982123007"); ISDNAddressString mscNumber = new ISDNAddressStringImpl(AddressNature.international_number, org.mobicents.protocols.ss7.map.api.primitives.NumberingPlan.ISDN, "5982123007"); Integer ageOfLocationInformation = 0; // ageOfLocationInformation GeographicalInformation geographicalInformation = null; LocationNumberMap locationNumber = null; MAPExtensionContainer mapExtensionContainer = null; LSAIdentity selectedLSAId = null; GeodeticInformation geodeticInformation = null; boolean currentLocationRetrieved = false; boolean saiPresent = false; LocationInformationEPS locationInformationEPS = null; UserCSGInformation userCSGInformation = null; LocationInformationGPRS locationInformationGPRS = null; PSSubscriberState psSubscriberState = null; IMEI imei = null; MSClassmark2 msClassmark2 = null; GPRSMSClass gprsMSClass = null; MNPInfoRes mnpInfoRes = null; SubscriberStateChoice subscriberStateChoice = SubscriberStateChoice.assumedIdle; // 0=assumedIdle, 1=camelBusy, 2=notProvidedFromVLR NotReachableReason notReachableReason = null; LocationInformation locationInformation = mapFactory.createLocationInformation(ageOfLocationInformation, geographicalInformation, vlrNumber, locationNumber, cellGlobalIdOrServiceAreaIdOrLAI, mapExtensionContainer, selectedLSAId, mscNumber, geodeticInformation, currentLocationRetrieved, saiPresent, locationInformationEPS, userCSGInformation); SubscriberState subscriberState = mapFactory.createSubscriberState(subscriberStateChoice, notReachableReason); SubscriberInfo subscriberInfo = mapFactory.createSubscriberInfo(locationInformation, subscriberState, mapExtensionContainer, locationInformationGPRS, psSubscriberState, imei, msClassmark2, gprsMSClass, mnpInfoRes); mapDialogMobility.addAnyTimeInterrogationResponse(invokeId, subscriberInfo, mapExtensionContainer); // This will initiate the TC-BEGIN with INVOKE component mapDialogMobility.close(false); } catch (MAPException mapException) { logger.error("MAP Exception while processing AnyTimeInterrogationRequest ", mapException); } catch (Exception e) { logger.error("Exception while processing AnyTimeInterrogationRequest ", e); } }
Example #5
Source File: SendRoutingInfoResp.java From SigPloit with MIT License | 2 votes |
@Override public void onAnyTimeInterrogationRequest(AnyTimeInterrogationRequest anyTimeInterrogationRequest) { }
Example #6
Source File: UpdateLocationResp.java From SigPloit with MIT License | 2 votes |
@Override public void onAnyTimeInterrogationRequest(AnyTimeInterrogationRequest anyTimeInterrogationRequest) { }
Example #7
Source File: TestHarness.java From gmlc with GNU Affero General Public License v3.0 | votes |
public abstract void onAnyTimeInterrogationRequest(AnyTimeInterrogationRequest atiReq);