org.mobicents.protocols.ss7.tcap.asn.ApplicationContextName Java Examples

The following examples show how to use org.mobicents.protocols.ss7.tcap.asn.ApplicationContextName. 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: SendRoutingInfoResp.java    From SigPloit with MIT License 5 votes vote down vote up
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #2
Source File: ClientServer.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
  logger.error(String.format(
      "onDialogReject for DialogId=%d MAPRefuseReason=%s ApplicationContextName=%s MAPExtensionContainer=%s",
      mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext, extensionContainer));
}
 
Example #3
Source File: Client.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
  logger.error(String.format(
      "onDialogReject for DialogId=%d MAPRefuseReason=%s ApplicationContextName=%s MAPExtensionContainer=%s",
      mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext, extensionContainer));
}
 
Example #4
Source File: Server.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
  logger.error(String.format(
      "onDialogReject for DialogId=%d MAPRefuseReason=%s ApplicationContextName=%s MAPExtensionContainer=%s",
      mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext, extensionContainer));
}
 
Example #5
Source File: UpdateLocationResp.java    From SigPloit with MIT License 5 votes vote down vote up
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #6
Source File: SendIMSIResp.java    From SigPloit with MIT License 5 votes vote down vote up
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #7
Source File: SendRoutingInfoForGPRS.java    From SigPloit with MIT License 5 votes vote down vote up
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #8
Source File: SriSMResp.java    From SigPloit with MIT License 5 votes vote down vote up
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #9
Source File: AnyTimeInterrogationResp.java    From SigPloit with MIT License 5 votes vote down vote up
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #10
Source File: SS7Honeypot.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
        ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #11
Source File: ProvideSubscriberInformationResp.java    From SigPloit with MIT License 5 votes vote down vote up
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
                           ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #12
Source File: SS7Server.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
        ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #13
Source File: SS7ClientLiveInput.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
        ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #14
Source File: SS7Client.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
        ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #15
Source File: SS7Firewall.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
        ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogReject for DialogId=%d MAPRefuseReason=%s MAPProviderError=%s ApplicationContextName=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext,
                    extensionContainer));
}
 
Example #16
Source File: MobicentTCAPMessage.java    From mts with GNU General Public License v3.0 4 votes vote down vote up
public MobicentTCAPMessage() throws Exception
  {
  	//this.className =".tcap.";
  	// Mobicent TCAP message
  	this.tcbm = (TCBeginMessageImpl) TcapFactory.createTCBeginMessage();

      // build TCAP layer

      //if (event.getApplicationContextName() != null) {
      //this.dpSentInBegin = true;
      DialogPortion dp = TcapFactory.createDialogPortion();
      dp.setUnidirectional(false);
      DialogRequestAPDU apdu =  TcapFactory.createDialogAPDURequest();
      // Protocol-version = true
      apdu.setDoNotSendProtocolVersion(false);
      dp.setDialogAPDU(apdu);
      
      // application-context-name=0.4.0.0.1.0.21.2
      ApplicationContextName acn = new ApplicationContextNameImpl();
      acn.setOid(new long[] {0,4,0,0,1,0,21,2});
      apdu.setApplicationContextName(acn);
      
      /*
      if (event.getUserInformation() != null) {
          apdu.setUserInformation(event.getUserInformation());
          this.lastUI = event.getUserInformation();
      }
      */
      
      dp.setOidValue(new long[] {0,0,17,773,1,1,1});
      this.tcbm.setDialogPortion(dp);

      /*
          if (this.provider.getStack().getStatisticsEnabled()) {
              String acn = ((ApplicationContextNameImpl) event.getApplicationContextName()).getStringValue();
              this.provider.getStack().getCounterProviderImpl().updateOutgoingDialogsPerApplicatioContextName(acn);
          }
      } else {
          if (this.provider.getStack().getStatisticsEnabled()) {
              this.provider.getStack().getCounterProviderImpl().updateOutgoingDialogsPerApplicatioContextName("");
          }
      }
*/
      
      // now comps
  	// transaction ID= 00000001	
  	byte[] transID = new byte[]{0,0,0,1};
      tcbm.setOriginatingTransactionId(transID);
      // if (this.scheduledComponentList.size() > 0) {
      org.mobicents.protocols.ss7.tcap.asn.comp.Component[] componentsToSend = new org.mobicents.protocols.ss7.tcap.asn.comp.Component[1];
      componentsToSend[0] = TcapFactory.createComponentInvoke();
      Invoke invoke = (Invoke) componentsToSend[0];
      componentsToSend[0].setInvokeId(1L);
      OperationCode opCode = new OperationCodeImpl();
      opCode.setLocalOperationCode(46L);
      invoke.setOperationCode(opCode);
      Parameter param = new org.mobicents.protocols.ss7.tcap.asn.ParameterImpl();
param.setData(new byte[]{});
invoke.setParameter(param);
      tcbm.setComponent(componentsToSend);
      //}
  }
 
Example #17
Source File: Asn1Message.java    From mts with GNU General Public License v3.0 4 votes vote down vote up
public Asn1Message() {
	tcbm = (TCBeginMessageImpl) TcapFactory.createTCBeginMessage();

    // build DP

    //if (event.getApplicationContextName() != null) {
        //this.dpSentInBegin = true;
        DialogPortion dp = TcapFactory.createDialogPortion();
        dp.setUnidirectional(false);
        DialogRequestAPDU apdu =  TcapFactory.createDialogAPDURequest();
        // Protocol-version = true
        apdu.setDoNotSendProtocolVersion(false);
        dp.setDialogAPDU(apdu);
        
        // application-context-name=0.4.0.0.1.0.21.2
        ApplicationContextName acn = new ApplicationContextNameImpl();
        acn.setOid(new long[] {0,4,0,0,1,0,21,2});
        apdu.setApplicationContextName(acn);
        /*
        if (event.getUserInformation() != null) {
            apdu.setUserInformation(event.getUserInformation());
            this.lastUI = event.getUserInformation();
        }
        */
        tcbm.setDialogPortion(dp);

    //    if (this.provider.getStack().getStatisticsEnabled()) {
    //        String acn = ((ApplicationContextNameImpl) event.getApplicationContextName()).getStringValue();
    //        this.provider.getStack().getCounterProviderImpl().updateOutgoingDialogsPerApplicatioContextName(acn);
    //    }
    //} else {
    //    if (this.provider.getStack().getStatisticsEnabled()) {
    //        this.provider.getStack().getCounterProviderImpl().updateOutgoingDialogsPerApplicatioContextName("");
    //    }
    //}

    // now comps
	// transaction ID= 00000001	
	byte[] transID = new byte[]{0,0,0,1};
    tcbm.setOriginatingTransactionId(transID);
    // if (this.scheduledComponentList.size() > 0) {
        Component[] componentsToSend = new Component[1];
        componentsToSend[0] = TcapFactory.createComponentInvoke();
        ((Invoke) componentsToSend[0]).setInvokeId((long) 1);
        // ((Invoke) componentsToSend[0]).setLinkedId((long) 1);
        OperationCode opCode = TcapFactory.createOperationCode();
        opCode.setLocalOperationCode((long) 0x2e);
        ((Invoke) componentsToSend[0]).setOperationCode(opCode);
        //this.prepareComponents(componentsToSend);
        Parameter[] params = new Parameter[3];
        params[0] = TcapFactory.createParameter();
        params[0].setTag(0x04);
        params[0].setTagClass(0x02);
        params[0].setPrimitive(true);
        params[0].setSingleParameterInAsn();
        params[0].setData(new byte[]{(byte) 0x91, (byte) 0x33, (byte) 0x66, (byte) 0x60, (byte) 0x05, (byte) 0x67, (byte) 0xf9});
        params[1] = TcapFactory.createParameter();
        params[1].setTag(0x02);
        params[1].setTagClass(0x02);
        params[1].setPrimitive(true);
        params[1].setSingleParameterInAsn();
        params[1].setData(new byte[]{(byte) 0x91, (byte) 0x33, (byte) 0x66, (byte) 0x31, (byte) 0x70, (byte) 0x71, (byte) 0xf3});
        params[2] = TcapFactory.createParameter();
        params[2].setTag(0x04);
        params[2].setData(new byte[]{(byte) 0x11, (byte) 0x08, (byte) 0x0b, (byte) 0x91, (byte) 0x33, (byte) 0x66, (byte) 0x60, (byte) 0x05, (byte) 0x67, (byte) 0xf7, (byte) 0x00,  (byte) 0x00,  (byte) 0xa9,  (byte) 0x06,  (byte) 0xf3,  (byte) 0xf9,  (byte) 0x7c,  (byte) 0x3e,  (byte) 0x9f,  (byte) 0x03});
        // Parameter param = new Parameter[1];
        Parameter param = TcapFactory.createParameter();
        param.setTag(0x10);
        param.setTagClass(0x00);
        param.setParameters(params);
        param.setPrimitive(false);
        ((Invoke) componentsToSend[0]).setParameter(param);
        tcbm.setComponent(componentsToSend);
    //}

}