org.mobicents.protocols.ss7.map.api.MAPDialog Java Examples

The following examples show how to use org.mobicents.protocols.ss7.map.api.MAPDialog. 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: ClientServer.java    From gmlc with GNU Affero General Public License v3.0 6 votes vote down vote up
@Override
public void onDialogRelease(MAPDialog mapDialog) {
  if (logger.isDebugEnabled()) {
    logger.debug(String.format("onDialogResease for DialogId=%d", mapDialog.getLocalDialogId()));
  }

  this.serverEndCount++;

  if (((this.serverEndCount % 10000) == 0) && serverEndCount > 1) {
    long currentTime = System.currentTimeMillis();
    long processingTime = currentTime - serverStart;
    serverStart = currentTime;
    logger.warn("Completed 10000 Dialogs in=" + processingTime + " ms. Dialogs per sec: " + +(float) (10000000 / processingTime));
  }

}
 
Example #2
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 #3
Source File: SS7Firewall.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogAccept(MAPDialog mapDialog, MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogAccept for DialogId=%d MAPExtensionContainer=%s",
                mapDialog.getLocalDialogId(), extensionContainer));
    }
}
 
Example #4
Source File: ClientServer.java    From gmlc with 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 #5
Source File: SriSMResp.java    From SigPloit with 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 #6
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 #7
Source File: Client.java    From gmlc with 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));
  } else {
    logger.info(String.format(
        "onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s MAPExtensionContainer=%s",
        mapDialog.getLocalDialogId(), destReference, origReference, extensionContainer));
  }
}
 
Example #8
Source File: Server.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogAccept(MAPDialog mapDialog, MAPExtensionContainer extensionContainer) {
  if (logger.isDebugEnabled()) {
    logger.debug(String.format("onDialogAccept for DialogId=%d MAPExtensionContainer=%s", mapDialog.getLocalDialogId(),
        extensionContainer));
  } else {
    logger.info(String.format("onDialogAccept for DialogId=%d MAPExtensionContainer=%s", mapDialog.getLocalDialogId(),
        extensionContainer));
  }
}
 
Example #9
Source File: SS7Honeypot.java    From SigFW with 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 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 #11
Source File: Server.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString destReference, AddressString origReference,
                                    IMSI imsi, AddressString vlr) {
  if (logger.isDebugEnabled()) {
    logger.debug(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
        mapDialog.getLocalDialogId(), destReference, origReference));
  } else {
    logger.info(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
        mapDialog.getLocalDialogId(), destReference, origReference));
  }
}
 
Example #12
Source File: Client.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
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));
  } else {
    logger.info(String.format("onDialogRequest for DialogId=%d DestinationReference=%s OriginReference=%s ",
        mapDialog.getLocalDialogId(), destReference, origReference));
  }
}
 
Example #13
Source File: SS7Firewall.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason,
        MAPAbortSource abortSource, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogProviderAbort for DialogId=%d MAPAbortProviderReason=%s MAPAbortSource=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), abortProviderReason, abortSource, extensionContainer));
}
 
Example #14
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 #15
Source File: SS7Firewall.java    From SigFW with 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 #16
Source File: SS7Firewall.java    From SigFW with 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 #17
Source File: Server.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogClose(MAPDialog mapDialog) {
  if (logger.isDebugEnabled()) {
    logger.debug(String.format("DialogClose for Dialog=%d", mapDialog.getLocalDialogId()));
  } else {
    logger.info(String.format("DialogClose for Dialog=%d", mapDialog.getLocalDialogId()));
  }
}
 
Example #18
Source File: SS7Server.java    From SigFW with 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 #19
Source File: Client.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason,
                                  MAPAbortSource abortSource, MAPExtensionContainer extensionContainer) {
  logger.error(String.format(
      "onDialogProviderAbort for DialogId=%d MAPAbortProviderReason=%s MAPAbortSource=%s MAPExtensionContainer=%s",
      mapDialog.getLocalDialogId(), abortProviderReason, abortSource, extensionContainer));
}
 
Example #20
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 #21
Source File: SS7Server.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason,
        MAPAbortSource abortSource, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogProviderAbort for DialogId=%d MAPAbortProviderReason=%s MAPAbortSource=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), abortProviderReason, abortSource, extensionContainer));
}
 
Example #22
Source File: SS7Client.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason,
        MAPAbortSource abortSource, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogProviderAbort for DialogId=%d MAPAbortProviderReason=%s MAPAbortSource=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), abortProviderReason, abortSource, extensionContainer));
}
 
Example #23
Source File: Client.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogDelimiter(MAPDialog mapDialog) {
  if (logger.isDebugEnabled()) {
    logger.debug(String.format("onDialogDelimiter for DialogId=%d", mapDialog.getLocalDialogId()));
  } else {
    logger.info(String.format("onDialogDelimiter for DialogId=%d", mapDialog.getLocalDialogId()));
  }
}
 
Example #24
Source File: SS7Client.java    From SigFW with 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 #25
Source File: SS7Server.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogAccept(MAPDialog mapDialog, MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogAccept for DialogId=%d MAPExtensionContainer=%s",
                mapDialog.getLocalDialogId(), extensionContainer));
    }
}
 
Example #26
Source File: SS7ClientLiveInput.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogAccept(MAPDialog mapDialog, MAPExtensionContainer extensionContainer) {
    if (logger.isDebugEnabled()) {
        logger.debug(String.format("onDialogAccept for DialogId=%d MAPExtensionContainer=%s",
                mapDialog.getLocalDialogId(), extensionContainer));
    }
}
 
Example #27
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 #28
Source File: SS7ClientLiveInput.java    From SigFW with 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 #29
Source File: ClientServer.java    From gmlc with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason,
                                  MAPAbortSource abortSource, MAPExtensionContainer extensionContainer) {
  logger.error(String.format(
      "onDialogProviderAbort for DialogId=%d MAPAbortProviderReason=%s MAPAbortSource=%s MAPExtensionContainer=%s",
      mapDialog.getLocalDialogId(), abortProviderReason, abortSource, extensionContainer));
}
 
Example #30
Source File: SS7ClientLiveInput.java    From SigFW with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason,
        MAPAbortSource abortSource, MAPExtensionContainer extensionContainer) {
    logger.error(String
            .format("onDialogProviderAbort for DialogId=%d MAPAbortProviderReason=%s MAPAbortSource=%s MAPExtensionContainer=%s",
                    mapDialog.getLocalDialogId(), abortProviderReason, abortSource, extensionContainer));
}