mobius-software-ltd / corsac-jss7 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from restcomm/jss7
Asynchronous Java SS7 Stack and Services with Clustered Support
License: GNU Affero General Public License v3.0
This project forked from restcomm/jss7
Asynchronous Java SS7 Stack and Services with Clustered Support
License: GNU Affero General Public License v3.0
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?
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]
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
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
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.