Koozali.org: home of the SME Server

Problems with SME + ISDN4Linux + Asterisk

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« on: July 12, 2004, 01:57:37 PM »
Hi all,

I'm running a 6.0 SME with Asterisk (thanks to the RPMs from duncan) installed on. With SIP everything works fine, but the ISDN issue drives me crazy. The Asterisk-box I'm about to build should be a PBX that lets users place calls via SIP provider, and place+recieve calls via ISDN. The SIP part works nice, as mentioned.

It seems that the installed ISDN card (passive, tried both, a AVM Fritz PCI and some PCI card from manufacturer Sitecom) isn't available to Asterisk.

I didn't any i4l config while PCI cards should work plug&play with i4l.

Is there any known issue with (passive?) ISDN cards on SME? I found some howto for passive cards for e-smith 4.1... but thought 6.x hasn't the same problem.

Maybe switching to CAPI4Linux helps? - But thought thats to much modification to SME: replacing i4l, recompiling kernel with capi, finally adding chan_capi to Asterisk...


Perhaps someone can help me, thanks in advance!

whte_rbt

RavenIV

Problems with SME + ISDN4Linux + Asterisk
« Reply #1 on: July 13, 2004, 01:26:45 AM »
there is an article in the german "linux magazine" which handles the thema "VoIP" really good.

take a look at www.linux-magazine.de to check if the article is available online.

PS. when you are successful with VoIP and Asterisk and so on would you please give me a email or please create a how-to.

PPS. i'm german, too.

cheers

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #2 on: July 13, 2004, 01:28:41 AM »
In the meanwhile I did (parts of) the "passive ISDN card issue" howto to make hisax fit my AVM Fritz! PCI.

But with no results.

:evil:

RavenIV

Problems with SME + ISDN4Linux + Asterisk
« Reply #3 on: July 13, 2004, 01:31:35 AM »

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #4 on: July 13, 2004, 01:34:31 AM »
Quote from: "RavenIV"

PS. when you are successful with VoIP and Asterisk and so on would you please give me a email or please create a how-to.


See http://forums.contribs.org/index.php?topic=20617.0
for a basic Asterisk howto and RPMs for SME.

Everything works fine, while talking about VoIP and SIP. Only ISDN is causing trouble, in my case. Some other guys seem to have a nice life with external ISDN cards... but I'm still trying.

whte_rbt

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #5 on: July 13, 2004, 01:37:41 AM »
OK, you discovered the thread already.

I posted my questions there, perhaps someone is listening now.

rbt.

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #6 on: July 13, 2004, 01:43:47 AM »
Thank you for the tip of the current Linux Magazin issue. Nice, they have a Asterisk workshop inside. And while its german, they included a ISDN-workaround, for sure. Hopefully they don't use a SuSE box with CAPI running...

Until the papershops open again, I'm considering a bit of sleep...

  ;-)

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #7 on: July 13, 2004, 02:08:39 AM »
For the ones who would like to help, here is my config:

modem.conf:

driver=i4l
type=autodetect
dialtype=tone
mode=immediate
group=1
msn=123456
device => /dev/isdn0   ;ttyI0 &
device => /dev/isdn1   ;ttyI1 also does not work

extensions.conf:

exten => _09.,1,Dial(Modem/g1/${EXTEN})
exten => _09.,2,Congestion
exten => _09.,102,Busy


Asterisk gives me this (with variations as I try different):

"...device 'isdn0'/'ttyI0' does not exist..."
486 Busy Here

duncan

Problems with SME + ISDN4Linux + Asterisk
« Reply #8 on: July 13, 2004, 05:18:19 AM »
Mine

modem.conf

[interfaces]
context=remote
driver=i4l
language=en
type=autodetect
stripmsd=1
dialtype=tone
mode=immediate

group=1
msn=210&L*
device => /dev/ttyI0
device => /dev/ttyI1
callerid=Workshop
;incomingmsn=*

extensions.conf

[isdn]
exten => _0.,1,Dial,Modem/g1:$BYEXTENSION|120|r        ;Dial out to network via ISDN


I dont use the ISDN card (NETJet) any more. Echo problems. I remember that it wasnt recognised properly during the boot sequence and I had to fix that up. I also had to patch and recompile hisax - but that was specific to the NETJet.

The AVM cards should work sweet.

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #9 on: July 13, 2004, 10:17:41 PM »
Thank you, duncan, I believe it was something with extensions: now I get it "Ringing" or "Trying".

But the issue isn't solved: It doesen't really call a number. It says "Ringing", but nothing happens on the phone I call. Even if I unplug the ISDN card from the ISDN, its the same.

Perhaps also in my case something is wrong with hisax/i4l?

I'll keep trying, as my Asterisk does...   :-?

whte_rbt

Multiple ISDN cards now.
« Reply #10 on: July 14, 2004, 03:36:19 PM »
WORKS!

But its not over: I just put in a second ISDN card (also AVM Fritz! PCI), becasue I need more channels. Now no card is working. I have to reconfig Hisax for this, the folks at ISDN4Linux say, like "modprobe -v hisax protocol=2,2 type=27,27". -- To make it last, I should type "options hisax type=27,27 protocol=2,2" into modules.conf.

But SME is overwriting this file, it tells me. Instead, I should go, modify /etc/e-smith/templates/modules.conf/10Hisax -- This one looks like that:

{
    @lines = grep { !/^\s*options\s*hisax/ } @lines;
    my $hisax_alias = "alias char-major-43 hisax";
    unless (exists $lines{$hisax_alias})
    {
        push @lines, $hisax_alias;
    }
    my $hisax = db_get_prop($confref, 'isdn', 'HisaxOptions') || "";
    my $type = db_get_prop($confref, 'isdn', 'Type') || "";
    my $protocol = db_get_prop($confref, 'isdn', 'Protocol') || "";
    if ($type)
    {
        $hisax .= " type=$type";
    }
    if ($protocol)
    {
        $hisax .= " protocol=$protocol";
    }
    if ($hisax)
    {
        push @lines, "options hisax $hisax";
    }
    "";
}


Help! - I've got no idea about customizing this piece of stuff.

whte_rbt

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #11 on: July 14, 2004, 03:42:36 PM »
GOT IT!

I was brave, studied the code a bit, and tried.

/sbin/e-smith/config isdn Type 27,27
/sbin/e-smith/config isdn Protocol 2,2

is required to change the values in the template.

Am I becoming a real SME professional now?  :lol:

rbt.

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #12 on: July 14, 2004, 03:54:19 PM »
sorry, its

/sbin/e-smith/config setprop isdn Type 27,27
/sbin/e-smith/config setprop isdn Protocol 2,2

of course.

djohen

Problems with SME + ISDN4Linux + Asterisk
« Reply #13 on: July 15, 2004, 01:13:08 PM »
I used this stuff to install my fritz pci isdn card
maybe it helps.

http://www.voip-info.org/tiki-index.php?page=Asterisk%20AVM%20Fritz%20CAPI%20Driver%20Install

whte_rbt

Problems with SME + ISDN4Linux + Asterisk
« Reply #14 on: July 15, 2004, 04:34:23 PM »
Thanks, but I've got it working now.

Using CAPI would be a nice thing, but SME comes with I4L, so you have to replace i4l utils with capi2util, adding a module or, as described in the VoIP-info howto, to recompile your kernel. Then, I have a SMP machine, recompiling the SMP kernel might cause trouble.

I simply don't wanted to change so much in SME, as it comes aleady with ISDN support.

And it works now, while don't having any problems with latency or echo, like some others say using I4L.

whte_rbt.