Restcomm SMSC keeps raising ActivityAlreadyExistsException when submit_sm request is sent


I am using the latest version of Restcomm SMSC (smscgateway-7.3.153) (available here: I used the binary version and not the source code.

I have got it up and running ad it communicates with Cassandra which is hosted on a different machine appropriately.

I have registered an ESME as a server and when I try to send a bind request, it succeeds and session is created. The problem occurs when I send the Submit_SM request. An ActivityAlreadyExists exception is raised and nothing else happens. I tried different simulators, even used an Android client to try to send a message but every time, the same exception occurs. I tried to debug the issue and was able to find out that the exception occurs when a new activity is about to be created but can't seem to find any more information.

It could be related to sequence numbers but I double checked and that doesn't seem to be the problem. I tried to change the tracing level of the server but I wasn't able to do so (Please guide me if anyone knows how to do it).

I am attaching a .pcap file that shows the packets I captured via Wireshark. All the request and response packets will be in there. I will also attach the server logs.

I couldn't find any help regarding this on the internet so if anyone of you can guide me here, I'd be very obliged. Please tag the developers if you know them. Feel free to ask for more information.

Wireshark capture file

These are the logs that are generated at the start of server:

Server startup Logs

This is the exception logs' file:

Exception logs file

Here is the exception:

11:26:53,196 INFO [SmppServerConnector] (SmppManagement) New channel from [] 11:26:53,215 INFO [UnboundSmppSession] (SmppManagement.UnboundSession. received PDU: (bind_transceiver: 0x00000025 0x00000009 0x00000000 0x00000001) (body: systemId [test5] password [test5] systemType [] interfaceVersion [0x34] addressRange (0x01 0x01 [6666])) (opts: ) 11:26:53,215 INFO [DefaultSmppServerHandler] (SmppManagement.UnboundSession. Session created: Name=test5 SystemId=test5 11:26:55,504 ERROR [SmppSessionHandlerInterfaceImpl] (test5) Error while processing PduRequest=(submit_sm: 0x0000002F 0x00000004 0x00000000 0x00000002) (body: (serviceType [] sourceAddr [0x01 0x01 [6666]] destAddr [0x01 0x01 [5555]] esmCls [0x03] regDlvry [0x01] dcs [0x00] message [48656C6C6F21])) (opts: ) javax.slee.resource.ActivityAlreadyExistsException: RA:SmppServerRA:SmppTransactionHandle [smppSessionConfigurationName=test5, smppTransactionType=INCOMING, seqNumnber=2] at org.mobicents.slee.runtime.activity.ActivityContextFactoryImpl.createActivityContext( at org.mobicents.slee.runtime.activity.ActivityContextFactoryImpl.createActivityContext( at org.mobicents.slee.resource.SleeEndpointImpl._startActivity( at org.mobicents.slee.resource.SleeEndpointStartActivityNotTransactedExecutor.execute( at org.mobicents.slee.resource.SleeEndpointImpl.startActivity( at org.restcomm.slee.resource.smpp.SmppServerResourceAdaptor.startNewSmppServerTransactionActivity( at org.restcomm.slee.resource.smpp.SmppSessionsImpl$SmppSessionHandlerImpl.firePduRequestReceived( at com.cloudhopper.smpp.impl.DefaultSmppSession.firePduReceived( at at at at$DefaultChannelHandlerContext.sendUpstream( at at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived( at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode( at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived( at at at$DefaultChannelHandlerContext.sendUpstream( at at at$DefaultChannelHandlerContext.sendUpstream( at at at$DefaultChannelHandlerContext.sendUpstream( at at at at at at at at at at at at at org.jboss.netty.util.internal.DeadLockProofWorker$ at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$ Source) at Source)

asked on Stack Overflow Jan 23, 2018 by Maab Saleem • edited Jan 23, 2018 by Maab Saleem

1 Answer


I believe this was answered here right?

answered on Stack Overflow Jan 24, 2018 by gsaslis

User contributions licensed under CC BY-SA 3.0