B410P

and.keller
Posts: 17
Member Since:
2007-07-04

Hi there
I found a great instructions, how to install the B410P.
But is it really neccessery to build a new kernel?

http://www.trixbox.org/forums/trixbox-forums/trunks/howto-install...

*****************************************************************
Based on instructions from Steve Davies (steve at connection-telecom.com), adapted for later Zaptel release and UK specific BT issues… The instructions below are based on Trixbox 2.2 on an HP Proliant ML110G4 using the B410P as a PSTN gateway, as at 17/07/2007.

Install the B410P hardware.

Install Trixbox as normal, booting to non-SMP kernel at every boot (ie. the kernel that is listed that does not contain the words SMP).

Check for shared interrupts by entering the following:

cat /proc/interrupts

(and)

lspci -vb

If a conflict exists, try moving the card to another PCI slot.

Update Trixbox:

yum –y update
shutdown –r now

After reboot, login, check and make note of version of Asterisk installed:

asterisk –rx 'show version'

For B410P install, use stable 2.6.17 kernel:

cd /usr/src/linux
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.14.tar.b...

Unpack kernel:

tar xjf linux-2.6.17.14.tar.bz2
ln -s linux-2.6.17.14 linux

Configure kernel:

cd linux
cat .config
(remove the spaces between the .config - for some reason it wouldn't render properly when posting)
make oldconfig

(and hit enter - a lot! - at all the new options)

Compile and install kernel:

make && make modules_install && make install

(Wait a while for new kernel to build)

Edit grub.conf and make sure new kernel is the default:

nano /boot/grub/grub.conf

("default=0" at the top)

Before rebooting, fetch zaptel and asterisk source...

Fetch latest zaptel:

cd /usr/src
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.19.tar.gz

Check again what asterisk version Trixbox is running (asterisk -rx 'show version')

Fetch the source of that same version (1.2.20 at the time of writing):

cd /usr/src
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.20.tar.g...

Unpack them:

cd /usr/src
tar xzf zaptel-1.2.19.tar.gz
tar xzf asterisk-1.2.20.tar.gz

Now reboot the box into the new kernel. Once it has rebooted, we need to rebuild Zaptel and build misdn:

cd /usr/src/zaptel-1.2.19
make && make install
/etc/init.d/zaptel start

cd /usr/src/zaptel-1.2.19
make b410p

Configure misdn:

/etc/init.d/misdn-init scan
(should find card)
/etc/init.d/misdn-init config

Edit the misdn config file:

nano /etc/misdn-init.conf

Adjust port settings to be te_ptmp, te_ptp, nt_ptmp or nt_ptp as required. In the UK with BT ISDN2e lines (with 10 DDIs) this was ‘te_ptp’, although some implementations by BT require ‘te_ptmp’. We left everything else in the file as is.

Start misdn and check things look ok:

/etc/init.d/misdn-init start

Set misdn to start on reboot:

chkconfig --add misdn-init

Now we use the Asterisk source we downloaded to build chan_misdn.so and copy it to the /usr/lib/asterisk/modules directory. Doing it this way means we don't disturb existing add-on modules like rxfax etc. This will only work if you make sure the source you downloaded is the
same version as Trixbox had before…

cd /usr/src/asterisk-1.2.20
make clean && make (NOT make install!)

cp channels/chan_misdn.so /usr/lib/asterisk/modules/

Lastly, generate an misdn.conf for Asterisk…

Copy the sample misdn.conf file (change 1.2.20 to the version of Asterisk installed) into the Asterisk config directory:

cp /usr/src/asterisk-1.2.20/configs/misdn.conf.sample /etc/asterisk/misdn.conf

Now edit the misdn.conf config file:

nano /etc/asterisk/misdn.conf

Make the following changes, listed in the order you'll find them in the file:

Just after "[default]", find "context=misdn" and change it to "context=from-pstn"

Change "far_alerting=no" to "far_alerting=yes"

Change ";echocancel=no" to "echocancel=yes" (note the removal of the semi-colon)

Add “echotraining=no” below “echocancel=yes”

At the end of the file, remove everything after “hdlc=no” add the following, changing “ports=” to include the ports you have connected to the ISDN network (eg. 1,2,3,4 or 1,2 or 3,4 as in this case):

[out]
ports=3,4
context=from-pstn
msns=*

If your ISDN lines don't have MSN or DDI numbers, then you also need to:

Change ";immediate=no" to say "immediate=yes" in the [default] section (note removal of the semicolon)

Save the modified file and exit nano.

Now enter Asterisk and load the chan_misdn.so:

asterisk -r
load chan_misdn.so
misdn show stacks

This will also show the ports you have connected – if you have connected them to the wrong ones (eg. you thought you had 1,2 and adjusted misdn.conf as such, but they are in fact 3,4), re-connect accordingly. Lastly, reboot the whole thing and check that all comes up as expected.

Login to the web interface of Trixbox and go into FreePBX – set up an inbound route for ‘any – any’ and send it to an extension. Commit changes, and then run ‘asterisk –r –vvvvvvvvvvvvvvv’ from a shell prompt and call one of your ISDN numbers/DDIs. Check inbound number passed from the provider – in our case (with BT) they only passed the last 6 digits of the DDI. With this information set up inbound routes in FreePBX accordingly, remembering to remove the ‘any – any’ rule.
*****************************************************************



smokiebeverage
Posts: 112
Member Since:
2007-06-02
B410P Install

Have a look at http://www.trixbox.org/forums/trixbox-forums/trunks/digium-b410p-...
its based on trixbox 2.2 and works well.

You need to build the new kernel because mISDN does not work properly on the stock Trixbox kernel.



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
Ok for trixbox 2.2 but with

Ok for trixbox 2.2 but with trixbox 2.3 (2.4) ???



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Trixbox 2.3

As these versions are built on CentOS 5 you wont need to complile a kernel, just compile the source for Zaptel, run mISDN and compile asterisk to get the matching misdn module and you should be done. The scripts for 2.2 could be modified to use the new zaptel and asterisk without compiling the kernel really easily. I haven't tried 2.3 versions yet so I cant confim the workings of it but I don't see any problems.



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
Ok but when i compile

Ok but when i compile asterisk i dont have chan-misdn.so. All other module are compiled :(



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Asterisk mISDN

Have you compiled zaptel and made mISDN before you compile asterisk. Also in asterisk 1.4 i'm not sure if chan-misdn.so is in the same place, sorry I'd need to try it to find out



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
yes i have compiled zaptel

yes i have compiled zaptel and made mISDN
In /usr/src/asterisk/channels i have chan_misdn.c but not .so

I have made a search but linux can't find .so



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Compile asterisk

The .so file will only show up when you compile asterisk, remember dont bother doing make install on asterisk as all you need is chan_misdn and nothing else.



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
yes I made make clean,

yes
I made make clean, ./configure, make
But the wanted file is still not there. I see chan_sip.so, chan_zap.so but no chan_misdn.so



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Em?

I don't normally do ./configure just make clean and make. I dont know if you are in a hurry but I'll be testing this during the week and I can update you on how I get on if you would like. I would think it has to do with asterisk 1.4 but without trying I can't be sure.



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
./configure is necessary to

./configure is necessary to do a make.

Ok thanks for your help. If anyone as test, HELP US PLEASE !!! :)



smokiebeverage
Posts: 112
Member Since:
2007-06-02
./configure

I've just asked around the office and you shouldnt need ./configure as you just want to use the origional config file. We have never needed to do that during any of our installs. Actually the ./configure may be why you dont get the misdn so file. or you may need to hand edit the config file to make sure it is built? Keep me posted if you have any luck



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
read that [trixbox1.local

read that

[trixbox1.local asterisk-1.4.6]# make clean
.......
.......

cp -f .cleancount .lastclean
[trixbox1.local asterisk-1.4.6]#
[trixbox1.local asterisk-1.4.6]# make
****
**** The configure script must be executed before running 'make'.
**** Please run "./configure".
****
make: *** [makeopts] Erreur 1
[trixbox1.local asterisk-1.4.6]

thats the reason why i must ./configure
:/



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
an other idea

an other idea



time2try
Posts: 12
Member Since:
2007-08-06
beronet and misdn

Hi,

I've a beronet BN4SO (4 bri) which everyone says it's a sister card of the B410P.
I've installed misdn from beronet script (wget http://www.beonet.com/download/install-misdn.mqueue.tar.gz) and everything seems to work ok, except I can't "load chan_misdn.so" from Asterisk CLI.
I've copied the chan_misdn.so file to /usr/lib/asterisk/modules/chan_misdn.so, but still get "unable to load module chan_misdn.so"
have you placed this lines in /etc/asterisk/modules.conf
"
load => res_features.so
load => chan_misdn.so
[global]
res_features=yes
chan_misdn=yes
"

I'll keep trying and post if I succeed to load chan_misdn.so

Centeno
Time2Try, lda
Portugal

--

Centeno
Time2Try, lda
Portugal



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Loading module chan_misdn

Just fire off

asterisk -rx 'load chan_misdn.so'

and that should do the trick



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Loading module chan_misdn

Just fire off

asterisk -rx 'load chan_misdn.so'

and that should do the trick



smokiebeverage
Posts: 112
Member Since:
2007-06-02
mISDN on TB2.3

Ok,

I had a couple of hours to play and I now have the card firing up on TB2.3, the only problem is I cant test as we have no BRI's in the office. If you wanna try I have it scripted, you can get it from

wget http://www.wysdom.eu/trixbox/B410p-TB2.3.tar.gz

Do a yum -y update and reboot first

un-tar/gzip it and have a read to check the script makes sense to you, and you may only need the last bit, but I noticed that my 'make b410p' had failed and thats why asterisk was not compiling chan_misnd.so so be careful.

just do './B410p-AstZap' sit back and wait, and hopefully you'll be done.

Best of luck



smokiebeverage
Posts: 112
Member Since:
2007-06-02
mISDN on TB2.3

Ok,

I had a couple of hours to play and I now have the card firing up on TB2.3, the only problem is I cant test as we have no BRI's in the office. If you wanna try I have it scripted, you can get it from

wget http://www.wysdom.eu/trixbox/B410p-TB2.3.tar.gz

un-tar/gzip it and have a read to check the script makes sense to you, and you may only need the last bit, but I noticed that my 'make b410p' had failed and thats why asterisk was not compiling chan_misnd.so so be careful.

just do './B410p-AstZap' sit back and wait, and hopefully you'll be done.

Best of luck



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
Where are you find the chan_misdn.so

Where are you find the chan_misdn.so??



smokiebeverage
Posts: 112
Member Since:
2007-06-02
location of chan_misdn.so

The compiled version is in

/usr/src/asterisk-X.X.X/channels/chan_misdn.so

and it is copied to

/usr/lib/asterisk/modules



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
OH OK i have read you

OH OK i have read you script.
To compil misdn you use ./configure --with-chan_misdn.so

Thats m'y probleme.
I try and i tell you the result.



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
[trixbox1.local

[trixbox1.local zaptel-1.4.3]# make b410p
[ -f mISDN-1_1_3.tar.gz ] || /usr/bin/wget ftp://ftp.digium.com/pub/zaptel/b410p/mISDN-1_1_3.tar.gz
--18:08:42-- ftp://ftp.digium.com/pub/zaptel/b410p/mISDN-1_1_3.tar.gz
=> `mISDN-1_1_3.tar.gz'
Résolution de ftp.digium.com... 216.27.40.102
Connexion vers ftp.digium.com|216.27.40.102|:21...échec: Connexion refusée.
make: *** [b410p] Erreur 1



smokiebeverage
Posts: 112
Member Since:
2007-06-02
digium ftp problem

You know I had the same problem the other day when I was testing the script. I thought it was just a temporary problem with digium's ftp server. Anyway its easy to fix. You can just edit the asterisk Makefile and in the section for make b410p edit the wget statements to use the mISDN servers.

Replace

ftp://ftp.digium.com/pub/zaptel/b410p

with

http://www.misdn.org/downloads/releases/

that will sort you out.

I hope that helps



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
For information Digium : Now

For information
Digium :
Now we currently only support HTTP. The FTP service has been shut down.



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
cp channels/chan_misdn.so

cp channels/chan_misdn.so /usr/lib/asterisk/modules
cp: ne peut évaluer `channels/chan_misdn.so': Aucun fichier ou répertoire de ce type

there is no chan_misdn.so

I have made :
make clean
./configure --with-chan_misdn
make

like you script.



smokiebeverage
Posts: 112
Member Since:
2007-06-02
cp channels/chan_misdn.so

The Makefile is produced by digium so I suppose its just a bug left in asteisk for the moment. Did the make work correctly and the ./configure? If so the chan_misdn.so would be there



smokiebeverage
Posts: 112
Member Since:
2007-06-02
cp channels/chan_misdn.so

The Makefile is produced by digium so I suppose its just a bug left in asteisk for the moment. Did the make work correctly and the ./configure? If so the chan_misdn.so would be there



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
when i do ./configure

when i do
./configure -with-misdn

configure: ***
configure: *** The mISDN User Library installation on this system appears to be broken.
configure: *** Either correct the installation, or run configure
configure: *** without explicitly specifying --with-misdn



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
make[3]: *** [voipisdn]

make[3]: *** [voipisdn] Erreur 1
make[3]: quittant le répertoire « /usr/src/zaptel-1.4.4/mISDNuser-1_1_5/voip »
make[2]: *** [subdirs] Erreur 2
make[2]: quittant le répertoire « /usr/src/zaptel-1.4.4/mISDNuser-1_1_5 »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /usr/src/zaptel-1.4.4/mISDNuser-1_1_5 »
make: *** [b410p] Erreur 2
[trixbox1.local zaptel-1.4.4]#



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
i have try with zaptel 1.4.4

i have try with zaptel 1.4.4 and misdn 1.1.5 and the problème is the same.
The compilation of b410p have error and asterisk can't compile misdn channel.



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Zaptel

If thats the case your zaptel has not compiled correctly. I was using zaptel 1.4.3 when I did it so you would have to modify the script to the correct versions of Zaptel and Asterisk.

Have you got the correct packages installed such as

yum -y install gcc gcc-c++ libxml2-devel libtiff-devel
yum -y install kernel-headers kernel-devel flex



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
yes all this package are

yes all this package are installed.



smokiebeverage
Posts: 112
Member Since:
2007-06-02
emmmmm

I'll have to do a fresh install of TB2.3 and retest to find out whats wrong with the script. I wont get to that until later sorry!



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
after some try i juste see

after some try i juste see that lncurses is missing.
What that??
How to install this package??



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
ok i have found the

ok i have found the compilation probleme. You must to add
you must have to add ncurses-devel to your scriptcd
yum install ncurses-devel



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
OK After that all modules

OK
After that all modules are ok.
But after that How to create trunk on freepbx to use this card ??
what should i do??



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Thanks

Well done, I must have done the yum install and never added it to the script, thats the danger of late night work! I'll add it now.

To add a trunk, in freepbx add a custom trunk with the dial string mISDN/g:out/$OUTNUM$ and that should do it. Saying that on TB2.2 I had problems with the telco switching the power off on the circuit so I make a number of trunks one for each port and that actually worked better. I've made a note in another posting its got "All circuits are busy" should be handy to find it if you have that issue.



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
For me it doesn't work. I

For me it doesn't work. I can't call.
All ports are blinking in red.

I dont' understand why digium have made this card. It's must be easy. digium = asterisk

I have 2 T0
i have configured all port to te_ptmp mode.

in misdn.conf i have you configuration. I free pbx i have create a custom truc with mISDN/g:out/$OUTNUM$

BEGIN STACK_LIST:
* Port 1 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:0
* Port 2 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:0
* Port 3 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:0
* Port 4 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:0



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Not working

ok well at least the card starts! Its a good card but to be honest trixbox makes it a little more difficult as in 2.2 the kernel does not support the card. and 2.3 is beta so its gonna be less than perfect. You should get a green light at some stage, have you tried an incoming call. We found our telco drops the power when no calls are active so the line goes red and outgoing calls don't work,but if we called in the link would go green because the telco would switch the power on. and all would be fine. We got around that by making a trunk for each port. like mISDN/1/$OUTNUM$. Also the script makes config files for the line type our telco provides, you need to check what mode you need to use.



indigotech
Posts: 10
Member Since:
2007-07-19
I agree with the digium =

I agree with the digium = asterisk logic as I did the same and bought the card on that basis, only to find it hideous to work with TB. Once it does work the call quality is good but there are a number of areas TB installtion and integration is poor.

Since the L1 Link is down, check your cables.

Also, try changing the ports to te_ptp and restart misdn and then restart asterisk.



TRUSTINFO
Posts: 64
Member Since:
2006-06-12
After long search indigotech

After long search indigotech has right. I have the wrong cable. i must have straight cable for m'y installation.

An other problem was found on m'y provider.

Now it's ok.
Just for number.
0311111111
when i phone will be transformed in 00311111111

A big thanks.

TB use asterisk. For me digium must create an easy install.
Digium resells its products thanks to asterisk. It should be so easy...



smokiebeverage
Posts: 112
Member Since:
2007-06-02
Digium/Asterisk

Thats good that it works now. To be fair to digium they write and support asterisk and if you install the card on a non trixbox system to a more normal spec its not hard to install at all. The problem is that trixbox is so well preconfigured that you have to untagle TB before you start. The TB team can't cover all the hardware so its always going to be a little tricky. Having tested on TB2.3 its now fairly simple and should get easier as time goes on



stelish
Posts: 71
Member Since:
2007-02-16
Great Info.

I just like to say thank you guy's for the info, i followed everything and it worked a treat for me here in New Zealand.

Cheers

Steve
www.realtechnology.co.nz



pwalker
Posts: 6
Member Since:
2007-05-14
B410P with mISDN from Beronet and stock trix smp kernel

Just for your info, maybe it helps someone else out there:
I've just installed the following successfully on a trixbox 2.2.3 with the "stock" 2.6.9-34.0.2.ELsmp (yes, even SMP!) kernel:
- mISDN 1.1.5 from Beronet (http://www.misdn.org/downloads/releases/
- chan_misdn 0.3.1-rc35 from Beronet (http://www.beronet.com/download/chan_misdn/stable/ )

Previsouly (with mISDN from Digium and/or Kernel 2.6.17.14), I had various strange stuff like Kernel panics - e.g. during server shutdown, Kernel Oops, irq problems and so on), now everything seems to work just fine.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.