SCTP-server Example Problem

242 views
Skip to first unread message

Armache Antoni

unread,
Jul 2, 2019, 10:54:10 AM7/2/19
to mobicents-public
Hi guys, hope everyone is doing good.

I am trying to create a Sctp-server from scratch with jainslee from the following link:



Everything is working okey but i have a problem on SCCP layer, whenever i try to add a RULE , am receiving the following error :

  --------
java.lang.NoSuchMethodError: org.mobicents.protocols.ss7.sccp.Router.addRule(ILorg/mobicents/protocols/ss7/sccp/RuleType;Lorg/mobicents/protocols/ss7/sccp/LoadSharingAlgorithm;Lorg/mobicents/protocols/ss7/sccp/OriginationType;Lorg/mobicents/protocols/ss7/sccp/parameter/SccpAddress;Ljava/lang/String;IILjava/lang/Integer;ILorg/mobicents/protocols/ss7/sccp/parameter/SccpAddress;)V
        at net.inmobiles.xxxSLEESbb.initSCCP(xxxSLEESbb.java:223)

---------

on line  xxxSLEESbb.java:223 ..... i have the following code:

this.sccpStack.getRouter().addRule(1, RuleType.SOLITARY, LoadSharingAlgorithm.Bit0, OriginationType.REMOTE, pattern, "K", 1, -1,
null, 0, null);



Please anyone could help or show me what am doing wrong....... 

Thanks


Ibrahima Gaye

unread,
Jul 2, 2019, 11:10:30 AM7/2/19
to mobicent...@googlegroups.com
Hi,
seems to be version mismatch ("java.lang.NoSuchMethodError: ")


Ibrahima GAYE
Technologies Integration Specialist 
OSS/BSS/Business Analyst Senior Consultant
M1 (now in Congo) +243 844 390139   
M2 +221 77 564 9358
Skypeibstelix
 



--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobicents-public/4242a08f-4812-426f-9b91-f9a643b9dc9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Armache Antoni

unread,
Jul 2, 2019, 2:45:06 PM7/2/19
to mobicent...@googlegroups.com
Hi Ibrahima 

When u say version mismatch....  u mean my sccp-dependency version ?

<dependency>
    <groupId>org.mobicents.protocols.ss7.sccp</groupId>
    <artifactId>sccp-impl</artifactId>
    <version></version>
</dependency>


I am currently using the latest version ? Should I downgrade version ?



Armache Antoni

unread,
Jul 3, 2019, 8:50:49 AM7/3/19
to mobicents-public
I managed to solve the problem of SCCP layer, i have downgraded the version of sccp dependency now its okey..... but i am back to SCTP layer, i am receiving an error about Channel connection is closed....

this is the error :

08:45:30,620 ERROR [org.mobicents.protocols.sctp.SelectorThread] (Thread-205) Error while selecting the ready keys: java.nio.channels.ClosedChannelException
        at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:197)
        at java.nio.channels.SelectableChannel.register(SelectableChannel.java:280)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:111)
        at java.lang.Thread.run(Thread.java:748)


Do i have to change my SCTP dependecy which is (org.mobicents.protocols.sctp.ManagementImpl) with (org.mobicents.protocols.sctp.netty.NettySctpManagementImpl)  ?



-----------------------------------------------------------------------------

Armache Antoni

unread,
Jul 3, 2019, 9:41:09 AM7/3/19
to mobicents-public
Hi guys i have solved the ClosedChannelException error, but now i am having an error about Rule in sccp layer?

I am getting the following error:

09:48:55,850 WARN  [org.mobicents.protocols.ss7.sccp.impl.SccpRoutingControl] (SLEE-EventRouterExecutor-22-thread-1) Received SccpMessage for Translation but no matching Rule found for local routing
SccpMessage=Sccp Msg [Type=-1 networkId=0 sls=1 incomingOpc=-1 incomingDpc=-1 outgoingDpc=-1 CallingAddress(pc=0,ssn=146,AI=18,gt=GlobalTitle0100Impl [digits=0350102, natureOfAddress=INTERNATIONAL, numberingPlan=ISDN_TELEPHONY, translationType=0, encodingScheme=DefaultEncodingScheme[type=UNKNOWN, code=0]]) CalledParty(pc=0,ssn=146,AI=18,gt=GlobalTitle0100Impl [digits=0350101, natureOfAddress=INTERNATIONAL, numberingPlan=ISDN_TELEPHONY, translationType=0, encodingScheme=DefaultEncodingScheme[type=UNKNOWN, code=0]]) DataLen=103]

Any helps guys for this error ?



----------------------------------------------------------

On Tuesday, July 2, 2019 at 5:54:10 PM UTC+3, Armache Antoni wrote:

Ibrahima Gaye

unread,
Jul 3, 2019, 11:16:51 AM7/3/19
to mobicent...@googlegroups.com
Hi Armache,
good to know that you fixed all yourself,
for your last error people may help you "quickly" if you shared your config files and/or explain what is the config you want to achieve.
Best regards and RestComm-ing!

Ibrahima GAYE
Technologies Integration Specialist 
OSS/BSS/Business Analyst Senior Consultant
M1 (now in Congo) +243 844 390139   
M2 +221 77 564 9358
Skypeibstelix
 


--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.

Armache Antoni

unread,
Jul 4, 2019, 3:43:36 AM7/4/19
to mobicents-public
Thanks Ibrahim for the follow-up,

 1/ 

Firstly i am confused about this error regarding the sccp-rule.... before starting this project of building an sctp-client from scratch with jainslee.
 I was using wildfly-10.1.0.Final in (server170) and (server168) then created an SS7 CLIENT_SERVER-association between them through the following files: 

/wildfly-10.1.0.Final/standalone-ss7/data/Mtp3UserPart_m3ua1.xml
/wildfly-10.1.0.Final/standalone-ss7/data/SccpStack_sccpressource2.xml
/wildfly-10.1.0.Final/standalone-ss7/data/SccpStack_sccprouter2.xml
/wildfly-10.1.0.Final/standalone-ss7/data/SCTPManagement_sctp.xml

Both client and server were able to communicate  and send message without having sccp-rule problem..... i never had this problem in this situation..... 
kindly check the following files: data-config-170.zip and data-config-168.zip  100 % WORKING....

2/ 

Now I have deleted all these files in 168CLIENT inside 

/wildfly-10.1.0.Final/standalone-ss7/data/Mtp3UserPart_m3ua1.xml
/wildfly-10.1.0.Final/standalone-ss7/data/SccpStack_sccpressource2.xml
/wildfly-10.1.0.Final/standalone-ss7/data/SccpStack_sccprouter2.xml
/wildfly-10.1.0.Final/standalone-ss7/data/SCTPManagement_sctp.xml

and created a CLIENT-SCTP-SERVER from scratch with jainslee and deployed my SBB in /wildfly-10.1.0.Final/standalone/deployments/....... on successful deployment my SBB is creating these config files in the following path :

/wildfly-10.1.0.Final/bin/Client_sctp.xml
/wildfly-10.1.0.Final/bin/MapLoadClientSccpStack_sccprouter2.xml
/wildfly-10.1.0.Final/bin/MapLoadClientSccpStack_sccpresource2.xml
/wildfly-10.1.0.Final/bin/ClientM3UA_m3ua1.xml

Please note that the association has been established between 170SERVER and 168CLIENT and i made a pcap to check if 168CLIENT is sending INIT and receiving ACK...... Everything is okey from here on ... But whenever i tries to send message from 168CLIENT to 170SERVER with the same configuration done in above example [ 1/ ] i am receiving sccp-rule error..... kindly check the following files: scratch-data-config-168.zip...... 50% WORKING

------------------------------------------------------------
So my question is this ...... why example 1 is working without problem and example 2 is giving me error ? even though i have followed the same configuration from example 1....... the only changes happening here is 168CLIENT has been build from scratch not from wildfly SS7 stack.

Do i have to remove 170SERVER config files from wildfly SS7 and build it from scratch as well like i did with 168CLIENT ? so in other words both client and server will be build from scratch with jainslee and not wildfly SS7 stack ?

Does it matter one side using config files from wildfly SS7 stack and other side not using it ?


Please guys any help will be much appreciatted .

Br. 


data-config-170.zip
data-config-168.zip
scratch-data-config-168.zip

Armache Antoni

unread,
Jul 8, 2019, 4:55:33 AM7/8/19
to mobicents-public
Hi guys,

I found the issues with this SCCP RULE problem.......  when i am deploying my SBB on wildfly all layers get configured in the following directory [ /wildfly-10.1.0.Final/bin/ ] Except the layer were the SccpRule get configured....... its seems like wildfly is ignoring this config file when i am deploying my SBB in [ /wildfly-10.1.0.Final/bin/MapLoadClientSccpStack_sccprouter2.xml ]  and it keep reading the old location file in :/wildfly-10.1.0.Final/standalone-ss7/data/SccpStack_sccprouter2.xml    ........ 

So how can i force wildfly to read this file location [   /wildfly-10.1.0.Final/bin/MapLoadClientSccpStack_sccprouter2.xml  ] on deployement  and not the old file location? 

mehdi

unread,
Jul 24, 2019, 5:27:26 AM7/24/19
to mobicents-public
Hello Antoni,

What do you want to do exactly ?

is it to answer on idp continue and customize camel answer ?

in this case you have camel gateway which works really great !!!



and i can help you to customize it !

Vladimir Tzanev

unread,
Jul 24, 2019, 8:13:37 AM7/24/19
to mobicents-public
Hi Antoni,

In "initSCCP()" after creating sccpStack and before start() you can use

this.sccpStack.setPersistDir(***your path ***).

BR,
Vladimir

Armache Antoni

unread,
Jul 24, 2019, 8:25:38 AM7/24/19
to mobicents-public
Hi Vladimir, Hi Medhi

Thanks for quick feedback.... regarding this post SCTP-server Example Problem ...

i am done with it, i completed this project already and i have bow an sctp client that is connecting to a server

Br. 

Reply all
Reply to author
Forward
0 new messages