[SOLVED] ISDN BRI TE problem

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

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.

care to tell me how you installed that?

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

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

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

[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 ?

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:/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