Problem Asterisk mit 2. ISDN Karte

DerWolti

Neuer User
Mitglied seit
20 Nov 2008
Beiträge
4
Punkte für Reaktionen
0
Punkte
0
Hallo zusammen,

Zum Problem: Es existiert ein funktionierendes System über mISDN, mit dem ich soweit auch sehr zufrieden bin (anbindung über SIP und eine Cologne HFC Karte an ISDN) Seit kurzer zeit befindet sich nun eine USB ISDN Karte im System (gleiche ID wie Draytec Vigor), die auch problemlos von mISDN erkannt und eingebunden wird (usbhfc). Diese soll nun im NT Modus weitere ISDN Telefone versorgen. Und da kommt jetzt mein Problem ins Spiel: Da auch noch "nicht ISDN Telefone" im System hängen, befindet sich hinter der NT Karte eine Eumex 2220 (angeschlossen über ein Cross ISDN). Nachdem ich dachte, ich hätte jetzt lange genug meine Hausaufgaben gemacht, muste ich dann feststellen, dass die Eumex zwar nach unendlicher zeit meldet, dass ISDN vorhanden sei, etc. aber z.B. beim abnehmen am tel (hinter der eumex)nur das Brutzeln (ohne Freizeichen zu hören ist). Komischerweise ließ sich das telefon zeitweise anklingeln (beim abnehmen, war allerdings nur das brutzeln zu hören), auch mit nummernübertragung und es gab zeitweise auch ein "nebenstellen" freizeichen, bei dem ich dann auch wählen konnte und dann wirklich ein klingelzeichen bekam (wo das blöde ding hingewählt haben soll, war weder asterist im debugmodus noch mISDN zu entlocken, daher vermute ich, dass auch das nur ein fake war, denn die gewählten nummern gaben keinen laut von sich)

Jetzt mal ein paar infos zum System:

Asterisk 1.4.21.2 built by abuild @ build12 on a x86_64 running Linux on 2008-10-28 02:26:35 UTC
auf SUSE

Code:
*CLI> misdn show stacks
BEGIN STACK_LIST:
  * Port 1 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0  Debug:4
  * Port 2 Type NT Prot. PMP L2Link UP L1Link:UP Blocked:0  Debug:4

Code:
*CLI> misdn show config
Misdn General-Config:
 -> misdn_init: /etc/misdn-init.conf -> debug: 0
 -> tracefile: /var/log/asterisk/misdn.log -> bridging: yes
 -> stop_tone_after_first_digit: yes -> append_digits2exten: yes
 -> dynamic_crypt: no                -> crypt_prefix:
 -> crypt_keys:                      -> ntkeepcalls: no
 -> ntdebugflags: 0                  -> ntdebugfile: /var/log/misdn-nt.log


[PORT 1]
 -> name: AnlagenAnschluss           -> allowed_bearers: all
 -> far_alerting: no                 -> rxgain: 0
 -> txgain: 100                      -> te_choose_channel: no
 -> pmp_l1_check: no                 -> reject_cause: 21
 -> block_on_alarm: no               -> hdlc: no
 -> context: isdn_in                 -> language: en
 -> musicclass: default              -> callerid:
 -> method: standard                 -> dialplan: 0
 -> localdialplan: 0                 -> cpndialplan: 0
 -> nationalprefix: 0                -> internationalprefix: 00
 -> presentation: -1                 -> screen: -1
 -> always_immediate: no             -> nodialtone: no
 -> immediate: no                    -> senddtmf: yes
 -> astdtmf: no                      -> hold_allowed: no
 -> early_bconnect: yes              -> incoming_early_audio: no
 -> echocancel: 256                  -> need_more_infos: no
 -> noautorespond_on_setup: no       -> nttimeout: no
 -> bridging: yes                    -> jitterbuffer: 4000
 -> jitterbuffer_upper_threshold: 0  -> callgroup:
 -> pickupgroup:                     -> max_incoming: -1
 -> max_outgoing: -1                 -> l1watcher_timeout: 0
 -> overlapdial: 3                   -> msns: *
 -> faxdetect: no                    -> faxdetect_context:
 -> faxdetect_timeout: 5             -> ptp: no


[PORT 2]
 -> name: InterneAnlage              -> allowed_bearers: all
 -> far_alerting: no                 -> rxgain: 0
 -> txgain: 100                      -> te_choose_channel: no
 -> pmp_l1_check: no                 -> reject_cause: 21
 -> block_on_alarm: no               -> hdlc: no
 -> context: int_isdn                -> language: en
 -> musicclass: default              -> callerid:
 -> method: standard                 -> dialplan: 0
 -> localdialplan: 0                 -> cpndialplan: 0
 -> nationalprefix: 0                -> internationalprefix: 00
 -> presentation: -1                 -> screen: -1
 -> always_immediate: no             -> nodialtone: no
 -> immediate: no                    -> senddtmf: yes
 -> astdtmf: no                      -> hold_allowed: no
 -> early_bconnect: yes              -> incoming_early_audio: no
 -> echocancel: 256                  -> need_more_infos: no
 -> noautorespond_on_setup: no       -> nttimeout: no
 -> bridging: yes                    -> jitterbuffer: 4000
 -> jitterbuffer_upper_threshold: 0  -> callgroup:
 -> pickupgroup:                     -> max_incoming: -1
 -> max_outgoing: -1                 -> l1watcher_timeout: 0
 -> overlapdial: 3                   -> msns: *
 -> faxdetect: no                    -> faxdetect_context:
 -> faxdetect_timeout: 5             -> ptp: no


Seit dem anstecken der Eumex sieht das Log so aus:
Code:
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Thu Nov 20 19:42:13 2008: P[ 2]  L1: PH L1Link Up!
Thu Nov 20 19:42:13 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED

Und das ganze 4 mal pro sekunde ;-)

misdn.conf:
Code:
[general]
bridging=yes
debug=0
misdn_init=/etc/misdn-init.conf

[default]
echocancel=256
txgain=100%
senddtmf=yes

[AnlagenAnschluss]
ports=1
overlapdial=3
context=isdn_in
msns=*

[InterneAnlage]
ports=2
overlapdial=3
context=int_isdn
msns=*

Zapata.conf:
Code:
;
; Zapata telephony interface
;
; Configuration file
;
; You need to restart Asterisk to re-configure the Zap channel
; CLI> reload chan_zap.so.
;<-----><------>will reload the configuration file,
;<-----><------>but not all configuration options are.
; <----><------>re-configured during a reload.



[trunkgroups]

[channels]

context=default


switchtype=EuroISDN

prilocaldialplan=local

signalling=fxo_ls


rxwink=300<----><------>; Atlas seems to use long (250ms) winks


toneduration=300

usecallerid=yes

hidecallerid=no

callwaiting=yes

usecallingpres=yes

callwaitingcallerid=yes

transfer=yes

canpark=yes

cancallforward=yes;

callreturn=yes

echocancel=yes

echocancelwhenbridged=yes

relaxdtmf=yes

rxgain=0.0
txgain=0.0

group=1

callgroup=1
pickupgroup=1

immediate=no

Ich hoffe, da fehlt jetzt nichts mehr um sich ein bild machen zu können ;-) Achso, mISDN hat die Version 1.1.8

noch ein kleines schaubildchen :)

Code:
ISDN -------------Asterisk--------------SIP
                     |      \
                     |        \
                  I-Net    ISDN-int-----Eumex----- Tel1/Tel2 usw.

Als Idee werde ich nochmal versuchen zwischen die ISND-NT und die Eumex noch eine NTBA zu hängen. Ansonsten gehen mir leider langsam die Ideen aus ...

Das einzige, was noch helfen könnte sind die Debug messages, beim abheben des ISDN Tel:
Code:
P[ 2] % GOT L2 DeActivate Info.
P[ 2]  --> CC_RELEASE_CR: Faking Realease_cr for 41000201 l3id:19004c
P[ 2]  --> lib: RELEASE_CR Ind with l3id:19004c
P[ 2]  --> lib: CLEANING UP l3id: 19004c
P[ 2]  --> hangup
P[ 2] * IND : HANGUP    pid:6 ctx:int_isdn dad: oad:47586200 State:WAITING4DIGS
P[ 2]  --> l3id:19004c
P[ 2]  --> cause:16
P[ 2]  --> out_cause:16
P[ 2]  --> state:WAITING4DIGS
P[ 2]  --> Channel: mISDN/3-u4 hanguped new state:CLEANING
P[ 2] $$$ CLEANUP CALLED pid:6
P[ 2] $$$ Cleaning up bc with stid :10010200 pid:6
P[ 2]  --> ec_disable
P[ 2] Sending Control ECHOCAN_OFF
P[ 2] ph_control: c1:2319 c2:0
P[ 2] empty_chan_in_stack: 1
P[ 2] BCHAN: MGR_DELLAYER|CNF pid:6
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c018160 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c045eb0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c045f00 dinfo:0
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 2] L1: PH L1Link Up!
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 2] L1: PH L1Link Up!
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 2] L1: PH L1Link Up!
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 2] L1: PH L1Link Up!
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 2] L1: PH L1Link Up!

Danke schon mal für jede Idee, die hier gesponnen wird.

Grüße,

Daniel
 
update

so, kleines update:

Mit der NTBA ist es wesentlich besser -> freizeichen da, wählen möglich usw. aber: Sprachquali sehr bescheiden. Beim mailboxabruf war die dame kaum zu verstehen und ich habe jetzt ein wenig meine fehler gewechselt ;-)

Der fehler scheint an der schlechten derminierung der Telefonanlage zu liegen, denn beim anschluss an die NTBA wurde direkt richtig erkannt, dass beide links down sind.

diese Fehler verfolgen mich jetzt in 10 sekunden abständen:

Code:
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c045a48 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c045a90 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f980 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f980 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c045a48 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c045a48 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f980 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 2] $$$ CLEANUP CALLED pid:10
P[ 2] $$$ Cleaning up bc with stid :10010200 pid:10
P[ 2]  --> ec_disable
P[ 2] Sending Control ECHOCAN_OFF
P[ 2] ph_control: c1:2319 c2:0
P[ 2] empty_chan_in_stack: 1
P[ 2] I IND :RELEASE oad: dad: pid:10 state:CLEANING
P[ 2]  --> channel:0 mode:NT cause:16 ocause:16 rad: cad:
P[ 2]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  --> caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  --> screen:0 --> pres:0
P[ 2]  --> addr:50010202 l3id:8002004e b_stid:0 layer_id:50010280
P[ 2]  --> facility:Fac_None out_facility:Fac_None
P[ 2]  --> bc_state:BCHAN_CLEANED
P[ 2] ast_hangup already called, so we have no ast ptr anymore in event(RELEASE)
P[ 2]  --> No need to queue hangup
P[ 2] Cannot hangup chan, no ast
P[ 2]  --> CC_RELEASE_CR: Faking Realease_cr for 41000201 l3id:8002004e
P[ 2]  --> lib: RELEASE_CR Ind with l3id:8002004e
P[ 2]  --> lib: CLEANING UP l3id: 8002004e
P[ 2] $$$ CLEANUP CALLED pid:10
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c045a48 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c045a90 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f980 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f980 dinfo:0
P[ 2] BCHAN: MGR_DELLAYER|CNF pid:10
P[ 0] handle_bchan: BC not found for prim:f8481 with addr:1c045a48 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8481 with addr:1c045a90 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f980 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8181 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8281 with addr:1c01f9d0 dinfo:0
P[ 0] handle_bchan: BC not found for prim:f8882 with addr:1c01f9d0 dinfo:0

Grüße,

daniel
 
"L2Link DOWN L1Link:DOWN" heist kein Kabel angeschlossen oder falsche Karte am NT-BA der Telekom.
  • Wofür hast du die "Zapata.conf" geposted?
  • Warum fehlt die "misdn-init.conf"?
  • Warum ist ein "AnlagenAnschluss" als ptmp konfiguriert?
  • Hast du den internen Bus Terminiert? Oder besser 2 mal?
  • Könnte das gedrehte Kabel irgedwie Verpolt sein?
 
Moooment ;-)

1. Sorry, wusste, dass ich was vergessen hatte ;-)

Code:
card=1,hfcpci
card=2,hfcsusb

te_ptmp=1
nt_ptmp=2


poll=128
dsp_poll=128
dsp_options=0
dtmfthreshold=100
debug=0

2. Anlagenanschluss ist noch von meinem vorgänger und bezeichnet in dem fall einen normalen EuroISDN 2 B-Kanal anschluss. War falsch zu verstehen, gebe ich zu, ist aber fehlerfrei... und läuft

3. Der Interne bus ist jetzt Terminiert

4. Nein, kabel sind sauber, durchgemessen usw. und nicht verpolt.

5. Hauptproblem ist:
P[ 0] handle_bchan: BC not found for prim:f8381 with addr:1c01f9d0 dinfo:0


vermutlich ein kernelproblem, aber ich bin mir noch nciht sicher ;-)

Grüße,

Daniel
 
2. Anlagenanschluss ist noch von meinem vorgänger und bezeichnet in dem fall einen normalen EuroISDN 2 B-Kanal anschluss. War falsch zu verstehen, gebe ich zu, ist aber fehlerfrei... und läuft

passt nicht zu
Code:
*CLI> misdn show stacks
BEGIN STACK_LIST:
[B]* Port 1 Type TE Prot. PMP L2Link [COLOR="Red"]DOWN [/COLOR]L1Link:[COLOR="red"]DOWN [/COLOR]Blocked:0  Debug:4[/B]  
* Port 2 Type NT Prot. PMP L2Link UP L1Link:UP Blocked:0  Debug:4

P.S.: "Sprachquali sehr bescheiden" hat vermutlich nichts mit der "Eumex 2220" zu tun. Eher Umcodierung gsm zu alaw
 
Morgen, ich danke für die hilfe. das umkodieren könnte es sein. Da muss ich nochmal ran, bzw. das werde ich einfacher lösen können, hab noch ISDN Telefone hier rumliegen die ich dann mal testen werde.

Auch wenn ich das nur sehr ungern sage. Die anlage über die TE Karte läuft einwandfrei und schiebt alle calls raus, die sie soll (da es nur backup ist, sind das nicht viele, aber es funktionert sehr gut). Wenn ich allerdings jemanden über die TE Karte anrufe, dann hab ich auch ein UP dabei :)

Grüße,

daniel
 

Zurzeit aktive Besucher

Statistik des Forums

Themen
244,840
Beiträge
2,219,266
Mitglieder
371,543
Neuestes Mitglied
Brainbanger
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.