× Questions about B100/200/400/800 ISDN BRI Cards

Dahdi errors BE200p

6 years 11 months ago #8252 by numenory
I am having problems getting my Be200p working in the uk on bt isdns, setup as follows:
Problem as follows:

[font=arial, sans-serif]The call gets picked up , i can just about make out the person at the other end,crackles barely hear the person, the call dies then, you only get a few seconds of call. [/font]

[font=arial, sans-serif]If i then try to make a call again, on my mobile, you get call failed. [/font]

[font=arial, sans-serif]pri spans still show up and active and no alarm shown on the dahdi channel. [/font]

[font=arial, sans-serif]shutting down asterisk and dahdi, then restarting them seems to reset. [/font]


[font=arial, sans-serif]Asterisk console log: [/font]

[font=arial, sans-serif]SIP/33-00000000 is ringing
-- SIP/33-00000001 is ringing
[/font]

[font=arial, sans-serif] -- SIP/33-00000000 answered DAHDI/i1/7952015843-1 [/font]
[font=arial, sans-serif][2012-08-02 12:58:32] ERROR[9417]: chan_dahdi.c:14135 dahdi_pri_error: PRI Span: 2 TEI=0 MDL-ERROR (J): N(R) error in state 7(Multi-frame established) [/font]
[font=arial, sans-serif] == Primary D-Channel on span 2 down [/font]
[font=arial, sans-serif][2012-08-02 12:58:32] WARNING[9417]: sig_pri.c:1126 pri_find_dchan: Span 2: D-channel is down! [/font]
[font=arial, sans-serif]PRI Span: 1 TEI=0 MDL-ERROR (C): UA (F=1) in state 7(Multi-frame established)
== Primary D-Channel on span 2 up
[/font]

[font=arial, sans-serif][2012-08-02 12:58:32] ERROR[9416]: chan_dahdi.c:14135 dahdi_pri_error: PRI Span: 1 TEI=0 MDL-ERROR (J): N(R) error in state 7(Multi-frame established) [/font]
[font=arial, sans-serif] == Primary D-Channel on span 1 down [/font]
[font=arial, sans-serif][2012-08-02 12:58:32] WARNING[9416]: sig_pri.c:1126 pri_find_dchan: Span 1: D-channel is down! [/font]
[font=arial, sans-serif] == Primary D-Channel on span 1 up
PRI Span: 2 TEI=0 MDL-ERROR (C): UA (F=1) in state 7(Multi-frame established)
[/font]

[font=arial, sans-serif] -- Executing [h@macro-dial-one:1] Macro("DAHDI/i1/7952015843-1", "hangupcall,") in new stack [/font]
[font=arial, sans-serif] -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/i1/7952015843-1", "1?theend") in new stack [/font]
[font=arial, sans-serif] -- Goto (macro-hangupcall,s,3) [/font]
[font=arial, sans-serif] -- Executing [s@macro-hangupcall:3] ExecIf("DAHDI/i1/7952015843-1", "0?Set(CDR(recordingfile)=)") in new stack [/font]
[font=arial, sans-serif] -- Executing [s@macro-hangupcall:4] Hangup("DAHDI/i1/7952015843-1", "") in new stack [/font]
[font=arial, sans-serif] == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'DAHDI/i1/7952015843-1' in macro 'hangupcall' [/font]
[font=arial, sans-serif] == Spawn extension (macro-dial-one, h, 1) exited non-zero on 'DAHDI/i1/7952015843-1' [/font]
[font=arial, sans-serif] == Spawn extension (macro-dial-one, s, 42) exited non-zero on 'DAHDI/i1/7952015843-1' in macro 'dial-one' [/font]
[font=arial, sans-serif] == Spawn extension (macro-exten-vm, s, 7) exited non-zero on 'DAHDI/i1/7952015843-1' in macro 'exten-vm' [/font]
[font=arial, sans-serif] == Spawn extension (from-did-direct, 33, 2) exited non-zero on 'DAHDI/i1/7952015843-1' [/font]
[font=arial, sans-serif] -- Hungup 'DAHDI/i1/7952015843-1' [/font]
[font=arial, sans-serif] -- SIP/33-00000001 answered DAHDI/i2/7952015843-1 [/font]
[font=arial, sans-serif] -- Executing [h@macro-dial-one:1] Macro("DAHDI/i2/7952015843-1", "hangupcall,") in new stack [/font]
[font=arial, sans-serif] -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/i2/7952015843-1", "1?theend") in new stack [/font]
[font=arial, sans-serif] -- Goto (macro-hangupcall,s,3) [/font]
[font=arial, sans-serif] -- Executing [s@macro-hangupcall:3] ExecIf("DAHDI/i2/7952015843-1", "0?Set(CDR(recordingfile)=)") in new stack [/font]
[font=arial, sans-serif] -- Executing [s@macro-hangupcall:4] Hangup("DAHDI/i2/7952015843-1", "") in new stack [/font]
[font=arial, sans-serif] == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'DAHDI/i2/7952015843-1' in macro 'hangupcall' [/font]
[font=arial, sans-serif] == Spawn extension (macro-dial-one, h, 1) exited non-zero on 'DAHDI/i2/7952015843-1' [/font]
[font=arial, sans-serif] == Spawn extension (macro-dial-one, s, 42) exited non-zero on 'DAHDI/i2/7952015843-1' in macro 'dial-one' [/font]
[font=arial, sans-serif] == Spawn extension (macro-exten-vm, s, 7) exited non-zero on 'DAHDI/i2/7952015843-1' in macro 'exten-vm' [/font]
[font=arial, sans-serif] == Spawn extension (from-did-direct, 33, 2) exited non-zero on 'DAHDI/i2/7952015843-1' [/font]
[font=arial, sans-serif] -- Hungup 'DAHDI/i2/7952015843-1 [/font]


[font=arial, sans-serif]Setup as follows: [/font]


[font=arial, sans-serif]Debian 6 (squeeze)
Asterisk 1.8.15.0
libpri-1.4.12
openvox-dahdi-linux-complete-2.6.1+2.6.1 (downloaded from openvox, tried the digium one as well same version)
[/font]



[font=arial, sans-serif]

/etc/dahdi/modules

# Autogenerated by /usr/sbin/dahdi_genconf (Dahdi::Config::Gen::Modules) on Wed Aug 1 21:35:20 2012
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
wcb4xxp





system.conf

# Autogenerated by /usr/sbin/dahdi_genconf on Thu Aug 2 09:45:29 2012
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS
span=1,1,0,ccs,ami
# termtype: te
bchan=1-2
hardhdlc=3

# Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" AMI/CCS
span=2,2,0,ccs,ami
# termtype: te
bchan=4-5
hardhdlc=6

# Global data

loadzone = uk
defaultzone = uk

[/size][/font][/color]

[font=arial, sans-serif]

dahdi-channels.conf

; Autogenerated by /usr/sbin/dahdi_genconf on Thu Aug 2 09:45:29 2012
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 1-2
context = default
group = 63

; Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" AMI/CCS
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 4-5
context = default
group = 63


[/size][/font][/color]
[font=arial, sans-serif]chan_dahdi.conf [/font]

[font=arial, sans-serif][channels] [/font]
[font=arial, sans-serif]pridialplan=unknown [/font]
[font=arial, sans-serif]prilocaldialplan=unknown [/font]

[font=arial, sans-serif]#include dahdi-channels.conf [/font]
[font=arial, sans-serif]; include dahdi extensions defined in FreePBX [/font]
[font=arial, sans-serif]#include chan_dahdi_additional.conf [/font]


[font=arial, sans-serif]
[/font]
[font=arial, sans-serif]
[/size][/font][/color]


[font=arial, sans-serif]Asterisk console outputs: [/font]


[font=arial, sans-serif]todaywetravel1*CLI> dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO
B4XXP (PCI) Card 0 Span 1 OK 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 2 OK 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
[/font]



[font=arial, sans-serif]todaywetravel1*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service
1 from-pstn default In Service
2 from-pstn default In Service
4 from-pstn default In Service
5 from-pstn default In Service
[/font]



[font=arial, sans-serif]todaywetravel1*CLI> pri show spans
PRI span 1/0: Up, Active
PRI span 2/0: Up, Active
[/font]


[font=arial, sans-serif]todaywetravel1*CLI> dahdi show channel 1
Channel: 1
File Descriptor: 13
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID subaddress:
Caller ID name:
Mailbox: none
Destroy: 0
InAlarm: 0
Signalling Type: ISDN BRI Point to Point
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: no
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: alaw
Fax Handled: no
Pulse phone: no
Gains (RX/TX): 0.00/0.00
Dynamic Range Compression (RX/TX): 0.00/0.00
DND: no
Echo Cancellation:

128 taps

(unless TDM bridged) currently OFF
Wait for dialtone: 0ms
PRI Flags:
PRI Logical Span: Implicit
Hookstate (FXS only): Onhook
[/font]


[font=arial, sans-serif]
[/size][/font][/color]


[font=arial, sans-serif]Supplier suggested checking timing, here is output that seems ok: [/font]

[font=arial, sans-serif]dahdi_test -c 51
Opened pseudo dahdi interface, measuring accuracy...
99.997% 99.992% 99.997% 99.996% 99.997% 99.997% 99.997% 99.997%
99.997% 99.995% 99.997% 99.997% 99.997% 99.997% 99.997% 99.997%
99.997% 99.997% 99.996% 99.997% 99.996% 99.997% 99.997% 99.996%
99.997% 99.998% 99.996% 99.997% 99.997% 99.997% 99.997% 99.996%
99.996% 99.996% 99.997% 99.997% 99.997% 99.997% 99.997% 99.996%
99.997% 99.996% 99.997% 99.997% 99.997% 99.997% 99.997% 99.997%
99.996% 99.996%




And I am now stuck any ideas?

With thanks, Lee
[/size][/font][/color]
6 years 11 months ago #8255 by chunlei.yi
hi,
can you provide ssh to me, i will help you to check it.

msn:chunlei.yi@hotmail.com
skype:chunlei.yi
Time to create page: 0.037 seconds
Powered by Kunena Forum