Java Code Examples for org.mobicents.protocols.ss7.map.api.primitives.AddressString

The following examples show how to use org.mobicents.protocols.ss7.map.api.primitives.AddressString. These examples are extracted from open source projects. 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 Project: SigFW   Source File: SS7Honeypot.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
        MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String
                .format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s MAPExtensionContainer=%s",
                        mapDialog.getLocalDialogId(), destReference, origReference, extensionContainer));
    }
}
 
Example 2
Source Project: SigFW   Source File: SS7Honeypot.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequestEricsson(MAPDialog mapd, AddressString as, AddressString as1, AddressString as2, AddressString as3) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
                mapd.getLocalDialogId(), as, as1, as2, as3));
    }
}
 
Example 3
Source Project: SigFW   Source File: SS7Firewall.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
        MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String
                .format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s MAPExtensionContainer=%s",
                        mapDialog.getLocalDialogId(), destReference, origReference, extensionContainer));
    }
}
 
Example 4
Source Project: SigFW   Source File: SS7Firewall.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequestEricsson(MAPDialog mapd, AddressString as, AddressString as1, AddressString as2, AddressString as3) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
                mapd.getLocalDialogId(), as, as1, as2, as3));
    }
}
 
Example 5
Source Project: SigFW   Source File: SS7Client.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
        MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String
                .format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s MAPExtensionContainer=%s",
                        mapDialog.getLocalDialogId(), destReference, origReference, extensionContainer));
    }
}
 
Example 6
Source Project: SigFW   Source File: SS7Client.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequestEricsson(MAPDialog mapd, AddressString as, AddressString as1, AddressString as2, AddressString as3) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
                mapd.getLocalDialogId(), as, as1, as2, as3));
    }
}
 
Example 7
@Override
public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
        MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String
                .format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s MAPExtensionContainer=%s",
                        mapDialog.getLocalDialogId(), destReference, origReference, extensionContainer));
    }
}
 
Example 8
@Override
public void onDialogRequestEricsson(MAPDialog mapd, AddressString as, AddressString as1, AddressString as2, AddressString as3) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
                mapd.getLocalDialogId(), as, as1, as2, as3));
    }
}
 
Example 9
Source Project: SigFW   Source File: SS7Server.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
        MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String
                .format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s MAPExtensionContainer=%s",
                        mapDialog.getLocalDialogId(), destReference, origReference, extensionContainer));
    }
}
 
Example 10
Source Project: SigFW   Source File: SS7Server.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequestEricsson(MAPDialog mapd, AddressString as, AddressString as1, AddressString as2, AddressString as3) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
                mapd.getLocalDialogId(), as, as1, as2, as3));
    }
}
 
Example 11
Source Project: SigPloit   Source File: SriSMResp.java    License: MIT License 5 votes vote down vote up
public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
                            MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String
                .format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s MAPExtensionContainer=%s",
                        mapDialog.getLocalDialogId(), destReference, origReference, extensionContainer));
    }
}
 
Example 12
Source Project: SigPloit   Source File: SriSMResp.java    License: MIT License 5 votes vote down vote up
public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
                                    IMSI arg3, AddressString arg4) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
                mapDialog.getLocalDialogId(), destReference, origReference));
    }
}
 
Example 13
Source Project: SigPloit   Source File: UpdateLocationResp.java    License: MIT License 5 votes vote down vote up
public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
                            MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String
                .format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s MAPExtensionContainer=%s",
                        mapDialog.getLocalDialogId(), destReference, origReference, extensionContainer));
    }
}
 
Example 14
Source Project: SigPloit   Source File: UpdateLocationResp.java    License: MIT License 5 votes vote down vote up
public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
                                    IMSI arg3, AddressString arg4) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
                mapDialog.getLocalDialogId(), destReference, origReference));
    }
}
 
Example 15
Source Project: gmlc   Source File: GMLCCDRState.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
public void init(final Long dialogId, final AddressString destRef, final AddressString origRef, final ISDNAddressString isdnAddressString,
                 final SccpAddress localAddress, final SccpAddress remoteAddress) {
  this.localDialogId = dialogId;
  this.destReference = destRef;
  this.origReference = origRef;
  this.isdnAddressString = isdnAddressString;
  this.localAddress = localAddress;
  this.remoteAddress = remoteAddress;
  // This should be enough to be unique
  this.id = UUID.randomUUID().toString();
  this.initiated = true;
  this.dialogStartTime = null;
  this.dialogEndTime = null;
  this.dialogDuration =null;
}
 
Example 16
Source Project: gmlc   Source File: GMLCCDRState.java    License: GNU Affero General Public License v3.0 5 votes vote down vote up
public void init(String id, boolean initiated, boolean generated, AddressString origReference, AddressString destReference,
                 IMSI imsi, AddressString vlrAddress, ISDNAddressString isdnAddressString,
                 SccpAddress localAddress, SccpAddress remoteAddress, Long localDialogId, Long remoteDialogId,
                 DateTime dialogStartTime, DateTime dialogEndTime, Long dialogDuration, RecordStatus recordStatus,
                 int ci, int lac, int mcc, int mnc, int aol, String atiVlrGt, String subscriberState) {
  // This should be enough to be unique
  this.id = UUID.randomUUID().toString();
  this.initiated = true;
  this.generated = generated;
  this.origReference = origReference;
  this.destReference = destReference;
  this.imsi = imsi;
  this.vlrAddress = vlrAddress;
  this.isdnAddressString = isdnAddressString;
  this.localAddress = localAddress;
  this.remoteAddress = remoteAddress;
  this.localDialogId = localDialogId;
  this.remoteDialogId = remoteDialogId;
  this.dialogStartTime = null;
  this.dialogEndTime = null;
  this.dialogDuration = null;
  this.recordStatus = recordStatus;
  this.ci = ci;
  this.lac = lac;
  this.mcc = mcc;
  this.mnc = mnc;
  this.aol = aol;
  this.atiVlrGt = atiVlrGt;
  this.subscriberState = subscriberState;
}
 
Example 17
Source Project: SigPloit   Source File: UpdateLocationResp.java    License: MIT License 4 votes vote down vote up
@Override
public void onInsertSubscriberDataResponse(InsertSubscriberDataResponse insertSubscriberDataResponse) {
    try{

        /*long invokeId = insertSubscriberDataResponse.getInvokeId();
        ISDNAddressString HlrNumber = this.mapProvider.getMAPParameterFactory().createISDNAddressString(
                AddressNature.international_number,NumberingPlan.ISDN,"20109876543211");
        MAPDialogMobility mapDialogMobility = insertSubscriberDataResponse.getMAPDialog();

        mapDialogMobility.setUserObject(invokeId);
        mapDialogMobility.addUpdateLocationResponse(invokeId,HlrNumber,null,false,false);
        mapDialogMobility.send();

        logger.info("UpdateLocationResponse Message Sent...Update Location Completed");
        logger.info("Sending SMS...");*/




        //SMS MT
        AddressString orig_smsc = this.mapProvider.getMAPParameterFactory().createAddressString(AddressNature.international_number,
                NumberingPlan.ISDN,"966123456789");
        IMSI test_imsi = this.mapProvider.getMAPParameterFactory().createIMSI("602027891234567");
        SM_RP_DA sm_rp_da = this.mapProvider.getMAPParameterFactory().createSM_RP_DA(test_imsi);
        SM_RP_OA sm_rp_oa = this.mapProvider.getMAPParameterFactory().createSM_RP_OA_ServiceCentreAddressOA(orig_smsc);

        AddressField oa = new AddressFieldImpl(TypeOfNumber.InternationalNumber,
                NumberingPlanIdentification.ISDNTelephoneNumberingPlan,"2010789123456");


        AbsoluteTimeStampImpl timeStamp = new AbsoluteTimeStampImpl(16,4,3,15,51,18,2);
        ProtocolIdentifierImpl pi = new ProtocolIdentifierImpl(0);


        DataCodingSchemeImpl dcs = new DataCodingSchemeImpl(0); //default gsm 7 bit
        UserDataImpl ud = new UserDataImpl("Hello World!",dcs,null,null);
        SmsDeliverTpduImpl tpdu = new SmsDeliverTpduImpl(false,false,false,false,oa,pi,timeStamp,ud);
        SmsSignalInfoImpl sm_Rp_UI = new SmsSignalInfoImpl(tpdu, null);

        GlobalTitle0100 GtLocalMSC = this.sccpProvider.getParameterFactory().createGlobalTitle(
                "201012345678",0, org.mobicents.protocols.ss7.indicator.NumberingPlan.ISDN_TELEPHONY,null,
                NatureOfAddress.INTERNATIONAL);

        GlobalTitle0100 GtAttackerMSC = this.sccpProvider.getParameterFactory().
                createGlobalTitle("96512345678",0,
                        org.mobicents.protocols.ss7.indicator.NumberingPlan.ISDN_TELEPHONY,null,NatureOfAddress.INTERNATIONAL);

        SccpAddress callingParty = this.sccpStack.getSccpProvider().getParameterFactory().
                createSccpAddress(RoutingIndicator.ROUTING_BASED_ON_GLOBAL_TITLE,GtLocalMSC,SERVER_SPC,SSN_MSC);
        SccpAddress calledParty = this.sccpStack.getSccpProvider().getParameterFactory()
                .createSccpAddress(RoutingIndicator.ROUTING_BASED_ON_GLOBAL_TITLE,GtAttackerMSC,CLIENT_SPC,SSN_MSC);

        MAPDialogSms mapDialogSms = this.mapProvider.getMAPServiceSms().
                createNewDialog(MAPApplicationContext.getInstance(MAPApplicationContextName.shortMsgMTRelayContext,
                        MAPApplicationContextVersion.version2),callingParty,null,calledParty,null);
        mapDialogSms.addForwardShortMessageRequest(sm_rp_da,sm_rp_oa,sm_Rp_UI,false);


        logger.info("Sending SMS...\n");
        mapDialogSms.send();
        logger.info("SMS Sent...");

    } catch (MAPException e){
        e.printStackTrace();
    }

}
 
Example 18
Source Project: gmlc   Source File: GMLCCDRState.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * @return the origReference
 */
public AddressString getOrigReference() {
  return origReference;
}
 
Example 19
Source Project: gmlc   Source File: GMLCCDRState.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * @return the destReference
 */
public AddressString getDestReference() {
  return destReference;
}
 
Example 20
Source Project: gmlc   Source File: GMLCCDRState.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * @return the vlrAddress
 */
public AddressString getVlrAddress() {
  return vlrAddress;
}
 
Example 21
Source Project: gmlc   Source File: GMLCCDRState.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * @param origReference the origReference to set
 */
public void setOrigReference(AddressString origReference) {
  this.origReference = origReference;
}
 
Example 22
Source Project: gmlc   Source File: GMLCCDRState.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * @param destReference the destReference to set
 */
public void setDestReference(AddressString destReference) {
  this.destReference = destReference;
}
 
Example 23
Source Project: gmlc   Source File: GMLCCDRState.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * @param vlrAddress the VLR Address to set
 */
public void setVlrAddress(AddressString vlrAddress) {
  this.vlrAddress = vlrAddress;
}
 
Example 24
Source Project: SigPloit   Source File: SriSMResp.java    License: MIT License 2 votes vote down vote up
@Override
public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString addressString, AddressString addressString1, AddressString addressString2, AddressString addressString3) {

}
 
Example 25
Source Project: SigPloit   Source File: UpdateLocationResp.java    License: MIT License 2 votes vote down vote up
@Override
public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString addressString, AddressString addressString1, AddressString addressString2, AddressString addressString3) {

}
 
Example 26
Source Project: SigPloit   Source File: PSILowLevelServer.java    License: MIT License votes vote down vote up
public abstract void onDialogRequestEricsson(MAPDialog mapDialog, AddressString addressString, AddressString addressString1, AddressString addressString2, AddressString addressString3); 
Example 27
Source Project: SigPloit   Source File: SRILowLevelServer.java    License: MIT License votes vote down vote up
public abstract void onDialogRequestEricsson(MAPDialog mapDialog, AddressString addressString, AddressString addressString1, AddressString addressString2, AddressString addressString3); 
Example 28
Source Project: SigPloit   Source File: ATILowLevelServer.java    License: MIT License votes vote down vote up
public abstract void onDialogRequestEricsson(MAPDialog mapDialog, AddressString addressString, AddressString addressString1, AddressString addressString2, AddressString addressString3); 
Example 29
Source Project: SigPloit   Source File: SriSMLowLevelServer.java    License: MIT License votes vote down vote up
public abstract void onDialogRequestEricsson(MAPDialog mapDialog, AddressString addressString, AddressString addressString1, AddressString addressString2, AddressString addressString3); 
Example 30
Source Project: SigPloit   Source File: SRIGPRSLowLevel.java    License: MIT License votes vote down vote up
public abstract void onDialogRequestEricsson(MAPDialog mapDialog, AddressString addressString, AddressString addressString1, AddressString addressString2, AddressString addressString3);