trixbox 2.4 with chan_mISDN (new wiki entry)
Hi,
after spending some hours to figure this out I have posted a new wiki entry:
http://www.trixbox.org/wiki/chan-misdn
I hope this is the right place for this and I haven't overseen an other howto.
Regards,
Hajama
on a new trixbox 2.4 installation,
Steps 1, 2 are ok.
Step 3: there is no /etc/modprobe.de/blacklist file (modprobe.de folder does not exist)
Step 5: when I make install in folder mISDN-1_1_7 I have the following error:
[trixbox1.localdomain mISDN-1_1_7]# make install
echo 1_1_7 > VERSION ; \
cp /usr/src/mISDN-1_1_7/drivers/isdn/hardware/mISDN/Makefile.v2.6 /usr/src/mISDN
export MINCLUDES=/usr/src/mISDN-1_1_7/include ; export MISDNVERSION=1_1_7; make isdn/hardware/mISDN modules CONFIG_MISDN_DRV=m CONFIG_MISDN_DSP=m CONFIG_MISDNCONFIG_MISDN_HFCMINI=m CONFIG_MISDN_W6692=m CONFIG_MISDN_SPEEDFAX=m CONFIG_MISDN
make: *** /lib/modules/2.6.18-53.1.4.el5/build: No such file or directory. Stop
make: *** [all] Error 2
Any help ?
Dimitris
Try these before make install:
1-
yum instal kernel-headers
or
wget ftp://ftp.pbone.net/mirror/ftp.centos.org/5.1/updates/i386/RPMS/k... rpm -i kernel-headers-2.6.18-53.1.4.el5.i386.rpm
2-
yum install gcc-c++
3- (Think these are optional for Asterisk 1.4 installation.)
yum install flex subversion
Ignore editing /etc/modprobe.de/blacklist since those doesn't hurt you almost nothing.
Hi,
Step 3: there is no /etc/modprobe.de/blacklist file (modprobe.de folder does not exist)
sorry, thats a typo. The folder should be named /etc/modprobe.d/
Step 5: when I make install in[..]
I also forgot to mention that you should get the kernel-sources also:
yum install kernel-devel (step 1)
I will fix that in the wiki.
Hope that helps!
Regards,
Hans
After figuring out how it works, I tried to remeber all I have done and put that in the wiki.
Well, it seems like I forgot somethings, but thanks to you I already added the steps to the wiki.
Of course we need some kind of compiliers - this is what I forgot all about.
I also got the whole kernel (kernel-devel) which is of course a bit overdone, but it worked for me.
Especially the junghannsNet 4Bri card forced CentOs to always load hfc4s8s_l1 module at boot time (and hisax, as they dep). While I didn't noticed that for a couple of hours I got always strange results form the misdnportinfo tool. Sometimes it reported 2 ports, then only one (but already in use) and I didn't managed to get at least a single port to work with ptp.
When I saw finally the hisax driver loaded I tried to uninstall capi and isdn but that didn't work. The only way seems to be to add the stuff to the blacklist (at least that worked for me).
Hope that helps,
Regards,
Hans
I have a problem with step 10.
10. add the trunk to freepbx, e.g. mISDN/g:GROUP/$OUTNUM$
(GROUP means the section you set at misdn.conf regarding to your ISDN line configuration)
I can't find anywhere misdn.conf. I followed all the installation, everything was OK, but can't find misdn.conf on Config Edit.
Any help please?
Thanks in advance.
Andrew,
can we get the kernel-headers/kernel-devel w/o enabling kernel in repos? I didn't manage to get them so I omment out lines with exclude=kernel*. If there is another way, please just correct this step in the wiki. It might be easier for people to follow this guide if we don't mention steps which we don't need.
If it's only needed for the non rpm-based install, we should just add a step "comment lines with e..".
As soon as the rpm (this must be pretty new?) is available as stable we should also remove steps to compile this by hand.
Thanks all for your help,
Rgds,
Hans
People:
You don't need kernel-headers/kernel-devel anymore with version 1.4.0.1 of Trixbox. I updated the wiki since neither the old instructions were "AS IT" actually working neither were updated with the release of the RPM packages of mISDN by Trixbox.
After ton's of test's I came on conclusion (also mentioned in mISDN wiki) that to get mISDN working with Asterisk 1.4 you must compile asterisk with mISDN enabled which wasn't the case.
The RPM version provided by Trixbox don't have the chan_misdn.so module included also, so I'll leave it for them to for a fix. Tell me if I can help with something.
ACSS-001: Your problem here:
http://www.trixbox.org/forums/trixbox-forums/help/new-trixbox-2-4...
it's the same as I explained, you don't have chan_misdn.so and either is not being loaded into asterisk. Follow the setps 4 and fordward in order to get it working but get attention to the instructions regarding to compiling asterisk over rpmed version of asterisk inside Trixbox (in your case if you have TB1.4 you should download 1.4.16 sources not 1.4.17). Or just sit and wait for a fix.
Hi, all.
Just did a clean install, foolowed the instructions on the Wiki, everything went OK (just a minor error on step 5 - needed the yum -y install kernel-headers kernel-devel cause there was an
make: *** /lib/modules/2.6.18-53.1.4.el5/build: No such file or directory. Stop
make: *** [all] Error 2
and step 9 (needs Reboot not "amportal restart"), everything looks OK and on
asterisk -r
misdn show stacks
shows
BEGIN STACK_LIST:
* Port 1 Type TE Prot. PMP L2Link DOWN L1Link:UP Blocked:0 Debug:0
but don't know what to do later for the ability to make and receive calls. I can't figure out how to make a trunk about it (suggestion - maybe the Wiki should include details about this also).
Any help would be appreciated.
Thank you very much.
Thanks ACSS-001,
I updated the wiki with the information regarding to "yum -y install kernel-headers kernel-devel". Regarding to setting mISDN in your box you need to add a custom Trunk where you only need to set at Outbound Caller ID (the MSN number you have, I think if you leave it empty your calls will go thru your first subscribed telco number in case you having more than one number associated with it). Create as many you'd like. Your mISDN configuration file (misdn.conf) with and a single or multiple trunks (mISDN) scenario will be your personal choices AS you would like "things" happen.
As example, in my dev machine I have, at Custom Dial String:
mISDN/g:isdn/$OUTNUM$
Where:
mISDN = The trunk that will follow
g:isdn = in my case this setting is from isdn grouped at /etc/asterisk/misdn.conf where it inherits:
[isdn] ports=1 context=from-pstn msns=*
$OUTNUM$ - The Outbound Caller ID
So, in conclusion setting trunks with mISDN will depend almost the configurations , isdn line characteristics and choices made when managing the calls behavior passing along your ISDN.
If you are using a single or multiple port use the configuration examples pasted in your first post:
http://www.trixbox.org/forums/trixbox-forums/help/new-trixbox-2-4...
And configure the Trunk as I am mentioning here.
Hi again stickypt,
It's working great but with your configuration and not with the one provided on /etc/asterisk/misdn.conf. As I saw the "default" /etc/asterisk/misdn.conf it wasn't got any [isdn] section, instead the only part that says anything about ports is:
[intern]
; define your ports, e.g. 1,2 (depends on mISDN-driver loading order)
ports=1,2
; context where to go to when incoming Call on one of the above ports
context=Intern
[internPP]
;
; adding the postfix 'ptp' to a port number is obsolete now, chan_misdn
; parses /etc/misdn-init.conf and sets the ptp mode to the corresponding
; configs. For backwards compatibility you can still set ptp here.
;
ports=3
[first_extern]
; again port defs
ports=4
; again a context for incoming calls
context=Extern1
; msns for te ports, listen on those numbers on the above ports, and
; indicate the incoming calls to asterisk
; here you can give a comma separated list or simply an '*' for
; any msn.
msns=*
; here an example with given msns
[second_extern]
ports=5
context=Extern2
callerid=15
msns=102,144,101,104
The thing is that it worked and is working very good (at the moment) with no problems for internal and external calls. A question that I have is how to put it on the Freepbx Panel as a "button".
I am about to setup a production machine and I will do the setup again in a couple of days, so if I have any other issue I will post it here.
Thanks alot for the help and if you need any help or any testing I remain at your disposal.
Hi all,
First, I would like to thank all the responsible for the wiki entry about mISDN and Trixbox 2.4. It has been very helpful to me.
I want also to thank Andrew for posting all the necessary RPMs.
However, to enable the use of the (free) Oslec and (not free) Octasic echo cancellers, I have developed the following procedure based on the one posted in the wiki:
1) To make sure the card is detected correctly:
lspci
2) Install gcc
yum -y install gcc-c++
3) Install kernel-devel (we do not need to install kernel-headers) since it is already installed as dependency of gcc.
yum -y install kernel-devel
4) Install flex and subversion
yum -y install flex subversion
5 Install mISDN (this procedure will install the latest mISDN and mISDNuser from www.misdn.org)
5.a) By itself:
cd /usr/src
wget http://www.beronet.com/downloads/install-misdn-mqueue.tar.gz
tar xzf install-misdn-mqueue.tar.gz
cd install-misdn-mqueue
make
make install
5.b) With Oslec:
cd /usr/src
wget http://www.beronet.com/downloads/install-misdn-mqueue.tar.gz
tar xzf install-misdn-mqueue.tar.gz
wget http://peter.schlaile.de/mISDN/mISDN_oslec_patch_v1.1.5_rowe
sed -e s/mISDN-1_1_5/mISDN-1_1_7/ mISDN_oslec_patch_v1.1.5_rowe > mISDN_oslec_patch_v1.1.7_rowe
cd install-misdn-mqueue
patch -p0 ../mISDN_oslec_patch_v1.1.7_rowe
make clean
make
make install
5.c) With Octasic:
cd /usr/src
wget http://www.beronet.com/downloads/SoftEcho/install-misdn-mqueue-OC...
tar xzf install-misdn-mqueue-OCT.tar.gz
cd install-misdn-mqueue-OCT
make
- Select the desired architecture
make install
- Select the desired architecture
Type the license keys in a file
cat /tmp/mykeys.txt
OCTVQE8-BERONET-XXXXXX-1
OCTVQE8-BERONET-XXXXXX-2
...
Register the licences:
mISDN-1_1_7_OCT/Softecho/bin/register32 -b /tmp/mykeys.txt
6) Install Asterisk sources:
cd /usr/src
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.17...
tar xzf asterisk-1.4.17.tar.gz
cd asterisk-1.4.17
./configure
make menuselect
make
make install
7) Configure mISDN:
misdn-init scan
misdn-init config
Edit /etc/asterisk/misdn.conf
chkconfig --add misdn-init
misdn-init start
amportal restart
8 ) Check if misdn is working:
misdnportinfo
asterisk -r
misdn show stacks
Hope it helps someone.
Regards,
Javier
I have tried to install mISDN with OSLEC but I can't get 'patch -p0 ../mISDN_oslec_patch_v1.1.7_rowe' working. When I start it it seems like nothing is happening. It stays like that for long time and only Ctrl+C stops it. mISDN install without OSLEC is ok but I have echo problem that I can't overcome. Any help or ideas are very appreciated.
Thanks
First of all, apologies for taking so long to answer. I forgot to subscribe to the thread.
Next, the latest version of mISDN is 1.1.7.2. The procedure I am going to describe will work with version up to 1.1.7.
This revised procedure takes account of this fact, corrects some mistakes I made in the old procedure and takes account of HTML issues when posting in the wiki. Once again, apologies for the inconvenience.
The new procedure is:
cd /usr/src
wget http://www.beronet.com/downloads/install-misdn-mqueue.tar.gz
tar xzf install-misdn-mqueue.tar.gz
wget http://peter.schlaile.de/mISDN/mISDN_oslec_patch_v1.1.5_rowe
sed -e s/mISDN-1_1_5/mISDN-1_1_7/g mISDN_oslec_patch_v1.1.5_rowe > mISDN_oslec_patch_v1.1.7_rowe
cd install-misdn-mqueue
Using a text editor such as nano, open the file Makefile and at the beginning of the file change MISDN_VERSION and MISDNUSER_VERSION to 1_1_7
Now continue
make mISDN-1_1_7.tar.gz
patch -p0 <../mISDN_oslec_patch_v1.1.7_rowe
make
make install
Please report any problems you have.
Hope it helps,
Javier
Everything went ok until I run mISDN start.
# mISDN scan
1 mISDN compatible device(s) found:
>> hfcpci
# mISDN config
Writing /etc/mISDN.conf for 1 mISDN compatible device(s):
>> hfcpci
# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
>> /sbin/modprobe --ignore-install mISDN_core debug=0
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
>> /sbin/modprobe --ignore-install l3udss1 debug=0
>> /sbin/modprobe --ignore-install mISDN_capi
>> /sbin/modprobe --ignore-install hfcpci protocol=0x2 layermask=0xf
FATAL: Error inserting hfcpci (/lib/modules/2.6.18-53.1.4.el5/extra/hfcpci.ko): No such device
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
# misdnportinfo
Found no card. Please be sure to load card drivers.
mISDN_close: fid(3) isize(131072) inbuf(0x8282060) irp(0x8282060) iend(0x8282060)
Dimitris
Hi Dimitris,
Just to make sure there is no misunderstanding, the commands to detect and configure ISDN card under mISDN are:
# misdn-init scan
# misdn-init config
and then
# misdn-init start
not
# mISDN scan
# mISDN config
After you run those commands, please post the output of 'misdnportinfo' and the contents of the file '/etc/misdn-init.conf'
Javier
to Javier:
# misdn-init scan
[OK] found the following devices:
card=1,hfcpci
[ii] run "/usr/sbin/misdn-init config" to store this information to /etc/misdn-init.conf
# misdn-init config
[OK] /etc/misdn-init.conf created. It's now safe to run "/usr/sbin/misdn-init start"
[ii] make your port (1) available in asterisk by editing "/etc/asterisk/misdn.conf"
# misdn-init start
-----------------------------------------
Loading module(s) for your misdn-cards:
-----------------------------------------
/sbin/modprobe --ignore-install hfcpci protocol=0x2 layermask=0xf
FATAL: Error inserting hfcpci (/lib/modules/2.6.18-53.1.4.el5/extra/hfcpci.ko): No such device
/sbin/modprobe mISDN_dsp debug=0x0 options=0 poll=128 dtmfthreshold=100
[i] creating device node: /dev/mISDN
# misdnportinfo
Found no card. Please be sure to load card drivers.
mISDN_close: fid(3) isize(131072) inbuf(0x89d5060) irp(0x89d5060) iend(0x89d5060)
The file /etc/misdn-init.conf has the following lines uncommented:
card=1,hfcpci
te_ptmp=1
poll=128
dsp_poll=128
dsp_options=0
dtmfthreshold=100
debug=0
Dimitris
Hi Dimitris,
Apparently, misdn is detecting a card but it is not able to use it. A little wierd. To make sure it has nothing to do with OSLEC,
- Did yoy before run mISDN without OSLEC?
- If so, did MISDN detect and used the card correctly?
If the answer to both questions is yes, then I do not say what to say. If however the answer to the last question is no, perhaps mISDN is detecting the wrong card:
- What ISDN card are you installing?
- Are there any other PCi cards in the system?
- Can you post the output of "lspci"?
Sincerely,
Javier
hi Javier
I have found that that problem was at motherboard bios settings.
I had loaded "fail safe defaults".
I loaded "optimized defaults" and now compiles and starts ok:
#misdn-init start
-----------------------------------------
Loading module(s) for your misdn-cards:
-----------------------------------------
/sbin/modprobe --ignore-install hfcpci protocol=0x2 layermask=0xf
/sbin/modprobe mISDN_dsp debug=0x0 options=0 poll=128 dtmfthreshold=100
# misdnportinfo
Port 1: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2
--------
mISDN_close: fid(3) isize(131072) inbuf(0x9180060) irp(0x9180060) iend(0x9180060)
The only problem I have now is that asterisk does not load misdn although I have edited /etc/asterisk/misdn.conf and the file chan_misdn.so exist at :
/usr/lib/asterisk/modules/chan_misdn.so
trixbox1*CLI> misdn show stacks
No such command 'misdn show' (type 'help' for help)
Dimitris
Hi Dimitris,
Do not worry. We are getting there. Repeat Part 6 of the installation procedure, that is, compile Asterisk sources. The only change is that, at the end, instead of doing
# make install
do
# cp /usr/src/asterisk-1.4.17/channels/chan_misdn.so /usr/lib/asterisk/modules/chan_misdn.so
Then do
# amportal restart
Hope it helps,
Javier
Hi Dimitris,
Like I said, you have to complete the installation procedure I outlined in a previous message. Here it is again:
6) Install Asterisk sources:
# cd /usr/src
# wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.17...
# tar xzf asterisk-1.4.17.tar.gz
# cd asterisk-1.4.17
# ./configure
# make menuselect
Here go to 'Channel Drivers' and make sure 'chan_misdn' is selected. Exit
# make
# cp /usr/src/asterisk-1.4.17/channels/chan_misdn.so /usr/lib/asterisk/modules/chan_misdn.so
7) Configure mISDN:
misdn-init scan
misdn-init config
Edit /etc/asterisk/misdn.conf
chkconfig --add misdn-init
misdn-init start
amportal restart
8 ) Check if misdn is working:
misdnportinfo
asterisk -r
misdn show stacks
Do
# cat /proc/oslec/info
during a call.
Yo may want to take a look at http://www.rowetel.com/ucasterisk/oslec.html, especifically the 'Run Time Information' part.
If nothing else works, you may want to try the Octasic echo canceller. It is not free ($10/concurrent channel) but it is very good.
Hope it helps.
Javier
Hi Javier
I reinstalled trixbox 2.4.2 and immediately started the following procedure:
# yum -y install gcc-c++
# yum -y install kernel-devel
# yum -y install flex subversion
# cd /usr/src
# wget http://www.beronet.com/downloads/install-misdn-mqueue.tar.gz
# tar xzf install-misdn-mqueue.tar.gz
# wget http://peter.schlaile.de/mISDN/mISDN_oslec_patch_v1.1.5_rowe
# sed -e s/mISDN-1_1_5/mISDN-1_1_7/g mISDN_oslec_patch_v1.1.5_rowe > mISDN_oslec_patch_v1.1.7_rowe
# cd install-misdn-mqueue
Using a text editor such as nano, opened the file Makefile and at the beginning of the file changed MISDN_VERSION and MISDNUSER_VERSION to 1_1_7
# make mISDN-1_1_7.tar.gz
# patch -p0 <../mISDN_oslec_patch_v1.1.7_rowe
# make
# make install
# cd /usr/src
# wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.17...
# tar xzf asterisk-1.4.17.tar.gz
# cd asterisk-1.4.17
# ./configure
# make menuselect
Here go to 'Channel Drivers' and make sure 'chan_misdn' is selected. Exit
# make
# cp /usr/src/asterisk-1.4.17/channels/chan_misdn.so /usr/lib/asterisk/modules/chan_misdn.so
# misdn-init scan
# misdn-init config
Edit /etc/asterisk/misdn.conf and then
# misdn-init start
check if it works
# misdnportinfo
add it to your system boot:
# chkconfig --add misdn-init
# amportal restart
# asterisk -r
# misdn show stacks
I see something like this:
BEGIN STACK_LIST:
* Port 1 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:0
but during a call :
# cat /proc/oslec/info
no echo canceller being monitored - make a new call
Dimitris
Hello i have problem on misdn
I follow the wiki instructions step by step but no luck.
#misdnportinfo
Found no card. Please be sure to load card drivers.
mISDN_close: fid(3) isize(131072) inbuf(0x82e6060) irp(0x82e6060) iend(0x82e6060)
The lspci finds the card bat the
trixbox2*CLI> misdn show stacks
No such command 'misdn show' (type 'help' for help)
Sorry for my bad english
Please help

Member Since:
2008-01-06