Re: Problem SS7 with Digium Card

585 views
Skip to first unread message

yulian_o

unread,
Jul 2, 2012, 6:21:18 AM7/2/12
to mobicent...@googlegroups.com
Hello
First of all no thread should be created since in latest releases mtp2/3 is controlled through signaling gateway and scheduler.
What are 2 sides of e1 connections ( are you connecting sgw to other sgw , asterisk or something else ).
Please provide a log on sgw side to see whats going on there.
Also please provide linkset show output from ss7 shell.

Best regards
Yulian Oifa

ludovic monnier

unread,
Jul 2, 2012, 6:53:01 AM7/2/12
to mobicent...@googlegroups.com
I use a crossover cable (loopback) between 2 span for test.
For beginning, i use a snippet code, like this, just for check MTP2.
 
 
 public void run(String[] args)
 {
  String params = new String("linkset create dahdi opc "+args[0]+" apc "+args[1]+" ni 0 linkset1");
  options = params.split(" ");
  System.out.println(params);
  
  DahdiLinksetFactory factory = new DahdiLinksetFactory();
  try
  {
   DahdiLinkset linkset = (DahdiLinkset) factory.createLinkset(options);
   params = new String("linkset link create span "+args[2]+" code "+args[3]+" channel "+args[4]+" linkset1 link1");
   System.out.println(params);
   linkset.createLink( params.split(" "));
   
   linkset.getLinksetStream();
   
   Scheduler scheduler = new Scheduler();
   Clock clock = new DefaultClock();
   scheduler.setClock(clock );
   
   
   
   linkset.setScheduler(scheduler );
   scheduler.start();
   linkset.activateLink("link1");
   linkset.activate();
   
  }
  catch (Exception e)
  {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
 }

yulian_o

unread,
Jul 2, 2012, 7:56:53 AM7/2/12
to mobicent...@googlegroups.com
Hello
Why dont you just activate sgw , add 2 linkset and add one link for each and then test the solution?

Best regards
Yulian Oifa

ludovic monnier

unread,
Jul 2, 2012, 8:26:13 AM7/2/12
to mobicent...@googlegroups.com
Because, i haven't found how to do that with digium card.
I use this version:
                   mobicents-ss7-2.0.0.BETA1-src
 
But, seem to work only with Dialogic cards, or with sctp.
could you explain me how to proceed.
 
Thanks

yulian_o

unread,
Jul 2, 2012, 8:47:11 AM7/2/12
to mobicent...@googlegroups.com
Hello
Get latest ss7 code from mobicents ss7 : http://code.google.com/p/jss7/
verify that you have java 7 and maven installed.
go to main folder and run "mvn clean install -Pdahdilinux" this will compile the project.
After that you will have taget/mobicents-sgw folder under sgw copy that folder , or simply run the code from bin ( run.sh ).

Best regards
Yulian Oifa

ludovic monnier

unread,
Jul 3, 2012, 8:31:32 AM7/3/12
to mobicent...@googlegroups.com
Hi Yulian,
 
After compile project SGW, configure 2 linkset and 1 link for each, mtp2 is Aligned. :)
 
But, it seem i have a problem with the configuration of my digium card:
 
If i use link configured on "dchan or mtp2" in system.conf (channel 16 of each span) then MTP2 is never aligned.
And if i use, channel 1 of each span (bchan) then MTP2 is aligned, BUT i can see with dahdi_pcap (dump) lot of bad packet (filling)
 
Must i use parameters bchan, dchan or mtp2 ?
 
#cat /etc/dahdi/system.conf
 
# Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER) HDB3/CCS/CRC4
span=1,0,0,ccs,hdb3,crc4
# termtype: nt
bchan=1-15,17-31
#dchan=16
mtp2=16
#echocanceller=oslec,1-15,17-31
 
# Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" HDB3/CCS/CRC4
span=2,0,0,ccs,hdb3,crc4
# termtype: te
bchan=32-46,48-62
#dchan=47
mtp2=47
#echocanceller=oslec,32-46,48-62
Thanks,

yulian_o

unread,
Jul 3, 2012, 9:29:49 AM7/3/12
to mobicent...@googlegroups.com
Hello
First of all dont use dchan , you should use mtp2.
Second you have a problem with timing configuration.

Try to set
span=2,1,0,ccs,hdb3,crc4 ( pay attention to 1 at clock source ).

Best regards
Yulian Oifa

yulian_o

unread,
Jul 3, 2012, 9:33:41 AM7/3/12
to mobicent...@googlegroups.com
Sorry my mistake you should work on b channel only!!!

yulian_o

unread,
Jul 3, 2012, 9:37:45 AM7/3/12
to mobicent...@googlegroups.com
Final configuration :


# Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER) HDB3/CCS/CRC4
span=1,0,0,ccs,hdb3,crc4
# termtype: nt
bchan=1-31
#dchan=16
#mtp2=16
#echocanceller=oslec,1-15,17-31
 
# Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" HDB3/CCS/CRC4
span=2,1,0,ccs,hdb3,crc4
# termtype: te
bchan=32-62
#dchan=47
#mtp2=47

Btw you will see empty frames on dump since mtp2 always sends data.
I beleive that mtp2 settings in dahdi is used for built in mtp2 driver.
So for example if you use sgw to asterisk connection you will set mtp2=16 on asterisk side.

Best regards
Yulian Oifa

ludovic monnier

unread,
Jul 3, 2012, 11:12:34 AM7/3/12
to mobicent...@googlegroups.com
Hi,
 
Thanks, for these informations.
I have done a test with MTP2 channel on Asterisk and SGW with success.
In this case, on MTP2 i have a dump without garbage data, and on other channel (bchan), the dump is messy.
 
Ludovic

yulian_o

unread,
Jul 3, 2012, 11:17:25 AM7/3/12
to mobicent...@googlegroups.com
Hello
Thats because you see actuall mtp 2 packets , while on mtp2 channel you dont see them because nothing is sent except headers.

Best regards
Yulian oifa

ludovic monnier

unread,
Jul 3, 2012, 12:20:44 PM7/3/12
to mobicent...@googlegroups.com
I have to buy another card (4 E1), coud you give me your opinion about wich is the best card for SGW ?
 
Sangoma, Digium or Dialogic ? and wich model ?
 
Thanks
 
Ludovic

Amit Bhayani

unread,
Jul 3, 2012, 12:33:19 PM7/3/12
to mobicent...@googlegroups.com
Obviously Dialogic is above Diguim and Sangoma for simple reason DIalogic allows MTP2/3 on-board which reduces the load heavily on the CPU. 

However Dahdi based cards are much cheaper than Dialogic.

yulian_o

unread,
Jul 4, 2012, 2:57:56 AM7/4/12
to mobicent...@googlegroups.com
Hello
I am using Digium 8 E1 card.
Each slot allows 30 calls per second on ISUP , therefore one E1 allows 930 calls per second ( you dont have d channel ).in minute one E1 allows 55800 calls.
So even one E1 allows you high traffic.

About the cards.
There are several options :
1) Dialogic has built in cpu and protocols implemented so it does reduces the load from system.Together with that i dont think the load with even 8 e1 is not something sgw should handle.
I did not made a load tests but optimization will be done in future to allow 480 channels ( thats the goal ).So paying extra $ for dialogic card for my opinion is not a must.
2) Since dahdi has built in mtp2 driver its possible to work with it , so possibly in future sgw dahdi will be changed to work with built in driver instead of mtp2 implemented in sgw , this can also optimize
the perfomance.

Because dahdi is implemented by asterisk team i choosed digium card and not sangoma.
But of course its the matter of choise.

Best regards
Yulian Oifa

ludovic monnier

unread,
Jul 10, 2012, 11:53:34 AM7/10/12
to mobicent...@googlegroups.com
Hello,
 
Now, i try to compile the smscgateway project.
 
I use Java 1.7
 
1- git clone https://code.google.com/p/smscgateway/
2- mvn install clean
    but i have too many error...
 
Could you give me the procedure for build this project.
 
Thanks,
 
Ludovic

ludovic monnier

unread,
Jul 11, 2012, 4:49:59 AM7/11/12
to mobicent...@googlegroups.com
Hello Amit,
I seen you work on project smscgateway, and i try to compile this project.
I use Java 1.7
I got source from :

i run maven : 
mvn install clean
but i have too many error...
Could you help me for build this project. Can you give me all step. 
 
Thanks,
Ludovic

On Tuesday, July 3, 2012 6:33:19 PM UTC+2, Amit Bhayani wrote:
Obviously Dialogic is above Diguim and Sangoma for simple reason DIalogic allows MTP2/3 on-board which reduces the load heavily on the CPU. 

However Dahdi based cards are much cheaper than Dialogic.

Amit Bhayani

unread,
Jul 11, 2012, 6:00:07 AM7/11/12
to mobicent...@googlegroups.com
Please show us error here.

Amit.

ludovic monnier

unread,
Jul 11, 2012, 6:40:41 AM7/11/12
to mobicent...@googlegroups.com
first error :
 
Cannot find classes :
 
import org.mobicents.ss7.management.console.CommandContext;
import org.mobicents.ss7.management.console.CommandHandlerWithHelp;
import org.mobicents.ss7.management.console.CommandLineCompleter;
Thanks

On Wednesday, July 11, 2012 12:00:07 PM UTC+2, Amit Bhayani wrote:
Please show us error here.

Amit.


smsgateway.log

ludovic monnier

unread,
Jul 11, 2012, 10:27:34 AM7/11/12
to mobicent...@googlegroups.com
Hi,
 
Ok, i found it.
 
I have installed again jss7 and compile it.
After i have installed smscgateway
 
But now, i have this error :
Missing:
----------
1) org.mobicents.smsc:oam:jar:1.0.0.ALPHA-SNAPSHOT
  Try downloading the file manually from the project website.
  Then, install it using the command:
      mvn install:install-file -DgroupId=org.mobicents.smsc -DartifactId=oam -Dversion=1.0.0.ALPHA-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.mobicents.smsc -DartifactId=oam -Dversion=1.0.0.ALPHA-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  Path to dependency:
   1) org.mobicents.smsc:bootstrap:jar:1.0.0.ALPHA-SNAPSHOT
   2) org.mobicents.smsc:oam:jar:1.0.0.ALPHA-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
  org.mobicents.smsc:bootstrap:jar:1.0.0.ALPHA-SNAPSHOT
from the specified remote repositories:
  jboss-releases (http://repository.jboss.org/nexus/content/repositories/releases/),
  central (http://repo1.maven.org/maven2),
  mobicents-public-repository-group (https://oss.sonatype.org/content/groups/public),
  jboss-deprecated-repository (https://repository.jboss.org/nexus/content/repositories/deprecated/),
  cloudhopper-public (http://maven.cloudhopper.com/repos/third-party),
  jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public)

 
Thanks for your help,
 
Ludovic

ludovic monnier

unread,
Jul 11, 2012, 11:44:23 AM7/11/12
to mobicent...@googlegroups.com
Hi,
 
Missing the directory :
 
We can found
ShellExecutor.java
Subject.java
But these files aren't in git. ( git clone https://code.google.com/p/smscgateway/ )
 
so, i can't compile : org.mobicents.smsc:oam:jar:1.0.0.ALPHA-SNAPSHOT
 
Thanks
 
Ludovic

On Wednesday, July 11, 2012 12:00:07 PM UTC+2, Amit Bhayani wrote:
Please show us error here.

Amit.

Reply all
Reply to author
Forward
0 new messages