Asterisk 1.2.8 - auch für Fli4L?

Status
Für weitere Antworten geschlossen.
Freut mich, dass gmx wieder geht!

Die capi-Probleme können aber eigentlich mit asterisk nichts zu tun haben, da die chan_capi selbst eine Anwendung ist, die auf das capi-Interface (capi-Treiber) zugreift.

Du könntest dies ja leicht dadurch testen, indem du mal asterisk stoppst und schaust ob faxsend und callback dann wieder normal funktionieren!
 
Hallo Holger;
das qmod funktioniert nicht richtig. Wenn ich könnte, würde ich zum omod zurückkehren.

Oder weißt Du eventuell Rat? Folgende Fehlermeldungen:
Code:
Jun 21 20:26:50 ERROR[17980]: chan_capi.c:773 local_queue_frame: Could not write to pipe for ISDN1#02
Jun 21 20:26:50 ERROR[17980]: chan_capi.c:773 local_queue_frame: Could not write to pipe for ISDN1#02
Jun 21 20:26:50 ERROR[17980]: chan_capi.c:773 local_queue_frame: Could not write to pipe for ISDN1#02
Jun 21 20:26:50 ERROR[17980]: chan_capi.c:773 local_queue_frame: Could not write to pipe for ISDN1#02
...
...
Jun 21 20:27:23 ERROR[17980]: chan_capi.c:773 local_queue_frame: Could not write to pipe for ISDN1#02
Jun 21 20:27:24 WARNING[18235]: chan_capi.c:395 _capi_put_cmsg_wait_conf: ISDN1#02: timed out waiting for CONNECT_CONF
Jun 21 20:27:24 ERROR[17980]: chan_capi.c:773 local_queue_frame: Could not write to pipe for ISDN1#02
...
...
    -- Attempting call on CAPI/contr1/010940162xxxxxxx/Bo for s@dialout:1 (Retry 3)
    -- didn't find capi device for interface 'contr1'
Jun 21 20:27:55 NOTICE[18397]: channel.c:2463 __ast_request_and_dial: Unable to request channel CAPI/contr1/010940162xxxxxxx/Bo
Jun 21 20:27:55 NOTICE[18397]: pbx_spool.c:269 attempt_thread: Call failed to go through, reason 0
  == Primary D-Channel on span 1 down for TEI 64
  == Primary D-Channel on span 1 up for TEI 64
Call Reference Length not supported: 0
    -- Attempting call on CAPI/contr1/010940162xxxxxxx/Bo for s@dialout:1 (Retry 4)
    -- didn't find capi device for interface 'contr1'
Jun 21 20:28:26 NOTICE[18556]: channel.c:2463 __ast_request_and_dial: Unable to request channel CAPI/contr1/010940162xxxxxxx/Bo
Jun 21 20:28:26 NOTICE[18556]: pbx_spool.c:269 attempt_thread: Call failed to go through, reason 0
       > ?: CAPI INFO 0x3490: Normal call clearing

Oder es sieht gar so aus:
Code:
-- Accepting overlap voice call from '25' to '<unspecified>' on channel 0/2, span 1
    -- Starting simple switch on 'Zap/2-1'
    -- Executing Dial("Zap/2-1", "Capi/contr1/08001507090/Bo||Ttr") in new stack
    -- didn't find capi device for interface 'contr1'
Jun 21 20:35:09 NOTICE[20595]: app_dial.c:1059 dial_exec_full: Unable to create channel of type 'Capi' (cause 44 - Requested channel not available)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing Congestion("Zap/2-1", "") in new stack
    -- Channel 0/2, span 1 got hangup request
  == Spawn extension (default, 08001507090, 2) exited non-zero on 'Zap/2-1'
    -- Hungup 'Zap/2-1'

obwohl niemand telefoniert und deshalb beide Kanäle frei sein müssten.


Auch Gespräche über sip funktionieren leider nur sporadisch, ein paar Knackser bei den Rufzeichen, dann kanns eventuell gehen, meistens kommen aber Fehlermeldungen.

Es ist ganz gewaltig der Wurm drin; das omod hatte bei weitem besser funktioniert.
 
Ich denke du hast dir deine capi-Treiber zerschossen:

"didn't find capi device for interface 'contr1' "

Ich würde von hier mal die richtigen Treiber downloaden und installieren:

http://www.fli4l.de/download/stabile-version/avm-treiber.html

Ausserdem: ist deine AVM-Karte eine ISA oder PCI?

welche IRQ's werden verwendet?

Code:
fli4l 3.0.1 # cat /proc/interrupts
           CPU0
  0:    2154171          XT-PIC  timer
  1:          2          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  6:     509895          XT-PIC  eth0
  8:        230          XT-PIC  rtc
  9:    9995336          XT-PIC  fcpci
 11:     145276          XT-PIC  eth1
 14:      21669          XT-PIC  ide0
NMI:          0
LOC:    2154133
ERR:          0
MIS:          0

wie sieht das bei dir aus?
 
Was ich jedoch nicht verstehe ist:

du hast doch erfolgreich darüber ins Festnetz telefoniert (unser Test via hfc zu 08001507090)?!

Was hast du denn in der Zwischenzeit noch alles gebastelt, dass z.B. Fax nicht mehr geht etc. ?

Die ganzen Probleme deuten doch eigentlich darauf hin, dass du Trouble mit deiner Hardware hast (hfc, Fritz) bzw. den zugehörigen Treibern.

Der bristuff ändert daran nix!

Läuft denn deine isdn-Hardware (fax etc.) wenn asterisk gestoppt ist?

Ansonsten mal armincm ansprechen oder du installierst dir halt den bristuff-1o wieder - allerdings glaube ich nicht, dass die Probleme dann weg sind!
 
Hallo Holger;
vielen Dank für Deine Hinweise.

Code:
fli4l 3.0.1 # cat /proc/interrupts
           CPU0
  0:     154171          XT-PIC  timer
  1:          2          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  5:      92672          XT-PIC  NE2000
  8:         26          XT-PIC  rtc
  9:   11920634          XT-PIC  zaphfc
 10:      31228          XT-PIC  eth1
 11:     434600          XT-PIC  fcpci
 14:       2536          XT-PIC  ide0
 15:         64          XT-PIC  ide1
NMI:          0
LOC:          0
ERR:          0
MIS:          0
fli4l 3.0.1 #

lade gerade den AVM-Treiber 105 für meine Fritz-PCI herunter, dann reinkopieren und ein neues build machen....
ich melde mich danach nochmals.
 
Was du auch nochmals probieren könntest, ist die original chan_capi.so aus dem 1q-mod. wieder einzusetzen. Die Updates die ich für die chan_capi.so bereit gestellt habe beruhen auf meiner aktuellen Installation die <> dem bristuff ist. Ob patches durch den bristuff die chan_capi beeinflussen können glaube ich zwar nicht, kann es aber auch nicht ausschliessen!

Aber hier ist das Original aus dem mod-1q:

Edit: Ich möchte nochmals betonen, dass ich den bristuff auf meinem System getestet habe, allerdings nur mit einer Fritz-PCI (capi) ohne hfc-Karte und dabei keine Probleme feststellen konnte. Da auf deinem System die hfc obendrein funktioniert hat, sollte eigentlich das gesamte pack in Ordnung sein - alles sehr seltsam!
 
Hallo Holger;
Du hast ja Recht, alles sehr seltsam! Es hatte gut funktioniert, bis naja eben die Fehler aufgetreten sind.

Ich habe eben ein mini-Fli aufgesetzt, aus base, dsl, ISDN (+AVM-Treiber), Hd, ssh und Asterisk qopt.
Dann das qmod nach /data/share kopiert.
Alles hochgeladen, reboot.

Code:
fli4l 3.0.1 # asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
fli4l 3.0.1 # ztcfg
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'

1 error(s) detected

fli4l 3.0.1 #

Was ist hier los? Hardwareausfall? Kann ich mir kaum vorstellen.
 
Hallo Günter,

'asterisk -gcccvvv' würde uns mehr verraten ;-)

und cat /proc/interrupts
 
Hallo; der Wurm oder die Katze hats gefressen:

Code:
asterisk -gcccvvv
  == Parsing '/data/share/asterisk/etc/zapata.conf': Found
Jun 21 22:45:37 WARNING[11231]: chan_zap.c:1091 zt_open: Unable to open '/dev/zap/channel': No such device
Jun 21 22:45:37 ERROR[11231]: chan_zap.c:7213 mkintf: Unable to open channel 1: No such device
here = 0, tmp->channel = 1, channel = 1
Jun 21 22:45:43 ERROR[11231]: chan_zap.c:11914 setup_zap: Unable to register channel '1-2'
Jun 21 22:45:43 WARNING[11231]: loader.c:414 __load_resource: chan_zap.so: load_module failed, returning -1
Jun 21 22:45:43 WARNING[11231]: loader.c:554 load_modules: Loading module chan_zap.so failed!
Ouch ... error while writing audio data: : Broken pipe
fli4l 3.0.1 # Junk at the beginning 49443302
Warning, flexibel rate not heavily tested!



fli4l 3.0.1 # cat /proc/interrupts
           CPU0
  0:     167593          XT-PIC  timer
  1:        151          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  5:       6466          XT-PIC  NE2000
 10:       1493          XT-PIC  eth1
 11:         36          XT-PIC  fcpci
 14:       2004          XT-PIC  ide0
 15:         47          XT-PIC  ide1
NMI:          0
LOC:          0
ERR:          0
MIS:          0
fli4l 3.0.1 #

Ich hoffe, es hilft! :-)
 
ja - dies fehlt:

9: 11920634 XT-PIC zaphfc

Hast du die hfc-karte in der /config/isdn.txt überhaupt eingetragen/installiert?
Entweder fehlen die Treiber oder die Karte ist hin!
 
Ich denke, ich habs gefunden. Die meisten Fehler sitzen eben zwischen Monitor und Tastatur!! ;-)

Ich habe als das q-opt den plorz-patch eingespielt; weil ich dachte, naja das isses. Isses abba nich! :-D

Neuer Anlauf!
 
Neuen "MINIFli" eingespielt; nur das allernotwendigste:

base,
dsl
ISDN + AVM-Treiber
hd
ssh
asterisk q-opt

dann per WinSCP das asterisk q-mod raufgeladen, meine conf-flies ins etc-Verzeichnis reingeschoben, codecs dazugespielt.
Habe die chan-capi.so aus dem original q-mod gelassen, und auch die einzelnen patches davon ausprobiert.

-- didn't find capi device for interface 'contr1'

"Haarerauf und Zähnefletsch!!!" :-(

Code:
fli4l 3.0.1 # cat /proc/interrupts
           CPU0
  0:     150571          XT-PIC  timer
  1:          2          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  5:      12614          XT-PIC  NE2000
  9:   11868669          XT-PIC  zaphfc
 10:       3897          XT-PIC  eth1
 11:     427121          XT-PIC  fcpci
 14:       2542          XT-PIC  ide0
 15:         47          XT-PIC  ide1
NMI:          0
LOC:          0
ERR:          0
MIS:          0
fli4l 3.0.1 #

asterisk -gcccvvv zeigt keinerlei Errors oder Warnings an, nicht eine einzige rote Zeile!

Asterisk Ready.
ist die letzte Zeile auf dem putty-Bildschirm.

Will ich per SIP rausrufen, sagt putty:
Code:
    -- Executing Dial("Zap/2-1", "SIP/09283xxxxxx@gmx|60|tTgH") in new stack
    -- Called 09283xxxxxx@gmx
Jun 22 20:11:26 ERROR[13214]: chan_sip.c:11548 sipsock_read: We could NOT get the channel lock for SIP/gmx-a7ca!
Jun 22 20:11:26 ERROR[13214]: chan_sip.c:11549 sipsock_read: SIP MESSAGE JUST IGNORED: SIP/2.0
Jun 22 20:11:26 ERROR[13214]: chan_sip.c:11550 sipsock_read: BAD! BAD! BAD!
    -- Channel 0/2, span 1 got hangup request
  == Spawn extension (default, 99283xxxxxx, 1) exited non-zero on 'Zap/2-1'
    -- Hungup 'Zap/2-1'

Wenn mich jemand über ISDN anruft, sagt putty:
Code:
 -- Executing Dial("CAPI/ISDN1#02/3312-0", "ZAP/g1/25|45|r") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called g1/25
Jun 22 19:53:24 WARNING[12382]: channel.c:1589 ast_waitfor_nandfds: Thread 19474 Blocking 'CAPI/ISDN1#02/3312-0', already blocked by thread 0 in procedure (null)
    -- Zap/1-1 is ringing
    -- Hungup 'Zap/1-1'
  == Spawn extension (external-ISDN_eingehend, 3312, 1) exited non-zero on 'CAPI/ISDN1#02/3312-0'
und im Hörer kommt "besetzt".

Hallo Holger, kann man mich mit meinem Asterisk-Fimmel noch retten? ;-)
 
Hallo Günter,

was erhälst du bei dem Befehl 'capi info' im cli?
Wie sieht die capi.conf aus?
 
fli4l*CLI> capi info
Contr1: 2 B channels total, 2 B channels free.
fli4l*CLI>

meine capi.conf:

Code:
;
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=de      ;set default language
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]           ;this example interface gets name 'ISDN1' and may be any
; msn=25          ; meine interne msn        ;name not starting with 'g' or 'contr'.
;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, ptp should be set in any case
incomingmsn=*    ;,34,35,37,39 ;allow incoming calls to this list of MSNs/DIDs, * == any
;defaultcid=3312   ;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 to use
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
accountcode=      ;PBX accountcode to use in CDRs
context=external-ISDN_eingehend  ;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 Asterisk may
                  ;play MOH.
;immediate=yes     ;immediate start of pbx with extension 's' if no digits were
                  ;received on incoming call (no destination number yet)
;echosquelch=1    ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes   ;EICON DIVA SERVER (CAPI) echo cancelation
                  ;(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
;bridge=yes       ;native bridging (CAPI line interconnect) if available
;callgroup=1      ;PBX call group
;language=de      ;set language for this device (overwrites default language)
;disallow=all     ;RTP codec selection (valid with Eicon DIVA Server only)
;allow=all        ;RTP codec selection (valid with Eicon DIVA Server only)
devices=2         ;number of concurrent calls on this controller
                  ;(2 makes sense for single BRI, 30 for PRI)


und ein Auszug aus der extensions.conf:

Code:
[general]
static=yes
writeprotect=no

[globals]

[external-ISDN_ausgehend]
exten => _0X.,1,Dial(Capi/contr1/0${EXTEN:1}/Bo,,Ttr)
; exten => _0X.,1,Dial(Capi/g1/0${EXTEN:1}/B,30)

exten => _0X.,2,Congestion
exten => _0X.,3,Hangup

[external-ISDN_eingehend]
exten => 3312,1,Dial(ZAP/g1/25,45,r)
exten => 3312,2,Hangup
wobei die 3312 meine Telekom-MSN ist.
 
Zunächst einmal kannst du in der capi.conf
isdnmode=DID ausprobieren!

Beim Wählen über die capi ist die abgehende Nummer zu setzen:

exten => _0X.,1,Set(CALLERID(number)=25) ; abgehende MSN z.B. 25
exten => _0X.,2,Dial(Capi/contr1/0${EXTEN:1}/Bo,,Ttr)
 
Hi Netview, Hallo Holger;

ohne zunächst die extensions.conf geändert zu haben, seltsame Fehlermeldung bei über ISDN eingehendem Anruf :

Code:
   -- Executing Dial("CAPI/ISDN1/3312-4", "ZAP/contr1/25|45|r") in new stack
Jun 22 20:55:29 WARNING[31650]: chan_zap.c:7940 zt_request: Unable to determine channel for data contr1/25
Jun 22 20:55:29 NOTICE[31650]: app_dial.c:1059 dial_exec_full: Unable to create channel of type 'ZAP' (cause 0 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing Hangup("CAPI/ISDN1/3312-4", "") in new stack

EDIT:

jetzt in capi.conf statt "MSN" "DID" eingetragen.

Code:
 == ISDN1: Incoming call '0162yyyyyyy' -> '3312'
    -- ISDN1: Updated channel name: CAPI/ISDN1/3312-3
    -- Executing Dial("CAPI/ISDN1/3312-3", "ZAP/contr1/25|45|r") in new stack
Jun 22 21:02:29 WARNING[1381]: chan_zap.c:7940 zt_request: Unable to determine channel for data contr1/25
Jun 22 21:02:29 NOTICE[1381]: app_dial.c:1059 dial_exec_full: Unable to create channel of type 'ZAP' (cause 0 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing Hangup("CAPI/ISDN1/3312-3", "") in new stack
  == Spawn extension (external-ISDN_eingehend, 3312, 2) exited non-zero on 'CAPI/ISDN1/3312-3'
  == ISDN1: CAPI Hangingup

Asterisk klingelt nicht.
 
Zuletzt bearbeitet:
und sollte nicht in der capi.conf:

...
incomingmsn=3312 statt * stehen?

dies war doch deine ursprüngliche capi.conf:
Code:
;
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=de      ;set default language
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]           ;this example interface gets name 'ISDN1' and may be any
; msn=25          ; meine interne msn        ;name not starting with 'g' or 'contr'.
;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, ptp should be set in any case
incomingmsn=3312,50530    ;,34,35,37,39 ;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 to use
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
accountcode=      ;PBX accountcode to use in CDRs
context=external-ISDN_eingehend  ;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 Asterisk may
                  ;play MOH.
;immediate=yes     ;immediate start of pbx with extension 's' if no digits were
                  ;received on incoming call (no destination number yet)
;echosquelch=1    ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes   ;EICON DIVA SERVER (CAPI) echo cancelation
                  ;(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
;bridge=yes       ;native bridging (CAPI line interconnect) if available
;callgroup=1      ;PBX call group
;language=de      ;set language for this device (overwrites default language)
;disallow=all     ;RTP codec selection (valid with Eicon DIVA Server only)
;allow=all        ;RTP codec selection (valid with Eicon DIVA Server only)
devices=2         ;number of concurrent calls on this controller
                  ;(2 makes sense for single BRI, 30 for PRI)
 
Habe ich geändert, 3312 eingetragen, erfolglos:
Code:
 == ISDN1: Incoming call '0162yyyyyyy' -> '3312'
    -- ISDN1: Updated channel name: CAPI/ISDN1/3312-1
    -- Executing Dial("CAPI/ISDN1/3312-1", "ZAP/contr1/25|45|r") in new stack
Jun 22 21:11:34 WARNING[4222]: chan_zap.c:7940 zt_request: Unable to determine channel for data contr1/25
Jun 22 21:11:34 NOTICE[4222]: app_dial.c:1059 dial_exec_full: Unable to create channel of type 'ZAP' (cause 0 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing Hangup("CAPI/ISDN1/3312-1", "") in new stack
  == Spawn extension (external-ISDN_eingehend, 3312, 2) exited non-zero on 'CAPI/ISDN1/3312-1'
  == ISDN1: CAPI Hangingup
 
Hast du noch das 1o-opt?
Es sollte auch mit dem 1q-mod laufen und du hast damit wieder die Kerneltreiber des alten opts welche ja bei dir funktioniert haben!
 
Status
Für weitere Antworten geschlossen.
Kostenlos!

Neueste Beiträge

Statistik des Forums

Themen
248,876
Beiträge
2,303,712
Mitglieder
378,542
Neuestes Mitglied
viktor1181