# \[SOLVED\] ISDN BRI TE problem

**URL:** <https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263>\
**Category:** Asterisk Support\
**Created:** [August 20, 2007, 5:26am UTC](https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263 "2007-08-20T05:26:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![abroz](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@abroz](https://community.asterisk.org/u/abroz)\
**Post date:** [August 20, 2007, 5:26am UTC](https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263/1 "2007-08-20T05:26:05Z")

</div>

Hi!

I’m having problem with Asterisk and ISDN.

I installed mISDN 1.2 (from cvs) and it installed OK.  
When I do mISDN scan, I get following:  
[color=blue]\> mISDN scan  
1 mISDN compatible device(s) found:

> > hfcpci[/color]

My mISDN.conf (/etc/mISDN.conf) is following:  
[color=blue]  
hfcmulti  
mISDN\_dsp  
mISDN  
  
1  
  
[/color]

I have also created misdn-init.conf (just in case - also in /etc) and it reads:  
[color=blue]#

# Configuration file for your misdn hardware

# 

card=1,hfcpci  
te\_ptmp=1  
poll=128  
dsp\_poll=128  
dsp\_options=0  
dtmfthreshold=100  
debug=5  
timer=0[/color]

When I start mISDN I get following:  
[color=blue]\> 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  
> > /sbin/modprobe --ignore-install mISDN\_dsp debug=0 options=0[/color]

Also, mISDN.conf (in /etc/asterisk/) is following:  
[color=blue][general]  
misdn\_init=/etc/misdn-init.conf  
debug=2  
bridging=yes  
stop\_tone\_after\_first\_digit=yes  
append\_digits2exten=yes  
dynamic\_crypt=no

[default]  
context=isdn-default  
language=en  
senddtmf=yes  
rxgain=0  
txgain=0  
te\_choose\_channel=1  
dialplan=0  
localdialplan=0  
;cpndialplan=0  
msns=\*[/color]

I start (for testing) asterisk with following:  
asterisk -vvvvvd

And in log I get this (in regard to mISDN):  
[color=blue][Aug 19 23:51:07] VERBOSE[4350] logger.c: chan\_agent =\> (Agent Proxy Channel)  
mISDN\_close: fid(18) isize(131072) inbuf(0x2aaaab030010) irp(0x2aaaab030010) iend(0x2aaaab030010)  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Parsing ‘/etc/asterisk/misdn.conf’: [Aug 19 23:51:07] DEBUG[4350] config.c: Parsing /etc/asterisk/misdn.conf  
P[0] No te ports initialized  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: Found  
[Aug 19 23:51:07] DEBUG[4350] channel.c: Registered handler for ‘mISDN’ (Channel driver for mISDN Support (Bri/Pri))  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Registered channel type ‘mISDN’ (Channel driver for mISDN Support (Bri/Pri))  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Registered application ‘misdn\_set\_opt’  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Registered application ‘misdn\_facility’  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Registered application ‘misdn\_check\_l2l1’  
P[0] – mISDN Channel Driver Registered –  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: chan\_misdn =\> (Channel driver for mISDN Support (BRI/PRI))  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Parsing ‘/etc/asterisk/cdr\_manager.conf’: [Aug 19 23:51:07] DEBUG[4350] config.c: Parsing /etc/asterisk/cdr\_manager.conf[/color]

Any idea why I always get following:  
[color=blue]\*CLI\> mISDN show channels  
Chan List: (nil)[/color]

or what is wrong - I can’t get any incoming call, it even doesn’t register in debug that there is a call incoming…

Please, please help…

Reagrds,  
Aj

---

<div class="post-metadata">

**Author:** ![mbruni](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mbruni](https://community.asterisk.org/u/mbruni)\
**Post date:** [August 20, 2007, 8:07am UTC](https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263/2 "2007-08-20T08:07:04Z")

</div>

You missed the “ports” definition, check how I defined my hfc card in /etc/asterisk/misdn.conf:

[hfc]  
ports=1  
msns=\*  
context=hfc\_test

Hope it helps.

Marco Bruni.

---

<div class="post-metadata">

**Author:** ![LNX](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@LNX](https://community.asterisk.org/u/LNX)\
**Post date:** [August 20, 2007, 8:40pm UTC](https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263/3 "2007-08-20T20:40:39Z")

</div>

care to tell me how you installed that?

even an lsmod modprobe says command not found let alone trying to install stuff

---

<div class="post-metadata">

**Author:** ![abroz](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@abroz](https://community.asterisk.org/u/abroz)\
**Post date:** [August 20, 2007, 10:39pm UTC](https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263/4 "2007-08-20T22:39:50Z")

</div>

Marco,

Thanks, I just wander how I missed this for such a long time…  
The port of course show up, but now I have Asterisk crash everytime ISDN line rings with something like this:

[color=blue]Mon Aug 20 22:44:49 2007: P[0] – mISDN Channel Driver Registered –  
Mon Aug 20 22:44:58 2007: P[1] --\> Didn’t find BC so temporarly creating dummy BC (l3id:1200) on this port.  
Mon Aug 20 22:44:58 2007: P[1] --\> TRANSPARENT Mode  
Mon Aug 20 22:44:58 2007: P[1] --\> found chan: 1  
Mon Aug 20 22:44:58 2007: P[1] I IND :ALERTING oad: dad: pid:0 state:none  
Mon Aug 20 22:44:58 2007: P[1] --\> channel:1 mode:TE cause:0 ocause:0 rad: cad:  
Mon Aug 20 22:44:58 2007: P[1] --\> info\_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0  
Mon Aug 20 22:44:58 2007: P[1] --\> caps:Speech pi:0 keypad: sending\_complete:0  
Mon Aug 20 22:44:58 2007: P[1] Chan not existing at the moment bc-\>l3id:1200 bc:0x41654410 event:ALERTING port:1 channel:1  
Mon Aug 20 22:44:58 2007: P[0] handle\_bchan: BC not found for prim:20181 with addr:52010101 dinfo:0  
Mon Aug 20 22:44:58 2007: P[0] Unhandled Message: prim 20181 len 0 from addr 52010101, dinfo 0 on this port.  
Mon Aug 20 22:44:58 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:44:58 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:44:58 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:44:58 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:44:58 2007: P[1] --\> Didn’t find BC so temporarly creating dummy BC (l3id:1408) on this port.  
Mon Aug 20 22:44:58 2007: P[1] --\> TRANSPARENT Mode  
Mon Aug 20 22:45:03 2007: P[1] $$$ Set StackIND Err: -1 Success  
Mon Aug 20 22:45:03 2007: P[1] I IND :BCHAN\_ERROR oad: dad: pid:0 state:none  
Mon Aug 20 22:45:03 2007: P[1] --\> channel:0 mode:TE cause:0 ocause:0 rad: cad:  
Mon Aug 20 22:45:03 2007: P[1] --\> info\_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0  
Mon Aug 20 22:45:03 2007: P[1] --\> caps:Speech pi:0 keypad: sending\_complete:0  
Mon Aug 20 22:45:03 2007: P[1] Chan not existing at the moment bc-\>l3id:1408 bc:0x41654410 event:BCHAN\_ERROR port:1 channel:0  
Mon Aug 20 22:45:03 2007: P[1] --\> found chan: 2  
Mon Aug 20 22:45:03 2007: P[1] I IND :ALERTING oad: dad: pid:0 state:none  
Mon Aug 20 22:45:03 2007: P[1] --\> channel:2 mode:TE cause:0 ocause:0 rad: cad:  
Mon Aug 20 22:45:03 2007: P[1] --\> info\_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0  
Mon Aug 20 22:45:03 2007: P[1] --\> caps:Speech pi:0 keypad: sending\_complete:0  
Mon Aug 20 22:45:03 2007: P[1] Chan not existing at the moment bc-\>l3id:1408 bc:0x41654410 event:ALERTING port:1 channel:2  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff  
Mon Aug 20 22:45:03 2007: P[1] --\> Didn’t find BC so temporarly creating dummy BC (l3id:ffffffff) on this port.  
Mon Aug 20 22:45:03 2007: P[1] set\_channel: bc-\>channel:0 channel:-1  
Mon Aug 20 22:45:03 2007: P[1] --\> TRANSPARENT Mode  
Mon Aug 20 22:45:07 2007: P[1] Destroying this port.  
Mon Aug 20 22:45:07 2007: P[0] Closing mISDN device[/color]

What is BC? How to create it? Where to define it?

Thanks for your help so far!!!

Regards,

Aj

---

<div class="post-metadata">

**Author:** ![abroz](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@abroz](https://community.asterisk.org/u/abroz)\
**Post date:** [August 21, 2007, 8:50am UTC](https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263/5 "2007-08-21T08:50:33Z")

</div>

Strangly, this is SOLVED.

If anybody gets this error:

[color=blue]P[0] handle\_bchan: BC not found for prim:120282 with addr:52010101 dinfo:ffffffff [/color]

or KERNEL error

[color=blue]mISDN\_rdata: rport queue overflow[/color]

The solution is rather simple - RTFM for mISDN.

In /etc/asterisk/misdn.conf you should add following:

[color=blue]jitterbuffer=4000  
jitterbuffer\_upper\_threshold=0[/color]

And Asterisk is now up and running…

Regards,  
Aj

---

<div class="post-metadata">

**Author:** ![LNX](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@LNX](https://community.asterisk.org/u/LNX)\
**Post date:** [August 21, 2007, 10:14am UTC](https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263/6 "2007-08-21T10:14:22Z")

</div>

[quote=“abroz”]Hi!

I’m having problem with Asterisk and ISDN.

I installed mISDN 1.2 (from cvs) and it installed OK.  
When I do mISDN scan, I get following:  
[color=blue]\> mISDN scan  
1 mISDN compatible device(s) found:

> > hfcpci[/color]

My mISDN.conf (/etc/mISDN.conf) is following:  
[color=blue]  
hfcmulti  
mISDN\_dsp  
mISDN  
  
1  
  
[/color]

I have also created misdn-init.conf (just in case - also in /etc) and it reads:  
[color=blue]#

# Configuration file for your misdn hardware

# 

card=1,hfcpci  
te\_ptmp=1  
poll=128  
dsp\_poll=128  
dsp\_options=0  
dtmfthreshold=100  
debug=5  
timer=0[/color]

When I start mISDN I get following:  
[color=blue]\> 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  
> > /sbin/modprobe --ignore-install mISDN\_dsp debug=0 options=0[/color]

Also, mISDN.conf (in /etc/asterisk/) is following:  
[color=blue][general]  
misdn\_init=/etc/misdn-init.conf  
debug=2  
bridging=yes  
stop\_tone\_after\_first\_digit=yes  
append\_digits2exten=yes  
dynamic\_crypt=no

[default]  
context=isdn-default  
language=en  
senddtmf=yes  
rxgain=0  
txgain=0  
te\_choose\_channel=1  
dialplan=0  
localdialplan=0  
;cpndialplan=0  
msns=\*[/color]

I start (for testing) asterisk with following:  
asterisk -vvvvvd

And in log I get this (in regard to mISDN):  
[color=blue][Aug 19 23:51:07] VERBOSE[4350] logger.c: chan\_agent =\> (Agent Proxy Channel)  
mISDN\_close: fid(18) isize(131072) inbuf(0x2aaaab030010) irp(0x2aaaab030010) iend(0x2aaaab030010)  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Parsing ‘/etc/asterisk/misdn.conf’: [Aug 19 23:51:07] DEBUG[4350] config.c: Parsing /etc/asterisk/misdn.conf  
P[0] No te ports initialized  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: Found  
[Aug 19 23:51:07] DEBUG[4350] channel.c: Registered handler for ‘mISDN’ (Channel driver for mISDN Support (Bri/Pri))  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Registered channel type ‘mISDN’ (Channel driver for mISDN Support (Bri/Pri))  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Registered application ‘misdn\_set\_opt’  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Registered application ‘misdn\_facility’  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Registered application ‘misdn\_check\_l2l1’  
P[0] – mISDN Channel Driver Registered –  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: chan\_misdn =\> (Channel driver for mISDN Support (BRI/PRI))  
[Aug 19 23:51:07] VERBOSE[4350] logger.c: == Parsing ‘/etc/asterisk/cdr\_manager.conf’: [Aug 19 23:51:07] DEBUG[4350] config.c: Parsing /etc/asterisk/cdr\_manager.conf[/color]

Any idea why I always get following:  
[color=blue]\*CLI\> mISDN show channels  
Chan List: (nil)[/color]

or what is wrong - I can’t get any incoming call, it even doesn’t register in debug that there is a call incoming…

Please, please help…

Reagrds,  
Aj[/quote]

how did you get it to see your card? can you explain in detail plz ?

---

<div class="post-metadata">

**Author:** ![abroz](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@abroz](https://community.asterisk.org/u/abroz)\
**Post date:** [August 21, 2007, 4:08pm UTC](https://community.asterisk.org/t/solved-isdn-bri-te-problem/16263/7 "2007-08-21T16:08:35Z")

</div>

LNX,

changed dr to: [color=blue]cd /usr/src[/color]

Then I used cvs to get newest mISDN - version 1.1.5 didn’t compile.:

[color=blue]cvs [-d:pserver:anonymous:readonly@cvs.isdn4linux.de](mailto:-d:pserver:anonymous:readonly@cvs.isdn4linux.de):/i4ldev co mISDN mISDNuser[/color]

After that I “[color=blue]cd mISDN[/color]”

And then I had to type this

1. (can’t remember if it is possible or not, but you can try) [color=blue]./configure[/color]
2. [color=blue]make[/color]
3. [color=blue]make install[/color]  
then cd /usr/src/mISDNuser  
and again:
4. [color=blue]./configure (if it can run, if not ignore)[/color]2) [color=blue]make[/color]
5. [color=blue]make install[/color]

When it finished installing new mISDN, I typed following:

[color=blue]mISDN scan  
mISDN config  
mISDN start[/color]

It is reccomended to reboot (just tu be sure that it loads it automaticly)).

This was part I of my “fun time” with ISDN BRI card.

Regards,

Aj

And you have to repeat this
