Trying to Run CAP Example with standalone configuration

507 views
Skip to first unread message

nitin tonk

unread,
Jul 11, 2014, 3:51:29 AM7/11/14
to mobicent...@googlegroups.com
Dear Team,

I am trying to build and run your example callssfexample and callscfexample.

I have configured it with standalone configuration.


Now on running i am getting on client side.

10592 [Thread-0] ERROR org.mobicents.protocols.sctp.SelectorThread - Error while selecting the ready keys
java.nio.channels.ClosedChannelException
at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:194)
at java.nio.channels.SelectableChannel.register(SelectableChannel.java:277)
at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:111)
at java.lang.Thread.run(Thread.java:745)


As soon as SCF first control message to ssf I got below message

49766 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation

Please find Logs below

At Server End


[root@ivrstgserver SS7_CapService]# java -Djava.net.preferIPv4Stack=true -jar capserver.jar start
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
at org.apache.log4j.Logger.getLogger(Logger.java:118)
at jss7.standalone.example.cap.ocg.AbstractActpCAPBase.<clinit>(AbstractActpCAPBase.java:30)
*************************************
*** CAPserver ***
*************************************
Inside AbstractActpCAPBase constractor
1 [main] INFO jss7.standalone.example.cap.ocg.AbstractActpCAPBase - log4j configured
21 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - Initializing SCTP Stack ....
202 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - SCTP configuration file path /home/nitin/SS7_CapService/SERVER_sctp.xml
362 [main] INFO org.mobicents.protocols.sctp.ServerImpl - SctpServerChannel bound to=[/10.10.4.116:4321]
367 [main] INFO org.mobicents.protocols.sctp.ServerImpl - Started Server=testserver
403 [Thread-0] INFO org.mobicents.protocols.sctp.SelectorThread - SelectorThread for Management=SERVER started.
404 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - Started SCTP Management=SERVER WorkerThreads=0 SingleThread=true
412 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - Removing allocated resources: Servers=1, Associations=1
431 [main] INFO org.mobicents.protocols.sctp.ServerImpl - Stoped Server=testserver
434 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - Created Server=testserver
436 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - Added Associoation=serverAsscoiation of type=SERVER
437 [main] INFO org.mobicents.protocols.sctp.ServerImpl - SctpServerChannel bound to=[/10.10.4.116:4321]
438 [main] INFO org.mobicents.protocols.sctp.ServerImpl - Started Server=testserver
439 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - Initializing SCTP Stack .... DONE
440 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - Initializing M3UA Stack ....
503 [main] INFO org.mobicents.protocols.ss7.m3ua.impl.M3UAManagementImpl - M3UA configuration file path /home/nitin/SS7_CapService/SERVER_m3ua.xml
563 [main] INFO org.mobicents.protocols.sctp.AssociationImpl - Started Association=Association [name=serverAsscoiation, associationType=SERVER, ipChannelType=SCTP, hostAddress=null, hostPort=0, peerAddress=10.10.4.116, peerPort=1234, serverName=testserver, extraHostAddress=[]]
571 [main] INFO org.mobicents.protocols.ss7.m3ua.impl.M3UAManagementImpl - Started M3UAManagement
574 [main] INFO org.mobicents.protocols.ss7.m3ua.impl.M3UAManagementImpl - Removing allocated resources: AppServers=1, AspFactories=1
591 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - Initializing M3UA Stack .... DONE
593 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - Initializing SCCP Stack ....
638 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadServerSccpStack - Starting ...
640 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadServerSccpStack - SCCP Management configuration file path /home/nitin/SS7_CapService/MapLoadServerSccpStack_management2.xml
643 [main] WARN org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadServerSccpStack - Failed to load the Sccp Management configuration file.
/home/nitin/SS7_CapService/MapLoadServerSccpStack_management2.xml (No such file or directory)
754 [main] INFO org.mobicents.protocols.ss7.sccp.impl.router.RouterImpl - SCCP Router configuration file path /home/nitin/SS7_CapService/MapLoadServerSccpStack_sccprouter2.xml
776 [main] INFO org.mobicents.protocols.ss7.sccp.impl.router.RouterImpl - Started SCCP Router
801 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpResourceImpl - SCCP Resource configuration file path /home/nitin/SS7_CapService/MapLoadServerSccpStack_sccpresource2.xml
814 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpResourceImpl - Started Sccp Resource
816 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadServerSccpStack - Starting routing engine...
817 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadServerSccpStack - Starting management ...
819 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadServerSccpStack - Starting MSU handler...
828 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - Initializing SCCP Stack .... DONE
829 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - Initializing TCAP Stack ....
896 [main] INFO org.mobicents.protocols.ss7.tcap.TCAPStackImpl - Starting ...org.mobicents.protocols.ss7.tcap.TCAPProviderImpl@6abde0
898 [main] INFO org.mobicents.protocols.ss7.tcap.TCAPProviderImpl - Starting TCAP Provider
900 [main] INFO org.mobicents.protocols.ss7.tcap.TCAPProviderImpl - Registered SCCP listener with address 146
901 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - Initializing TCAP Stack .... DONE
903 [main] INFO org.mobicents.protocols.sctp.AssociationImpl - Started Association=Association [name=serverAsscoiation, associationType=SERVER, ipChannelType=SCTP, hostAddress=null, hostPort=0, peerAddress=10.10.4.116, peerPort=1234, serverName=testserver, extraHostAddress=[]]
908 [main] DEBUG jss7.standalone.example.cap.ocg.CapSCF - [[[[[[[[[[ Started CAP client ]]]]]]]]]]


.

.
.
.
49764 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49764 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49764 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49765 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49765 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49765 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49765 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49765 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49765 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49766 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49766 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation
49766 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=serverAsscoiation

At client end

[root@ivrstgserver SS7_CapService]# java -Djava.net.preferIPv4Stack=true -jar capclient.jar start
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
at org.apache.log4j.Logger.getLogger(Logger.java:118)
at jss7.standalone.example.cap.ocg.AbstractActpCAPBase.<clinit>(AbstractActpCAPBase.java:30)
*************************************
*** Capclient ***
*************************************
Inside AbstractActpCAPBase constractor
0 [main] INFO jss7.standalone.example.cap.ocg.AbstractActpCAPBase - log4j configured
4 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - Initializing SCTP Stack ....
43 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - SCTP configuration file path /home/nitin/SS7_CapService/Client_sctp.xml
74 [Thread-0] INFO org.mobicents.protocols.sctp.SelectorThread - SelectorThread for Management=Client started.
75 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - Started SCTP Management=Client WorkerThreads=0 SingleThread=true
76 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - Removing allocated resources: Servers=0, Associations=1
85 [main] INFO org.mobicents.protocols.sctp.ManagementImpl - Added Associoation=clientAsscoiation of type=CLIENT
85 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - Initializing SCTP Stack .... DONE
86 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - Initializing M3UA Stack ....
120 [main] INFO org.mobicents.protocols.ss7.m3ua.impl.M3UAManagementImpl - M3UA configuration file path /home/nitin/SS7_CapService/Client_m3ua.xml
150 [main] INFO org.mobicents.protocols.sctp.AssociationImpl - Started Association=Association [name=clientAsscoiation, associationType=CLIENT, ipChannelType=SCTP, hostAddress=10.10.4.116, hostPort=1234, peerAddress=10.10.4.116, peerPort=4321, serverName=null, extraHostAddress=[]]
154 [main] INFO org.mobicents.protocols.ss7.m3ua.impl.M3UAManagementImpl - Started M3UAManagement
155 [main] INFO org.mobicents.protocols.ss7.m3ua.impl.M3UAManagementImpl - Removing allocated resources: AppServers=1, AspFactories=1
156 [main] DEBUG org.mobicents.protocols.ss7.m3ua.impl.fsm.FSM - FSM.name=ASP1_LOCAL old state=DOWN, current state=DOWN Transition to=commdown
156 [main] DEBUG org.mobicents.protocols.ss7.m3ua.impl.fsm.FSM - FSM.name=AS1_PEER old state=DOWN, current state=DOWN Transition to=aspdown
159 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - Initializing M3UA Stack .... DONE
160 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - Initializing SCCP Stack ....
169 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadClientSccpStack - Starting ...
169 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadClientSccpStack - SCCP Management configuration file path /home/nitin/SS7_CapService/MapLoadClientSccpStack_management2.xml
170 [main] WARN org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadClientSccpStack - Failed to load the Sccp Management configuration file.
/home/nitin/SS7_CapService/MapLoadClientSccpStack_management2.xml (No such file or directory)
191 [main] INFO org.mobicents.protocols.ss7.sccp.impl.router.RouterImpl - SCCP Router configuration file path /home/nitin/SS7_CapService/MapLoadClientSccpStack_sccprouter2.xml
195 [main] INFO org.mobicents.protocols.ss7.sccp.impl.router.RouterImpl - Started SCCP Router
200 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpResourceImpl - SCCP Resource configuration file path /home/nitin/SS7_CapService/MapLoadClientSccpStack_sccpresource2.xml
203 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpResourceImpl - Started Sccp Resource
203 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadClientSccpStack - Starting routing engine...
203 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadClientSccpStack - Starting management ...
203 [main] INFO org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl-MapLoadClientSccpStack - Starting MSU handler...
205 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - Initializing SCCP Stack .... DONE
205 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - Initializing TCAP Stack ....
218 [main] INFO org.mobicents.protocols.ss7.tcap.TCAPStackImpl - Starting ...org.mobicents.protocols.ss7.tcap.TCAPProviderImpl@1472dca
218 [main] INFO org.mobicents.protocols.ss7.tcap.TCAPProviderImpl - Starting TCAP Provider
219 [main] INFO org.mobicents.protocols.ss7.tcap.TCAPProviderImpl - Registered SCCP listener with address 146
219 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - Initializing TCAP Stack .... DONE
219 [main] INFO org.mobicents.protocols.sctp.AssociationImpl - Started Association=Association [name=clientAsscoiation, associationType=CLIENT, ipChannelType=SCTP, hostAddress=10.10.4.116, hostPort=1234, peerAddress=10.10.4.116, peerPort=4321, serverName=null, extraHostAddress=[]]
220 [main] DEBUG jss7.standalone.example.cap.ocg.CapSSF - [[[[[[[[[[ Started CAP Server ]]]]]]]]]]


10592 [Thread-0] ERROR org.mobicents.protocols.sctp.SelectorThread - Error while selecting the ready keys
java.nio.channels.ClosedChannelException
at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:194)
at java.nio.channels.SelectableChannel.register(SelectableChannel.java:277)
at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:111)
at java.lang.Thread.run(Thread.java:745)
10596 [Thread-0] INFO org.mobicents.protocols.sctp.SelectorThread - Association=clientAsscoiation connected to=[/10.10.4.116:4321]
10597 [Thread-0] INFO org.mobicents.protocols.sctp.AssociationHandler - New association setup for Association=clientAsscoiation with 32 outbound streams, and 10 inbound streams.

10599 [Thread-0] DEBUG org.mobicents.protocols.ss7.m3ua.impl.fsm.FSM - FSM.name=ASP1_LOCAL old state=DOWN, current state=UP_SENT Transition to=commup
10599 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - messageInfo is null for Association=clientAsscoiation
10600 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - Tx : Ass=clientAsscoiation PayloadData [dataLength=16, complete=true, unordered=true, payloadProtocolId=3, streamNumber=0, data=
Start: 0 (0x00) End: 15 (0x0F) Length: 16 (0x10)
00: 01 00 03 01 00 00 00 10 00 11 00 08 00 00 00 03 | ........ ........
]
10649 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - Rx : Ass=clientAsscoiation PayloadData [dataLength=16, complete=true, unordered=true, payloadProtocolId=3, streamNumber=0, data=
Start: 0 (0x00) End: 15 (0x0F) Length: 16 (0x10)
00: 01 00 03 04 00 00 00 10 00 11 00 08 00 00 00 03 | ........ ........
]
10650 [Thread-0] DEBUG org.mobicents.protocols.ss7.m3ua.impl.fsm.FSM - FSM.name=ASP1_LOCAL old state=UP_SENT, current state=ACTIVE_SENT Transition to=aspactivesent
10651 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - Tx : Ass=clientAsscoiation PayloadData [dataLength=24, complete=true, unordered=true, payloadProtocolId=3, streamNumber=0, data=
Start: 0 (0x00) End: 23 (0x17) Length: 24 (0x18)
00: 01 00 04 01 00 00 00 18 00 0B 00 08 00 00 00 02 | ........ ........
10: 00 06 00 08 00 00 00 64 -- -- -- -- -- -- -- -- | .......d
]
10654 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - Rx : Ass=clientAsscoiation PayloadData [dataLength=32, complete=true, unordered=true, payloadProtocolId=3, streamNumber=0, data=
Start: 0 (0x00) End: 31 (0x1F) Length: 32 (0x20)
00: 01 00 00 01 00 00 00 20 00 0D 00 08 00 01 00 02 | ....... ........
10: 00 11 00 08 00 00 00 03 00 06 00 08 00 00 00 64 | ........ .......d
]
10655 [Thread-0] DEBUG org.mobicents.protocols.ss7.m3ua.impl.fsm.FSM - FSM.name=AS1_PEER old state=DOWN, current state=INACTIVE Transition to=ntfyasinactive
10669 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - Rx : Ass=clientAsscoiation PayloadData [dataLength=24, complete=true, unordered=true, payloadProtocolId=3, streamNumber=0, data=
Start: 0 (0x00) End: 23 (0x17) Length: 24 (0x18)
00: 01 00 04 03 00 00 00 18 00 0B 00 08 00 00 00 02 | ........ ........
10: 00 06 00 08 00 00 00 64 -- -- -- -- -- -- -- -- | .......d
]
10669 [Thread-0] DEBUG org.mobicents.protocols.ss7.m3ua.impl.fsm.FSM - FSM.name=ASP1_LOCAL old state=ACTIVE_SENT, current state=ACTIVE Transition to=aspactiveack
10671 [Thread-0] DEBUG org.mobicents.protocols.sctp.AssociationImpl - Rx : Ass=clientAsscoiation PayloadData [dataLength=32, complete=true, unordered=true, payloadProtocolId=3, streamNumber=0, data=
Start: 0 (0x00) End: 31 (0x1F) Length: 32 (0x20)
00: 01 00 00 01 00 00 00 20 00 0D 00 08 00 01 00 03 | ....... ........
10: 00 11 00 08 00 00 00 03 00 06 00 08 00 00 00 64 | ........ .......d


Amit Bhayani

unread,
Jul 17, 2014, 3:13:37 PM7/17/14
to mobicents-public
Hi,

As per logs the SCTP handshake is happening and M3UA messages are getting exchanged. I don't see any problem here.








--
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.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages