Tuesday, April 28, 2009

Sangoma & Asterisk + SS7

This is in continuation to my earlier blog on Asterisk + SS7

Here I will jot down my experience on installing wanpipe drivers for new Sangoma A102 card. I bought this card for approximately 60000 INR which is approximately 1350 USD. Just FYI, if any of you guys planing to buy, not sure if its expensive?. I started with downloading Wanpipe drivers and downloaded the most recent 3.3.16 Beta version from http://wiki.sangoma.com/wanpipe-linux-drivers#beta.

Untar this to /usr/src directory

From /usr/src/wanpipe call 'sudo ./Setup dahdi' This will ask you few questions like where is your dahdi installation (point to directory of dahdi). If you have installed dahdi at default location it will automatically give you an option to select that. You will find info at wiki http://wiki.sangoma.com/wanpipe-linux-asterisk-dahdi. I really was looking for way to update this wiki with all the questions that I faced while installing and answers I provided, but unfortunately I didn't find a way to edit the wiki. Though there is an option to leave comment but didn't like that :( Sangoma people can you please make this more dynamic?

Once the compilation of drivers is successful, the Setup will ask you to configure the Channels. This is interesting part and one that kept failing at my end with error message

"No Sangoma voice compatible cards found/configured"

I was having hardware and could see the lights glowing so definitely there was no problem with hardware or PCI slot. I tried executing the command 'sudo wanrouter hwprobe' and would always get

wanrouter: Wanpipe Module: /lib/modules/2.6.24-23-generic/kernel/drivers/net/wan/sdladrv not found !!!!
WANPIPE drivers must be compiled as modules
Check kernel configuration in /usr/src/linux/.config:
CONFIG_WAN_ROUTER=m
CONFIG_VENDOR_SANGOMA=m


I had to ping Sangoma support for this. You can find contact details for support at http://wiki.sangoma.com/SangomaTechSupport

Marc from Sangoma was really quick on this one to help me out. Thanks you Marc Celsie! As per support I had to edit /lib/modules/2.6.24-23-generic/build/Makefile and remove line "EXTRAVERSION = .6". Then change "SUBLEVEL = 24" to "SUBLEVEL = 24-23-generic". After this I had to re-execute the command 'sudo ./Setup dahdi' and it worked like a charm. I set-up the E1 lines and could see 62 channels getting created at /dev/dahdi/1 ... /dev/dahdi/62. The LED at both the port (A-102 has two ports) is now Red which means the drivers installation is good but there is no traffic.

I created a loop-back as shown in this image http://www.t1installers.com/wp-includes/images/loopback/clip_image002.jpg

Pin-outs for the loopback cable:
1<->4
2<->5

And inserted in one of the ports and LED turns Green!

Execute 'ifconfig' command number of times and you will see the tx and rx value increasing for port where you have loopback wire plugged. This is proof that everything is good so far.

After this comes the configuration files for Asterisk to talk to your hardware. I am doing this as of now and will post soon in my next blog.

Stay Tunned!

4 comments:

ahsan said...

hello Amit,
This article proved to be very useful for me because i am also trying to configure ss7 with sangoma A101 cards. I am eagerly waiting for your detailed article about ss7.

amit.bhayani said...

Hi Ahsan,

I didn't get a chance to look into thia after. However will soon do it and post my findings here.

Ahsan said...

Thanx alot sir
i am waiting for your further response

AnujITBHU said...

Hello Amit,

Does your Mobicent SS7 stack will work with Sangoma A101 card ? We are building a application where we need to modify the ISUP Call flow announcement for Pre Call . Though we are trying with Asterix Libss7 over sangoma so wondering if we could use mobicents if it supports sangoma .
Rg

Anuj
+919910044314