Hallo Boardler,
ich habe seit neuem ein Problem mit meinem Asterisk.
Ich weiss nicht genau wie lange schon, jedoch bekomme ich keine Mail mehr wenn ich Faxe empfange.
Hier mal der Logauszug:
In meiner extensions.conf sieht es so aus:Code:Aug 11 10:46:46 VERBOSE[5891] logger.c: == ISDN1#02: Incoming call '0221123456789' -> '123456' Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing Set("CAPI/ISDN1/123456-0", "MAILEMPF=mail.empfänger@gmx.de") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing Set("CAPI/ISDN1/123456-0", "FAXID=0221123456789") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing Goto("CAPI/ISDN1/123456-0", "handlefax|s|1") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Goto (handlefax,s,1) Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing Set("CAPI/ISDN1/123456-0", "FAXFILE=/var/spool/asterisk/fax/1249980406.0") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing System("CAPI/ISDN1/123456-0", "echo "/var/spool/asterisk/fax/1249980406.0" > /faxid.txt") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing System("CAPI/ISDN1/123465-0", "echo "0221123456789" > /faxid2.txt") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing System("CAPI/ISDN1/123456-0", "echo "" > /faxid3.txt") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing System("CAPI/ISDN1/836294-0", "echo "mail.empfänger@gmx.de" > /faxid4.txt") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: -- Executing capiCommand("CAPI/ISDN1/123456-0", "receivefax|/var/spool/asterisk/fax/1249980406.0") in new stack Aug 11 10:46:46 VERBOSE[5900] logger.c: == ISDN1#02: Answering for 123456 Aug 11 10:47:09 VERBOSE[5891] logger.c: > ISDN1#02: CAPI INFO 0x3490: Normal call clearing Aug 11 10:47:09 VERBOSE[5900] logger.c: capi receivefax: fax receive successful. Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '0221123456789' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '0221123456789' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is 's' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is 'handlefax' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is 'CAPI/ISDN1/123456-0' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '(null)' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is 'capiCommand' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is 'receivefax|/var/spool/asterisk/fax/1249980406.0' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '2009-08-11 10:46:46' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '2009-08-11 10:46:46' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '2009-08-11 10:47:09' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '23' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '23' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is 'ANSWERED' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is 'DOCUMENTATION' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '(null)' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '1249980406.0' Aug 11 10:47:09 DEBUG[5900] pbx.c: Function result is '(null)' Aug 11 10:47:09 VERBOSE[5900] logger.c: == ISDN1#02: CAPI Hangingup for PLCI=0x101 in state 4
Nun zu meinem Problemansatz - Wenn im Asterisk die Meldung "CAPI Hangingup" kommt, bekomme ich im /var/log/messages folgende Meldung:Code:[handlefax] exten => s,1,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}) exten => s,n,System(echo "${FAXFILE}" > /faxid.txt) exten => s,n,System(echo "${FAXID}" > /faxid2.txt) exten => s,n,System(echo "${FAXPAGES}" > /faxid3.txt) exten => s,n,System(echo "${MAILEMPF}" > /faxid4.txt) exten => s,n,capicommand(receivefax|${FAXFILE}|||kf) exten => h,n,System(/var/lib/asterisk/fax2mail.sh "${FAXFILE}" "${FAXID}" "1" "${FAXRATE}" "${MAILEMPF}")
Ich bin mir keines CAPI, Kernel oder Asterisk Updates bewusst, von daher kan ich mir den Fehler nicht erklären.Code:Aug 11 10:47:08 webserver: kernel: kcapi: app1 1 ncci 0x10101 down
Für den Faxversand nutze ich AFAXD, aber damit hat das bestimmt nichts zu tun.
capiinfo gibt folgendes:
Ich hoffe ihr habt eine Idee woher der Fehler kommt.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
Verwendete Linux Version:
Verwendete Asterisk Version:Code:uname -a: Linux webserver 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686 GNU/Linux
Der Asterisk ist die Installation aus dem Debian Repository (installiert via apt-get)Code:show version: Asterisk 1.2.13 built by pbuilder @ grnetbox on a x86_64 running Linux on 2008-04-26 20:53:45 UTC
Ich hoffe die Angaben genügen, wenn nicht einfach kurz bescheid geben.


Zitieren