Coder Social home page Coder Social logo

mobius-software-ltd / corsac-jss7 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from restcomm/jss7

7.0 7.0 6.0 52.98 MB

Asynchronous Java SS7 Stack and Services with Clustered Support

License: GNU Affero General Public License v3.0

Java 100.00%

corsac-jss7's People

Contributors

abhayani avatar agafox avatar alerantappngin avatar ammendonca avatar anatolysatanovskiy-mobius avatar baranowb avatar bkrok avatar croufay avatar deruelle avatar faizann avatar gitter-badger avatar hubertzegota avatar ivelin avatar knosach avatar kostyantynnosach-mobius avatar lasithwaruna avatar mniemiec avatar mnowa avatar nhanth87 avatar normandesjr avatar oifayulian avatar okulikov avatar satanatoly avatar sergeylee avatar summanetworks avatar vetss avatar vinusaseedaran avatar vklidu avatar vmykhailiuk avatar yulianoifa-mobius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

corsac-jss7's Issues

wrong event order with 3 components

I observed that sometimes, the onDialogRelease reach the application before all the components are processed.

I would have expected to the the onDialogRelease event only after the 3 components of the messages are delivered to the application.

I can say when it happens and when it doesn't.

Did you ever faced this issue?

INAP IDP ASN Parsing failure

Incoming INAP IDP ASN Parsing failure

onRejectComponent dialog=1, invokeId=0, problem=Problem[type=General generalProblemType=org.restcomm.protocols.ss7.tcap.asn.comp.ASNGeneralProblemType@20]

inap-idp.zip

SCTP stucks on startup

AssociationImpl.connect()

Line 22 this.applySctpOptions(b);

cause stuck on

10125 [Sctp-ClientExecutorGroup-CS1PlusServer1-4-1] DEBUG org.restcomm.protocols.ss7.sctp.proxy.AssociationImpl - Initiating connection started: Association=Association [name=association1, associationType=CLIENT, ipChannelType=SCTP, hostAddress=192.168.3.222, hostPort=2905, peerAddress=192.168.3.222, peerPort=2906, serverName=null, extraHostAddress=[, ]]

b.option(SctpChannelOption.SCTP_NODELAY, this.management.getOptionSctpNodelay());
b.option(SctpChannelOption.SCTP_DISABLE_FRAGMENTS, this.management.getOptionSctpDisableFragments());
b.option(SctpChannelOption.SCTP_FRAGMENT_INTERLEAVE, this.management.getOptionSctpFragmentInterleave());
b.option(SctpChannelOption.SCTP_INIT_MAXSTREAMS, this.management.getOptionSctpInitMaxstreams());
b.option(SctpChannelOption.SO_SNDBUF, this.management.getOptionSoSndbuf());
b.option(SctpChannelOption.SO_RCVBUF, this.management.getOptionSoRcvbuf());
b.option(SctpChannelOption.SO_LINGER, this.management.getOptionSoLinger());

this.management.getOptionSctpNodelay() is true

other options is null

Ref Count error for parameters that are being kept by application

71249 [pool-3-thread-1] ERROR org.restcomm.protocols.ss7.tcap.DialogImpl - Failed to send message:
com.mobius.software.telco.protocols.ss7.asn.ASNException
at com.mobius.software.telco.protocols.ss7.asn.ASNParser.encode(ASNParser.java:516)
at org.restcomm.protocols.ss7.tcap.TCAPProviderImpl.encodeAbortMessage(TCAPProviderImpl.java:556)
at org.restcomm.protocols.ss7.tcap.DialogImpl.sendAbnormalDialog(DialogImpl.java:1570)
at org.restcomm.protocols.ss7.tcap.DialogImpl$IdleTimerTask.run(DialogImpl.java:1859)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

ASNParser.encode is also absorb the exception. please rewrap the exception or log it.

stack print of the exception:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mobius.software.telco.protocols.ss7.asn.ASNParser.encodeWithoutHeader(ASNParser.java:676)
at com.mobius.software.telco.protocols.ss7.asn.ASNParser.encode(ASNParser.java:554)
at com.mobius.software.telco.protocols.ss7.asn.ASNParser.encodeWithoutHeader(ASNParser.java:635)
at com.mobius.software.telco.protocols.ss7.asn.ASNParser.encode(ASNParser.java:554)
at com.mobius.software.telco.protocols.ss7.asn.ASNParser.encode(ASNParser.java:510)
at org.restcomm.protocols.ss7.tcap.TCAPProviderImpl.encodeAbortMessage(TCAPProviderImpl.java:556)
at org.restcomm.protocols.ss7.tcap.DialogImpl.sendAbnormalDialog(DialogImpl.java:1570)
at org.restcomm.protocols.ss7.tcap.DialogImpl$IdleTimerTask.run(DialogImpl.java:1859)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: io.netty.util.IllegalReferenceCountException: refCnt: 0
at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1190)
at io.netty.buffer.UnpooledUnsafeDirectByteBuf.memoryAddress(UnpooledUnsafeDirectByteBuf.java:212)
at io.netty.buffer.SlicedByteBuf.memoryAddress(SlicedByteBuf.java:112)
at io.netty.buffer.UnpooledHeapByteBuf.setBytes(UnpooledHeapByteBuf.java:223)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:867)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:858)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:848)
at com.mobius.software.telco.protocols.ss7.asn.primitives.ASNOctetString.encode(ASNOctetString.java:62)
... 20 more

IOException while handling SCCP message: refCnt: 0

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line, delete the rest of these comments:

/kind bug

/kind feature

What happened:
netty refCnt excption

What you expected to happen:
7252 [Mtp3-DeliveryExecutor-5-4] ERROR org.restcomm.protocols.ss7.sccp.impl.SccpStackImpl-CapServer - IOException while handling SCCP message: refCnt: 0
io.netty.util.IllegalReferenceCountException: refCnt: 0
at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1190)
at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1176)
at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:587)
at io.netty.buffer.AbstractByteBuf.readUnsignedByte(AbstractByteBuf.java:601)
at org.restcomm.protocols.ss7.sccp.impl.SccpStackImpl.onMtp3TransferMessage(SccpStackImpl.java:1036)
at org.restcomm.protocols.ss7.mtp.Mtp3UserPartBaseImpl$MsgTransferDeliveryHandler.run(Mtp3UserPartBaseImpl.java:252)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:748)

How to reproduce it (as minimally and precisely as possible):
trigger local SCCP traffic.

Anything else we need to know?:

Environment:

  • Restcomm JSS7 version (from startup logs):

  • Cloud provider or hardware configuration:

  • OS (e.g. from /etc/os-release):
    -NAME="Ubuntu"
    VERSION="20.04.3 LTS (Focal Fossa)"
    ID=ubuntu

  • Kernel (e.g. uname -a):

  • Deployment method (e.g. application server version + config + method):

  • Others:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.