Dialogic Diva Server 4BRI-8M 2.0 mit Asterisk konfigurieren

metophobia

Neuer User
Mitglied seit
27 Feb 2008
Beiträge
5
Punkte für Reaktionen
0
Punkte
0
Hallo zusammen

Meine Situation

  • Asterisk 1.4.19 auf Debian etch Kernel 2.6.18 (Testaufbau mit 3 IP-Phones)
  • Dialogic DIVA Server 4BRI-8M 2.0
  • ISDN Anschluss in unserem Serverraum (durchgepatcht auf Port1)

Meine bereits unternommene Schritte

  • Asterisk&Phones installiert (mit Hilfe Internt/Bücher) --> Funktioniert intern wunderbar
  • Karte mittels dieser Anleitung installiert --> funktioniert nicht (war keine Überraschung..wollte es einfach mal versuchen *g* )
  • Internet&Forum durchstöbert (zB diesen Thread gelesen)

Mein Problem
Ich habe die Karte mal auf gut Glück konfiguriert (unter zu Hilfename des Internets&einiger Threads hier). Dass sie nicht funktioniert überrascht mich gar nicht, da ich nur beschränkt bis keine Ahnung von den ganzen Einstellungen habe. Try&Error bringt mir im jetzigen Fall also nicht wirklich was, da es Lotto gleichkommt..

Meine Frage
Welche config/log Files braucht ihr, um mich auf den richtigen Weg zu leiten?
Habt ihr etv. noch nützliche Links, wo ich das ganze noch selbst nachlesen und weiter ausprobieren kann?

Mein Angebot
Sollte ich das ganze hinkriegen werde ich ein kurzes How-to schreiben :)


Grüsse aus der Schweiz

metophobia


PS: Hoffe hab das richtige Unterforum erwischt sonst bitte verschieben
 
so.. hab mal ein wenige gebastelt..geht immer noch nicht :)

[edit]
1 Fehler weniger..war wohl etwas mit dem Anschluss...dafür hab ich nun folgenden Fehler

Code:
*CLI>
*CLI>     -- Executing [0XXXXXXXXXX@meine-telefone:1] Dial("SIP/2000-08221dd8", "DIALOGICDIVA/contr1/0XXXXXXXXXX/b|30|trg") in new stack
       > data = contr1/0XXXXXXXXXX3/b format=8
       > parsed dialstring: 'contr1' 'NULL' '0XXXXXXXXXX' 'b'
       > dialogicdiva request controller = 1
  == ISDN1#08: setting format alaw - 0x8 (alaw)
       > parsed dialstring: 'contr1' 'NULL' '0XXXXXXXXXX' 'b'
       > dialogicdiva: peerlink -1 allocated, peer is unlinked
  == ISDN1#08: Call DIALOGICDIVA/ISDN1#08/0XXXXXXXXXX-0 with B3  (pres=0x00, ton=0x00)
CONNECT_REQ                ID=002 #0x000b LEN=0060
  Controller/PLCI/NCCI            = 0x1
  CIPValue                        = 0x1
  CalledPartyNumber               = <80>0XXXXXXXXXX
  CallingPartyNumber              = <00 80>2000
  CalledPartySubaddress           = default
  CallingPartySubaddress          = default
  BProtocol
   B1protocol                     = 0x1
   B2protocol                     = 0x1
   B3protocol                     = 0x0
   B1configuration                = default
   B2configuration                = default
   B3configuration                = default
   GlobalConfiguration            = default
  BC                              = default
  LLC                             = default
  HLC                             = default
  AdditionalInfo
   BChannelinformation            = <00 00>
   Keypadfacility                 = default
   Useruserdata                   = default
   Facilitydataarray              = default
   SendingComplete                = <01 00>

    -- Called contr1/0XXXXXXXXXX/b
       > chan_dialogicdiva devicestate requested for ISDN1#08/0XXXXXXXXXX-0 is 'In use'
       > chan_dialogicdiva devicestate requested for ISDN1#08/0XXXXXXXXXX is 'In use'
CAPI: ApplId=0x0002 Command=0x02 SubCommand=0x81 MsgNum=0x000b NCCI=0x00000301
CONNECT_CONF               ID=002 #0x000b LEN=0014
  Controller/PLCI/NCCI            = 0x301
  Info                            = 0x0

    -- ISDN1#08: received CONNECT_CONF PLCI = 0x301
CAPI: ApplId=0x0002 Command=0x04 SubCommand=0x82 MsgNum=0x0001 NCCI=0x00000301
DISCONNECT_IND             ID=002 #0x0001 LEN=0014
  Controller/PLCI/NCCI            = 0x301
  Reason                          = 0x3302

DISCONNECT_RESP            ID=002 #0x0001 LEN=0012
  Controller/PLCI/NCCI            = 0x301

       > ISDN1#08: CAPI INFO 0x3302: Protocol error layer 2
    -- chan_dialogicdiva queu [ TYPE: Control (4) SUBCLASS: Hangup (1) ] [ISDN1#08]
  == ISDN1#08: DIALOGICDIVA Hangingup for PLCI=0xdead0000 in state 4
  == ISDN1#08: Interface cleanup PLCI=0xdead0000
    -- No one is available to answer at this time (1:0/0/0)
  == Auto fallthrough, channel 'SIP/2000-08221dd8' status is 'NOANSWER'
       > chan_dialogicdiva devicestate requested for ISDN1#08/0XXXXXXXXXX-0 is 'Not in use'
       > chan_dialogicdiva devicestate requested for ISDN1#08/0XXXXXXXXXX is 'Not in use'
       > chan_dialogicdiva devicestate requested for ISDN1#08/0XXXXXXXXXX-0 is 'Not in use'
       > chan_dialogicdiva devicestate requested for ISDN1#08/0XXXXXXXXXX is 'Not in use'



Zudem habe ich noch einige Meldungen beim Aufstarten
Code:
obelisk:~# asterisk -c
Asterisk 1.4.19, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Booting...
[ Reading Master Configuration ]
[ Initializing Custom Configuration Options ]
[Apr 18 11:43:31] NOTICE[7696]: cdr.c:1366 do_reload: CDR simple logging enabled.
[Apr 18 11:43:31] NOTICE[7696]: loader.c:851 load_modules: 133 modules will be loaded.
.....[Apr 18 11:43:31] WARNING[7696]: res_smdi.c:1264 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
..[Apr 18 11:43:31] NOTICE[7696]: chan_dialogicdiva.c:6005 cc_post_init_capi: Unused contr2
[Apr 18 11:43:31] NOTICE[7696]: chan_dialogicdiva.c:6005 cc_post_init_capi: Unused contr3
[Apr 18 11:43:31] NOTICE[7696]: chan_dialogicdiva.c:6005 cc_post_init_capi: Unused contr4
..................[Apr 18 11:43:31] NOTICE[7701]: chan_dialogicdiva.c:5087 capidev_loop: Started CAPI device thread.
........................[Apr 18 11:43:31] NOTICE[7696]: pbx_ael.c:4137 pbx_load_module: Starting AEL load process.
[Apr 18 11:43:31] NOTICE[7696]: pbx_ael.c:4144 pbx_load_module: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'.
[Apr 18 11:43:31] NOTICE[7696]: pbx_ael.c:4152 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Apr 18 11:43:31] NOTICE[7696]: pbx_ael.c:4155 pbx_load_module: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Apr 18 11:43:31] NOTICE[7696]: pbx_ael.c:4157 pbx_load_module: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Apr 18 11:43:31] NOTICE[7696]: pbx_ael.c:4160 pbx_load_module: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Apr 18 11:43:31] NOTICE[7696]: pbx_ael.c:4163 pbx_load_module: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
.................................................................................. ]
Asterisk Ready.
*CLI>


Zum Schluss noch die Config files

dialogicdiva.conf
Code:
;
; DIALOGICDIVA config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=1.0       ;linear receive gain (1.0 = no change)
txgain=1.0       ;linear transmit gain (1.0 = no change)
language=de      ;set default language
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

;jb.....         ;with Asterisk 1.4 you can configure jitterbuffer,
                 ;see Asterisk documentation for all jb* setting available.
;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.


; interface sections ...

[ISDN1]          ;this example interface gets name 'ISDN1' and may be any
                 ;name not starting with 'g' or 'contr'.
                 ;Use one interface section for each isdn port!
;ntmode=yes      ;if isdn card operates in nt mode, set this to yes
isdnmode=DID     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                 ;when using NT-mode, 'DID' should be set in any case
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any
;defaultcid=123  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
;controller=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=1     ;dialogicdiva controller number of this interface/port
group=1          ;dialout group
;prefix=0        ;set a prefix to calling number on incoming calls
softdtmf=on      ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=on     ;in addition to softdtmf, you can use relaxed dtmf detection
faxdetect=off    ;enable faxdetection and redirection to EXTEN 'fax' for incoming and/or
                 ;outgoing calls. (default='off', possible values: 'incoming','outgoing','both')
accountcode=     ;PBX accountcode to use in CDRs
;amaflags=default;AMA flags for CDR ('default', 'omit', 'billing', or 'documentation')
context=isdn-in  ;context for incoming calls
;holdtype=hold   ;when the PBX puts the call on hold, ISDN HOLD will be used. If
                 ;set to 'local' (default value), no hold is done and the PBX may
                 ;play MOH.
;immediate=yes   ;DID: immediate start of pbx with extension 's' if no digits were
                 ;     received on incoming call (no destination number yet)
                 ;MSN: start pbx on CONNECT_IND and don't wait for SETUP/SENDING-COMPLETE.
                 ;     info like REDIRECTINGNUMBER may be lost, but this is necessary for
                 ;     drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression. Disable this before you start recording voicemail
                 ;or your files may get choppy. (you can use dialogicdivacommand(echosquelch|no) for this)
echocancel=yes  ;Dialogic Diva (Capi) echo cancelation (yes=g165)
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165') 
echocancelold=no ;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
;echotail=64     ;echo cancel tail setting (default=0 for maximum)
;echocancelnlp=1 ;activate non-linear-processing; this improves echo cancel ratio, but might
                 ;incorporate variable gain in the signal path.
;bridge=yes      ;native bridging (DIALOGICDIVA line interconnect) if available
;callgroup=1     ;PBX call group
;pickupgroup=1   ;PBX pickup group (which call groups are we allowed to pickup)
;transfergroup=1 ;Controller(s) where a transfer on native bridge is allowed to.
;language=de     ;set language for this device (overwrites default language)
;disallow=all    ;RTP codec selection (valid with Dialogic Diva only)
;allow=all       ;RTP codec selection (valid with Dialogic Diva only)
devices=8        ;number of concurrent calls (b-channels) on this controller
                 ;(2 makes sense for single BRI, 30/23 for PRI/T1)
;jb.....         ;with Asterisk 1.4 you can configure jitterbuffer,
                 ;see Asterisk documentation for all jb* setting available.
;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.
;qsig=1           ;enable use of Q.SIG extensions. ECMA Variant
;qsig_prnum=1234  ;enable inbound bridging - this should be an QSIG-network-wide unique number


extensions.conf
Code:
[sonstige]

[meine-telefone]
exten => 2000,1,Dial(SIP/2000,20)
exten => 2000,2,VoiceMail(2000,b)

exten => 2001,1,Dial(SIP/2001,20)
exten => 2001,2,VoiceMail(2001,b)

exten => 2002,1,Dial(SIP/2002,20)
exten => 2002,2,VoiceMail(2002,b)


exten => 2999,1,VoiceMailMain(${CALLERID(num)},s)
exten => _0.,1,Dial(DIALOGICDIVA/contr1/${EXTEN}/b,30,trg)


Frage
  • Spielt es eine Rolle, ob ich das ganze mit der chan_capi.conf oder mit der chan_dialogicdiva.conf betreibe?
  • Sind die Meldungen beim Aufstarten kritisch?
  • Habe ich irgendwo einen groben Logikfehler drinnen?


Danek schon einmal für die Antworten

Grüsse
metophobia
 
Zuletzt bearbeitet:
Fragen:
-welche Module nutzt du, die vom debian-kernel, von dialogic oder von melware
-welche chan-capi Version nutzt du, die von debian oder von melware

Unabhaengig davon solltest du fuer jeden der 4 Controler einen eigenen Eintrag in
der Config haben mit devices=2 und nicht _einen_ Eintrag mit devices=8
Also jeden der 4 Controler mit den kompletten Parametern auffuehren.

Tip:
Zusammenfuehren kannst du die dann mittels identischem context.
 
so.. hab mal ein wenige gebastelt..geht immer noch nicht :)

Frage
  • Sind die Meldungen beim Aufstarten kritisch?

Ein "noload res_smdi.so" in modules.conf beseitigt eine Warnung, die nichts mit ISDN zu tun hat. Die Meldungen, dass Controller 2 bis 4 nicht angeschlossen sind, sind schon interessanter. Den Hinweise auf "devices=2" gab es aber bereits.

Ist im Serverraum ein Mehrgeräte- oder ein Anlagenanschluss?

Stefan
 
Zur Zeit sind die Features von chan_capi und chan_dialogicdiva identisch. Es ist also egal, welches du verwendest. Nur die Namen (Kommandos) sind umbenannt. Der Fehler ist eindeutig und wird im debug auch angezeigt:
ISDN1#08: CAPI INFO 0x3302: Protocol error layer 2
D.h. Die ISDN Karte ist nich entsprechend dem Protokoll, welches die ISDN Leitung fährt, eingestellt. Z.B. PtP?

Armin
 
Guten Morgen

Besten Dank für die Antworten

Habe den Fehler gefunden und ja..fällt schon fast in die Kategorie DAU..

In meiner extension.conf habe ich ja eingestellt, dass Anrufe mit einer vorstehender 0 über die ISDN Karte gehen sollen.

Und nun ja, da man bei unserer jetzigen Anlage eine zusätzliche 0 vorwählen muss, um nach Aussen zu telefonieren habe ich fälschlicherweise angenommen, dass dies nun auch der Fall ist.

Dank eines Vertippers (!!!) vergass ich die zusätzliche 0 und siehe da es klingelte
:-Ö


Bin nun happy dass es funktioniert und werde die dialogicdiva.conf noch nach euren Ratschlägen anpassen.


Gruss
metophobia
 
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.