Wählsequenz per Fritz PCI durchführen

Ironarrow

Neuer User
Mitglied seit
16 Apr 2008
Beiträge
2
Punkte für Reaktionen
0
Punkte
0
Hallo zusammen,

ich bin ein Neuling im Bereich Asterisk. Also seid schon mal vorgewarnt :)

Was ich bei mir auf dem server durchführen will scheint für etliche von euch banal zu sein, aber ich bekomme es trotz intensiven durchforsten des Inets per Google, der Suchfunktion dieses Forums etc. einfach nicht hin.

Ich habe in einem Rechner (Debian 2.6.18-6) eine Fritz-ISDN-Karte (MSN 28 ) eingebaut, Capi-Treiber installiert und die akt. Version von Asterisk (1.4.19) und chan_capi (1.1.1) installiert.

Das einzige wozu ich die ISDN-Kart (im Moment) nutzen will, ist dass der Rechner zu einer bestimmten Uhrzeit eine Anwahlprozedur der TK-Anlage (Agfeo AS-40) durchführt.

Wenn ich an einem normalen Telefon die Sequenz "*532" bzw. "*533" wähle und danach auflege schalte ich die Anrufvarianten um.

Mehr will ich mit Asterisk nicht auf die Beine stellen. Es soll zu einer Uhrzeit X die Anrufvariante 1 aktiviert werden (*532) und zu einer Zeit Y die Anrufvariante 2 (*533).

Ich weiß, dass dieses mit Callfiles am besten geht, die zu der entsprechenden Uhrzeit nach /var/spool/asterisk/outgoing verschoben werden.

Mein Problem ist aber, dass ich Asterisk an sich nicht richtig konfiguriert bekomme.

Die meisten Anleitungen die ich finde sind für VoIP, aber das brauche ich hierfür ja nicht.

Kann mir jemand helfen, wie meine capi.conf, extensions.conf, sip.conf (und welche Dateien noch modifiziert werden müssen) auszusehen haben ??

Ich blicke da im Moment einfach nicht durch.

Gruß,

Rainer
 
ist denn die avm karte schon richtig erkannt worden? (capiinfo)
wenn ja an der capi.conf musste ich nichts ändern, lediglich in der modules.conf das capi modul aktivieren und dann in der modem.conf meine msns eintragen
 
Die Karte und die Capi-Treiber sind richtig eingerichtet:

capiinfo:
Code:
Number of Controllers : 1
Controller 1:
Manufacturer: AVM GmbH
CAPI Version: 2.0
Manufacturer Version: 3.11-07  (49.23)
Serial Number: 1000001
BChannels: 2
Global Options: 0x00000039
   internal controller supported
   DTMF supported
   Supplementary Services supported
   channel allocation supported (leased lines)
B1 protocols support: 0x4000011f
   64 kbit/s with HDLC framing
   64 kbit/s bit-transparent operation
   V.110 asynconous operation with start/stop byte framing
   V.110 synconous operation with HDLC framing
   T.30 modem for fax group 3
   Modem asyncronous operation with start/stop byte framing
B2 protocols support: 0x00000b1b
   ISO 7776 (X.75 SLP)
   Transparent
   LAPD with Q.921 for D channel X.25 (SAPI 16)
   T.30 for fax group 3
   ISO 7776 (X.75 SLP) with V.42bis compression
   V.120 asyncronous mode
   V.120 bit-transparent mode
B3 protocols support: 0x800000bf
   Transparent
   T.90NL, T.70NL, T.90
   ISO 8208 (X.25 DTE-DTE)
   X.25 DCE
   T.30 for fax group 3
   T.30 for fax group 3 with extensions
   Modem

  0100
  0200
  39000000
  1f010040
  1b0b0000
  bf000080
  00000000 00000000 00000000 00000000 00000000 00000000
  01000001 00020000 00000000 00000000 00000000

Supplementary services support: 0x000003ff
   Hold / Retrieve
   Terminal Portability
   ECT
   3PTY
   Call Forwarding
   Call Deflection
   MCID
   CCBS

innerhalb von asterisk:

Code:
*CLI> module show like capi
Module                         Description                              Use Count
chan_capi.so                   Common ISDN API Driver (1.1.1)           0
1 modules loaded

capi.conf
Code:
;
; CAPI 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=msn     ;'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     ;capi 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=default  ;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 capicommand(echosquelch|no) for this)
;echocancel=yes  ;Dialogic Diva (Capi) echo cancelation (yes=g165)
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
echocancelold=yes;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 (CAPI 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=2        ;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
msn=28

Inzwischen bin ich soweit, dass wenn ich die ISDN-Karte anwähle, die sich auch meldet und eine Nachricht abspielt.

extensions.conf

Code:
[default]
exten => 28,1,Answer    ; "Thanks for trying the demo"
exten => 28,2,Playback(demo-thanks)     ; "Thanks for trying the demo"
exten => 28,3,Hangup    ; "Thanks for trying the demo" 

[nacht]
exten => 28,1,Dial(CAPI/28:99533)
exten => 28,2,Wait(5)
exten => 28,3,Hangup

Mein Problem, das ich jetzt "nur noch" habe ist, dass die Karte nicht selbständig wählen will. Die extension "nacht" ist die Prozedur die ich "anstoßen" will.

Mein callfile, welches ich nach /var/spool/asterisk/oputgoing verschiebe hat folgenden Inhalt:

Code:
Channel: CAPI/ISDN1/28
Context: nacht
Extension: 28
MaxRetries: 0
RetryTime: 10
WaitTime: 30

Dieses hat jedoch folgende Ausgabe in der message-Datei zur Folge:

Code:
[Apr 23 09:06:05] WARNING[4023] app_dial.c: Unable to create channel of type 'CA                                PI' (cause 44 - Requested channel not available)
[Apr 23 09:06:09] NOTICE[4023] pbx_spool.c: Call completed to CAPI/ISDN1/28

Habe daraufhin die "nacht"-extension geändert, aber das führte auch zu keinem Erfolg:

Code:
[nacht]
exten => 28,1,Dial(CAPI/28:99533)
exten => 28,2,Wait(5)
exten => 28,3,Hangup

Dieses hat jedoch folgende Ausgabe in der message-Datei zur Folge:
Code:
[Apr 23 09:06:37] WARNING[4031] app_dial.c: Dial argument takes format (technolo                                gy/[device:]number1)
[Apr 23 09:06:37] NOTICE[4031] pbx_spool.c: Call completed to CAPI/ISDN1/28

Es steht zwar "Call completed", aber eine Anwahl hat er nicht durchgeführt. (habe es auch mal anstatt der Sequenz für die Telefonanlage mit der Anwahl einer normalen Nebenstellen-Nr ausprobiert.)

Wie gesagt, dass Rufannehmen funktioniert. Blos das die ISDN-Karte selbst wählt, das klappt nicht.
 
Kostenlos!

Statistik des Forums

Themen
249,052
Beiträge
2,309,531
Mitglieder
378,850
Neuestes Mitglied
IchBinEsDoch