Brauche Hilfe bei extensions.conf für Faxversand mit email2fax

muk877

Neuer User
Mitglied seit
1 Jun 2008
Beiträge
5
Punkte für Reaktionen
0
Punkte
0
Hallo,

könnte mir bitte jemand sagen, was muss ich in die extensions.conf eintragen um Faxe via Email senden zu können??

extensions.conf
Code:
[general]
static=yes
writeprotect=no

[echotest]
exten => 81,1,answer
exten => 81,2,wait,1
exten => 81,3,playback,demo-echotest
exten => 81,4,echo
exten => 81,5,playback,demo-echodone
exten => 81,6,hangup

[lokal]
exten => _3X,1,NoCDR()
exten => _3X,n,Dial,SIP/${EXTEN}|55|Ttr

[sipgate_out]
exten => _0.,1,Dial,SIP/${EXTEN}|45|r


[fax_out]
exten =>_3X,1,Set(LOCALSTATIONID=Asterisk FAX)
exten =>_3X,2,Set(LOCALHEADERINFO=Asterisk Fax)
exten =>_3X,3,TxFAX(${FAXFILE},caller)
exten =>_3X,4,Hangup



[default]
include => lokal
include => echotest
include => sipgate_out
include => fax_out


Beim senden mit
Code:
cat test.eml | email2fax --debug --nomail
bekomme ich folgenden Fehler:

Code:
-- Attempting call on SIP/30 for application txfax(/tmp/email2fax/1212483661-059862305/beschwerde1.pdf.tif|caller) (Retry 1)
[Jun  3 11:01:03] WARNING[11861]: pbx.c:5150 ast_pbx_outgoing_app: SIP/30-081d3e50 already has a call record??
[Jun  3 11:01:03] WARNING[11861]: app_txfax.c:302 txfax_exec: Unable to start FAX
[Jun  3 11:01:03] NOTICE[11861]: pbx_spool.c:351 attempt_thread: Call completed to SIP/30


Wenn ich ein Call File benutze
Code:
Channel: SIP/30
MaxRetries: 3
WaitTime: 30

Set: LOCALSTATIONID=Asterisk
Set: LOCALHEADERINFO=IP-Fax
Set: T38CALL=1

Context:faxout
Extension:30
priority:1

Dann kommt eine Fehlermeldung:

Code:
-- Attempting call on SIP/30 for 30@faxout:1 (Retry 1)
[Jun  3 12:11:03] WARNING[15208]: pbx.c:4976 ast_pbx_outgoing_exten: SIP/30-081d3480 already has a call record??
  == Starting SIP/30-081d3480 at faxout,30,1 failed so falling back to exten 's'
  == Starting SIP/30-081d3480 at faxout,s,1 still failed so falling back to context 'default'
[Jun  3 12:11:03] WARNING[15208]: pbx.c:2450 __ast_pbx_run: Channel 'SIP/30-081d3480' sent into invalid extension 's' in context 'default', but no invalid handler
[Jun  3 12:11:03] NOTICE[15208]: pbx_spool.c:351 attempt_thread: Call completed to SIP/30



System:
Asterisk-1.4.4
agx-addons-1.4.0
spandsp-0.0.5

Kann mir bitte jemand helfen?
 
Zuletzt bearbeitet:
Habe die extensions.conf geändert

Code:
[fax_out]
exten => s,1,Set(LOCALSTATIONID=Asterisk FAX)
exten => s,n,Set(LOCALHEADERINFO=Asterisk Internet Fax)
exten => s,n,Set(FAXFILE=/usr/src/fax.tif)
exten => s,n,TxFAX(${FAXFILE},caller,ecm)
exten => h,1,NoOp(TX: REMOTESTATIONID is ${REMOTESTATIONID})
exten => h,n,NoOp(TX: PHASEESTATUS is ${PHASEESTATUS})

Bekomme trotzdem Fehler:
Code:
-- Attempting call on SIP/30 for 30@faxout:1 (Retry 1)
[Jun  3 13:28:59] WARNING[18125]: pbx.c:4976 ast_pbx_outgoing_exten: SIP/30-081d4590 already has a call record??
  == Starting SIP/30-081d4590 at faxout,30,1 failed so falling back to exten 's'
  == Starting SIP/30-081d4590 at faxout,s,1 still failed so falling back to context 'default'
    -- Executing [s@default:1] Set("SIP/30-081d4590", "LOCALSTATIONID=Asterisk FAX") in new stack
    -- Executing [s@default:2] Set("SIP/30-081d4590", "LOCALHEADERINFO=Asterisk Internet Fax") in new stack
    -- Executing [s@default:3] Set("SIP/30-081d4590", "FAXFILE=/usr/src/fax.tif") in new stack
    -- Executing [s@default:4] TxFAX("SIP/30-081d4590", "/usr/src/fax.tif|caller|ecm") in new stack
[Jun  3 13:28:59] WARNING[18125]: app_txfax.c:302 txfax_exec: Unable to start FAX
  == Spawn extension (default, s, 4) exited non-zero on 'SIP/30-081d4590'
    -- Executing [h@default:1] NoOp("SIP/30-081d4590", "TX: REMOTESTATIONID is ") in new stack
    -- Executing [h@default:2] NoOp("SIP/30-081d4590", "TX: PHASEESTATUS is ") in new stack
[Jun  3 13:28:59] NOTICE[18125]: pbx_spool.c:351 attempt_thread: Call completed to SIP/30

Call File siehe oben!
 
Gibt es irgend wo eine gute Anleitung für Asterisk mit Fax-Funktion?
Oder gibt es irgend wo eine fertige komplette iso Datei?
 
Kann mir hier keiner helfen?

Dann muss ich wohl hylafax nehmen :confused:
 
Mit Hylafax funktioniert es jetzt!

Sehr netter Forum hier :-Ö
 
Kostenlos!

Statistik des Forums

Themen
248,879
Beiträge
2,303,868
Mitglieder
378,552
Neuestes Mitglied
Parol2026