Tales from the trenches.... ZapHFC, mISDN and vISDN

rasker
Posts: 529
Member Since:
2006-06-02

*abridged* :)

I have been attempting to get a Trixbox up and running with a Beronet 4 port ISDN card. (explaining my recent absence from the board). The card is a 'standard' HFC 4s card (looks pretty much like the design on the HFC website). It has all the bells and whistles and is cheaper than others on the market? (more cost effective? Whatever)

I am posting this with my recent experiences and as a general discussion of HFC cards. There are various other posts discussing this on the forum.

Before anyone berates me for being foolish, I did not use the ZAPHFC drivers at all. I had some reasons for doing this mostly to do with gaining the impression that the drivers are a 'hack' against the zaptel driver and may or may not survive a future update of the zap drivers. I was looking for an elegant solution and my impression was that Bristuff is not elegant. However I do understand that they are a proven solution in use in many installations (and they work!).

Ok. So onto the chan_Misdn drivers. I installed these using the script from the Beronet site. Good script, very simple, does everything for you. However, after spending some hours/days/nights trying to figure them out and working with the Beronet support guys the following comes to light:

chan_mISDN has some minimum requirements which are not clearly documented:

1) You need to use the latest stable kernel (minimum=2.6.14, current=2.6.16.20). I did this on my Trixbox and the drivers worked much better (or even, worked!). This is a kludge and counter to the Trixbox spirit. You move out of the normal update procedure and need to take care about future updates. The Centos/Redhat kernel is 2.6.9 based with patches back ported from later stable kernels.

2) The second one is you need to have a kernel with the profiling option turned off at kernel compile time. If profiling is on on your kernel then your trixbox suffers from high cpu load issues and machine lock ups. This situation is at best sub-optimal. The Centos distribution has a pre-compiled kernel with profiling turned on and probably will continue to have in the future.

The short answer is mISDN is not compatible with the standard Trixbox distro. Probably can never be due to the profiling issue.
Although the Centos kernel is based on an old stable kernel it is regularly updated by Redhat. I would guess if you used a standard Centos kernel with profiling switched off chan_mISDN will probably work.

Ok, onto vISDN. I tried these drivers out of desperation (constantly seeking beauty and elegance in the world....actually no, I just felt like it at the time). Ok they don't 'look' good at the moment but architecturally they are elegant. What speaks to this elegance is that they work with kernels all the way back to 2.6.8 (with profiling switched on!). Apparently, not tested this myself.

I did have them working on a trixbox install a couple of days ago though. The main issue was the neccessity to patch asterisk source and re-compile to get the chan_visdn.so to work properly. If you don't asterisk doesn't see the driver and your asterisk log gets full of ISDN errors. Once patched all works well. The biggest problem with this was that an asterisk re-compile breaks various bits in the Trixbox/Freepbx..... :(

I am not experienced enough to fix them. I did read about an asterisk compile option that may help here. Unfortunately I had blown away the Trixbox install and reverted to AAH 2.8 due to time constraints.

For the adventurous try the following:

1) Build your Trixbox. Install vISDN. Get the same version of the asterisk sources as on the latest Trixbox update (from the SVN). Put them in /USR/SRC/ASTERISK

2) cd /usr/src/asterisk

3) make clean

4) make bininstall

I believe this will just replace the binaries without touching any of the configs. So Trixbox should work as it did but with the additional patches installed. Maybe Andrew could do us a test version of the Trixbox Asterisk RPM's with the patches? (oh, go on matey)

VISDN installs a driver and an asterisk module (chan_visdn.so).

Note regarding the need for an Asterisk patch. The developer believes this is an Asterisk issue in the way that it handles ISDN (or Euro ISDN) and doesn't need to be fixed by vISDN but by Asterisk.

Some Notes for anyone having a go:

1) Lots of info on the visdn hackers mailing list. Go to http://www.mail-archive.com/ and type visdn in the box and click on find list. Much easier to read than the archives. It's a bit random but ALL the info u need is there.

2) there is an AAH 2.8 howto on the mailing list that has most of the steps you need to install the drivers and get things right. some modification needed for Trixbox.

3) If you are having problems and you need to, google for a udev 0.51 rpm or higher and install. It is a known working version (Centos has version 0.39 - this should still work but you need to config the udev permission.d files a bit differently. Upgrading udev should not break anything on your Trixbox (quite the opposite - things might work better!).

4) If the drivers are not loading (you can't see visdn interfaces if you run 'ifconfig') try and re-locate the pci configuration file. Success in installing the drivers is demonstrated by seeing visdn interfaces when the ifconfig is run.

5) the file - /etc/init.d/visdn-init doesn't work for centos properly. It was written for SUSE. If you comment out any commands that have rc.xxxxxx commands the file works to start and stop visdn but not the others - e.g. status, reload etc. This would be very useful to fix (er.... my shell scripting skills are rubbish - volunteers?). We can then use chkconfig to start the visdn drivers at runlevel 1/2 so they are available to asterisk which starts at runlevel 3. The work around here is to do a chkconfig --del asterisk (i.e. stop asterisk auto running early in the startup) and then edit /etc/init.d/rc.local and add /usr/local/sbin/visdn_configurator before the asterisk line already in the file. Asterisk starts last after all drivers have loaded. Otherwise you have to do a 'amportal restart' when you can get a login.

Unfortunately I don't have a machine or ISDN card (or ISDN line for that matter) any more. The window for my opportunity has passed :(

Anyone want to take the batton from here? I would really like to see visdn succeed. Like I said its an elegant solution.

Rehan



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Crumbs... not so abridged after all. :lol:



nprzybilla
Posts: 41
Member Since:
2006-06-05
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Hi,

they have released a new version of mISDN which works also with the Debian 2.6.8 Kernel and the Centos kernel 2.6.9

I could not try it as I have no trixbox now, but I will test it in the next days.

http://www.beronet.com/downloads/install-misdn-mqueue.tar.gz

Best regards

Niels



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

OMG someone actually read through that. Well done!

I would love to know where you got the info. The issue I have with Beronet is the lack of visibility. No forum, little documentation by way of changelog.

When I spent two days on the phone with them the main issue was that the Centos kernel has profiling switched on. This would cause lockups when any ISDN was being used. To fix this would require a re-compile of the kernel with profiling switched off. This is not documented anywhere. Have they got around this issue?

However I have vISDN working properly now (this was also a challenging task!). I understand that the VISDN developer and Beronet are also doing some work together. I get the feeling that vISDN is more focused on getting the vGSM driver working properly at the moment and vISDN is on the back burner.

I wonder if mISDN rolls vISDN into it at some point in the future?? vISDN is a much cleaner implementation (or seems to be) and enables some interesting features (e.g. using ethereal to capture ISDN traffic)

Please let me know how you get on.

Regards
Rehan



nprzybilla
Posts: 41
Member Since:
2006-06-05
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Hi,

I have it from the developer. he is active in a german forum for VOIP.

Best regards

Niels



W1zz
Posts: 562
Member Since:
2006-05-31
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Also... from previous rumours and Mark's (Roadkill) walk through the Junghanns code it is not expected that newer versions of BRIstuff will work with the Beronet cards.

Alan

--

Alan

install-ZAPHFC

Look here for more help.
Current version is 1.4.0 (25 January 2008)



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

I have done a howto to install the vISDN drivers for the Trixbox if you are interested. I'm sure it's not perfect but I would be interested in knowing your results if you can get a chance to try it.
They are not perfect yet but they do seem to work.

http://www.trixbox.org/modules/newbb/viewtopic.php?topic_id=1367&...

Cheers
Rehan



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

BTW one of the good things about the VISDN driver is that they don't care who makes the card. They just want to see an HFC chipset. They should work with any card and as such I guess Danielle Orlandi (the creator) will do his best to get any problems fixed if reported.

Of course this is not the case with Bristuff or mISDN. Junghaans and Beronet will only support thier own cards. Not very 'open' open source software.

Should the vISDN drivers get to the point of being stable across many types of configuration then there is the very real possibility of 4/8 port cards becoming commodity items. Really a great thing for asterisk, maybe not so good for these companies. Personally I just want something that works.

Rehan



W1zz
Posts: 562
Member Since:
2006-05-31
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

I'd read through the howto... I thought you had the makings of an install script there :-D

Though I'm not likely to get to try it as I don't have enough hardware here to do so....

Alan

--

Alan

install-ZAPHFC

Look here for more help.
Current version is 1.4.0 (25 January 2008)



W1zz
Posts: 562
Member Since:
2006-05-31
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN
Quote:
they don't care who makes the card

From what I can see Junhanns does not care either, as long as its only a single port card (zaphfc).

Quote:
Junghaans and Beronet will only support thier own cards.

Well they used to inter-operate with each others drivers... but then that's a commercial descision.

Quote:
Should the vISDN drivers get to the point of being stable

Well it would be nice to see a stable choice of mISDN and vISDN and BRIstuff and whatever Digium does for their new card.

I'd like to see what Digium do because it will almost certainly be zap based, and may obviate the need for building drivers for generic single port HFC cards. But again that could just be a commercial descision on their part. You never know they may even be using drivers that were originally developed elsewhere!

Alan

--

Alan

install-ZAPHFC

Look here for more help.
Current version is 1.4.0 (25 January 2008)



nprzybilla
Posts: 41
Member Since:
2006-06-05
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Hi,

I now tested mISDN with trixbox and it is running good with the current version.

I have a single Billion HFC Card

Best regards

Niels



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Fantastic man that rocks! I'll try and test it this week as well. What is working? Although I did not test a whole lot I was having high cpu lock ups when making or receiving calls with an IAX phone --> ISDN PSTN.

Rehan



RoadKill
Posts: 233
Member Since:
2006-05-31
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Hi Niels

Can you post if you did any thing special, when you install it.
(Step by Step) please ;-)

Well I belive that we as one of the largest forums shout ask the 3 partys (Bristuff/mISDN/vISDN) for a meeting, as in the end, it is not good to have 3 seperate drivers for the same ISDN cards.

As I see it Bristuff is the least atractive of them all because of the high level of patching needed, then vISDN not because of there design or implimentation, but simply because of Digium, as they will make an efort to include the auto generation of the module when you build asterisk.

so in the end it will be a stand off betwen mISDN and vISDN
where it will be the clean design or boroNET+Digium support.
in the end I hope that we can get all the developers to work together on the same module.

Just remember that we as (probaly) the larges comunity of asterisk users, have a lot of power, and if your card is auto installed and configured, you have a huge advantage over the compatition.

well that was way I chose Junghanns card in the first place, because of W1zz install-ZAPHFC script.
that ment that I did not have to wory to mutch abut HW install in my system.

Some details that prove that we are a foce to be recond with 8-)
Version - Downloads
AAH 2.7 - 66955
AAH 2.8 - 50335
TB 1.0 - 30641
TB 1.1 - 17838
even if you only take the last number of download it is still an impresive number

--

Mark Petersen

ISDN: Billion HFC, OctoBRI HFC-8
SIP: Snom 3X0, Snom820, Cisco 7941, Linksys PAP2, PerfecTone IP-300
DECT: KWS 600v3, KWS 300
Asterisk: 1.2, 1.4, 1.6.0, 1.6.1 (150 servers)



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Funny that, that's why I bought a Beronet card :) I did a bit of research and it seemed to be the best option at the time. Little did I know..... I assumed that as with every other product I've used in 15 years of being in technology there would be at least a forum and some detailed intrusctions for the most common installations (like connecting to an ISDN line and making and receiving calls. NT mode and point to multipoint ISDN is a very narrow market to be focussed on). Also and most glaringly some documentation stating minimum requirements (which could be looked at before actually buying the card and discovering limitations during the install).

The issues between Junghaans and Beronet are down right irritating and very unhelpful for users.

I couldn't agree with you more Mark. Here here.

Rehan



Alan
Posts: 38
Member Since:
2006-06-05
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

I read in a forum that the new Digium BRI card will use mISDN when it first comes out also Asterisk 1.4 will have it build in.
--------------------------------------
Asterisk 1.4 is now taking shape. There is still a lot of work to be done, but not really by developers, but by you, the Asterisk user community. We need your help testing the beta releases that will soon be coming out on ftp.digium.com. While waiting, download the svn trunk by following instructions from www.asterisk.org and test that version. Among the new features are:

* A followme application
* A lot of new dialplan applications and functions
* AEL2 - the improved dialplan language (no longer experimental)
* CDR Radius driver
* Realtime PostgreSQL driver
* Google Talk and Jabber integration
* mISDN - ISDN bri support
* New configuration engine - autoconf and menuselect
* Sound files for Spanish and French
* Improved SIP transfers
* IAX2 multithreading - big performance improvement
* Many bug fixes in all channels and in the core
* T38 passthrough support
* Improved RTCP support
* Improved video support in SIP
* Manager over HTTP for easier 3rd part application integration

...and much, much more. Look forward to this new release in a few weeks! At release, Asterisk 1.2 will move into security-fix-only state and 1.4 will be the recommended release for production use.



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Yeah 1.4 is looking HOT. I wonder how FreePBX is going to work with it? PostgresSQL - damn we'll have to run two database engines on the Trixbox. Surely not.

I still have not got any feedback on the issue of profiling. This debugging feature is switched on in the Centos kernel. The only way to switch it off is to re-compile the kernel and change the compile options to turn it off. It's what broke mISDN on the Trixbox 1.0 so I am sure it has not gone away as we have the same kernel.

Although I can be blase about things like this and re-compile the kernel with what not switched off and see what else breaks, it's not a very 'Trixbox' solution. Trixboxers should not have to do this.

R



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

W1zzz:

I would have tried an install script but my scripting skills (Woot for dos batch files!) are rubbish.

I am looking for some collaborators to get it fixed up for Trixbox. I have some ideas to get the existing scripts working in a Centos environment and with the asterisk setup in Trixbox. any1 want to help out here? Should be a fun project.

Mr Roadkill, may be able to do some bits (right dude??)?

Rehan



Alan
Posts: 38
Member Since:
2006-06-05
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Would be interesting if someone could try the below Digium b410p BRI card drivers on a HFC card......

The mISDN drivers are now on the Digium SVN the below is the readme.

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

Readme

In order to install the b410p drivers one simply needs to type:

`make b410p`

The mISDN drivers will be downloaded and installed automatically. Then
you will need to run

`/etc/init.d/misdn-init config`

and then configure the /etc/misdn-init.conf in accordance with your desired
port configuration. To enable hardware echo cancellation, make sure that the
line "dsp_hwechocan=1" is on in your /etc/misdn-init.conf.

From there on, look to asterisk to configuration.

---
Matthew Fredrickson



nprzybilla
Posts: 41
Member Since:
2006-06-05
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Hi,

just did the install the easy way.

Download it from

http://www.beronet.com/downloads/install-misdn-mqueue.tar.gz

unpack it,

then make and make install

reboot machine and it is working ;-)

I personally met both because I am in the great position that I am in Berlin and Beronet and Junghanns are iN Berlin ;-)

I would give mISDN a little favour because it is nearer to kernel and comes from or will replace i4l. So for me it seems to beome more standard.

Best regards

Niels



gspiliot
Posts: 7
Member Since:
2006-07-03
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

I have tried to install mISDN the easy way as described but I cannot make outgoing calls (incoming calls work ok though). I have tried almost all the different options in the misdn.conf file as it seems from the log file that the problem is in the msidn side as asterisk just calls dial(misdn/1/699....) and there is a CALL RELEASE in the misdn logs. I will post the logs at the i4l site to see if they can find something.

I will try to post my findings with the three ISDN driver/channel options for trixbox 1.1 in another post.

George.



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

This is the problem I had after my initial install of mISDN. Everything installs (great script). Incoming works ok. No outgoing (even though the asterisk Console shows the call being setup. The call just disconnects, no errors no indications). No way, no how. It was why I called Beronet support and we worked through a number of things. After this we then had the high cpu issues which meant that the server became un-usable. I'm not sure that it is an i4l issue, there is no evidence to support this but it is worth pursuing.

What fixed the issue was installing vISDN :)

vISDN then had the garbled sound issue when calling PSTN from IAX phone. A code change and re-compile of vISDN then fixed that.

Check my howto for the vISDN if you need it. Need some feedback ideally.

Good luck
Rehan



gspiliot
Posts: 7
Member Since:
2006-07-03
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

That's promising. Any chance you lay out the things we need to change to make misdn to work? What were the changes you had to make? I am preparing detailed instructions on how to recompile the CentOS kernel with PROFILING turned off and LONGHAUL disabled (for those mini-atx VIA fans) and I can offer the kernel ready made if I find the space.

The CentOS kernel changes are far less frequent than asterisks' so this solution (stock misdn + a recompiled kernel) is better till the day when the three visdn patches make it into the asterisk core.

I am also going to try to build updated RPMs for trixbox with the visdn patches included for those interested in installing visdn as an RPM (i.e. automatic installation).

George



rasker
Posts: 529
Member Since:
2006-06-02
Re: Tales from the trenches.... ZapHFC, mISDN and vISDN

Sorry, I never got it to work properly. Even with a new kernel (2.6.16.20) and all suggested changes, although the driver was stable and looked a lot healthier I was still unable to make outgoing calls. I was very dissappointed TBH.

You may want to talk to beronet support. During our troubleshooting session they installed a TRIXBOX so they may have some more info now they have had time to play around with it.

On thier own machine, after a kernel upgrade the support chap said he was able to make both outgoing and incoming calls.

Aside from this post Here the only write up I have of the mISDN is at the beginning of this post.

Even though it fixes problems, upgrading the kernel, recompiling asterisk sources etc It's not accessible to new users and I guess we'd be better off pushing for things along the 'official' channels. (Click here to go to the digium site to let them know that vISDN is useful and that it's not just me who is interested). As there are thousnads of TRIXBOXERS we can make our voice heard (politely of course) :-)

Let me know if I can help out with your changes.

Rehan



Thomasss
Posts: 6
Member Since:
2007-08-05
help needed to get mISDN working on asterisk 2.2

Hi all,
Little by little I'm getting closer to a working solution... But I need your help.

Maybe may work can be usefull to other so I written down all the steps I made. When I get it working it can become a nice step by step tutorial.

I've successfully installed mISDN but what I must do now.
Although the misdn-init scan and start show me lots of "unknow line at 59xx". Is that normal ?

Since I've installed mISDN I got a new screen at startup.
Kudzu (or something like that) detected new hardware and ask me to configure it ? should I do something ?

If it's ok, how should I check if Asterisk correctly see my card ?

I know that all this question can seem obvious to you but for a guy like me who playing with Linux for a week it's hard. Things are moving so quick that a few month's old guide is obsolete now.

have a nice day.

here is my actual step by step guide
http://www.becyber.be/Thomas/BN4S0.html



Comment viewing options

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