Hallo,
ich habe bristuff-0.4.0-RC3b mit einer HFC-S-Karte in Betrieb genommen.
Dazu gesellt sich die aktuelle agx-ast-addons-Version (1.4.5) und spansp 0.0.4 pre 15. (wie es agx-ast-addons verlangen)
Die HFC-S-Karte läuft im TE-Mode:
Dann ist Feierabend. Asterisk ist weg.
Starte asterisk wieder läuft er bis zum nächsten Fax.
Was kann das sein?
Die /etc/zaptel.conf
Die Zapata.conf
Ausschnitt aus der etxtensions.conf
ich habe bristuff-0.4.0-RC3b mit einer HFC-S-Karte in Betrieb genommen.
Dazu gesellt sich die aktuelle agx-ast-addons-Version (1.4.5) und spansp 0.0.4 pre 15. (wie es agx-ast-addons verlangen)
Die HFC-S-Karte läuft im TE-Mode:
Code:
Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] layer 1 ACTIVATED (F7)" (MASTER) AMI/CCS
1 ZTHFC1/0/1 Clear (In use)
2 ZTHFC1/0/2 Clear (In use)
3 ZTHFC1/0/3 HDLCFCS (In use)
[code]
Wenn ich ein Fax an diese Karte sende nimmt er das Fax an und erstellt auch eine Tif-Datei. Doch danach läuft asterisk nicht mehr :((
Der Log-Auszug:
[code]
[Jul 7 20:40:52] VERBOSE[6111] logger.c: -- Accepting voice call from '' to '21' on channel 0/1, span 1
[Jul 7 20:40:52] VERBOSE[6148] logger.c: -- Executing [21@incoming:1] Macro("Zap/1-1", "faxempfang") in new stack
[Jul 7 20:40:52] VERBOSE[6148] logger.c: -- Executing [s@macro-faxempfang:1] NoOp("Zap/1-1", ""Nehme Fax von 21 an"") in new stack
[Jul 7 20:40:52] DEBUG[6148] app_macro.c: Executed application: NoOp
[Jul 7 20:40:52] VERBOSE[6148] logger.c: -- Executing [s@macro-faxempfang:2] Answer("Zap/1-1", "") in new stack
[Jul 7 20:40:52] DEBUG[6148] chan_zap.c: Engaged echo training on channel 1
[Jul 7 20:40:52] DEBUG[6148] app_macro.c: Executed application: Answer
[Jul 7 20:40:52] VERBOSE[6148] logger.c: -- Executing [s@macro-faxempfang:3] Set("Zap/1-1", "FAXFILE=/var/spool/asterisk/fax/asterisk-1215456052.1.tif") in new stack
[Jul 7 20:40:52] DEBUG[6148] app_macro.c: Executed application: Set
[Jul 7 20:40:52] VERBOSE[6148] logger.c: -- Executing [s@macro-faxempfang:4] Wait("Zap/1-1", "3") in new stack
[Jul 7 20:40:55] DEBUG[6148] app_macro.c: Executed application: Wait
[Jul 7 20:40:55] VERBOSE[6148] logger.c: -- Executing [s@macro-faxempfang:5] RxFAX("Zap/1-1", "/var/spool/asterisk/fax/asterisk-1215456052.1.tif") in new stack
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: ==============================================================================
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Pages transferred: -1209794572
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Image size: -1209794572 x -1232157080
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Image resolution -1209794572 x -1232157080
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Transfer Rate: -1209794572
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Bad rows -1209794572
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Longest bad row run -1209794572
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Compression type \▒
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Image size (bytes) -1209794572
[Jul 7 20:41:19] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: ==============================================================================
[Jul 7 20:41:22] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: ==============================================================================
[Jul 7 20:41:22] DEBUG[6148] /usr/software/src/asterisk/fax/agx-ast-addons/app_rxfax.c: Fax successfully received.
Dann ist Feierabend. Asterisk ist weg.
Starte asterisk wieder läuft er bis zum nächsten Fax.
Was kann das sein?
Die /etc/zaptel.conf
Code:
loadzone=nl
defaultzone=nl
span=1,1,3,ccs,ami
bchan=1-2
dchan=3
Die Zapata.conf
Code:
;
; Zapata telephony interface
;
; Configuration file
[channels]
;
; Default language
;
language=nl
;
; Default context
;
;
switchtype = euroisdn
; p2mp TE mode
signalling = bri_cpe_ptmp
; p2p TE mode
;signalling = bri_cpe
; p2mp NT mode
;signalling = bri_net_ptmp
; p2p NT mode
;signalling = bri_net
pridialplan = dynamic
prilocaldialplan = local
nationalprefix = 0
internationalprefix = 00
echocancel=yes
echotraining = 100
echocancelwhenbridged=yes
immediate=no
group = 1
context=incoming
channel => 1-2
Ausschnitt aus der etxtensions.conf
Code:
[macro-faxempfang]
exten => s,1,NoOp("Nehme Fax von 21 an")
exten => s,2,Answer
exten => s,3,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)
exten => s,4,Wait(3)
exten => s,5,rxfax(${FAXFILE})
exten => s,6,Hangup
[incoming]
exten => 21,1,Macro(faxempfang)
exten => h,1,System("/var/lib/asterisk/scripts/fax2email" "${CALLERIDNUM}" "faxmail@localhost" "${FAXFILE}")