- Mitglied seit
- 23 Jul 2004
- Beiträge
- 121
- Punkte für Reaktionen
- 0
- Punkte
- 0
Hi,
hab spandsp erfolgreich installiert, das Empfangen von Faxen funktioniert auch, aber leider geht das Verschicken nicht. Meine extensions.conf sieht so aus:
exten => 05,1,Answer
exten => 05,n,Wait(2)
exten => 05,n,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID})
exten => 05,n,Set(SCRIPTFILE=/var/lib/asterisk/scripts/fax2mail)
exten => 05,n,Set([email protected])
exten => 05,n,rxfax(${FAXFILE})
exten => 05,n,system("${SCRIPTFILE}" "${CALLERIDNUM}" "${EMAILADDR}" "${FAXFILE}")
Die CLI wirft folgendes nach dem Ausführen des Befehls aus:
-- Executing System("SIP/1235668-0923", ""/var/lib/asterisk/scripts/fax2mail" "unbekannt" "[email protected]" "/var/spool/asterisk/fax/1141840438.2"") in new stack
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '"anonymous" <unbekannt>'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'unbekannt'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '05'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'incoming'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'SIP/1235668-0923'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '(null)'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'System'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '"/var/lib/asterisk/scripts/fax2mail" "unbekannt" "[email protected]" "/var'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '2006-03-08 18:53:58'
Bleibt noch der Eintrag in /var/log/mail:
Mar 8 05:28:01 localhost postfix/pickup[7280]: 7029F384430: uid=0 from=<root>
Mar 8 05:28:01 localhost postfix/cleanup[7602]: 7029F384430: message-id=<[email protected]>
Mar 8 05:28:01 localhost postfix/qmgr[6409]: 7029F384430: from=<[email protected]>, size=534, nrcpt=1 (queue active)
Mar 8 05:28:01 localhost postfix/local[7604]: 7029F384430: to=<[email protected]>, orig_to=<root>, relay=local, delay=0, status=bounced (cannot access mailbox /var/mail/asterisk for user asterisk. cannot open file: Permission denied)
seltsam, ich habe /var/mail/asterisk mal testweise für alle zugänglich gemacht (chmod 777 /var/mail/asterisk)
trotzdem funktioniert es nicht!
Achja, das Script zum versenden hab ich von hier rauskopiert:
http://wiki.ip-phone-forum.de/software:asterisk:ein_fax_mit_astersik_entgegennehmen?s=fax+pdf+email
Wo bzw. was stimmt mit den User-Rechten nicht?
Danke und Gruß
pbtraveller
hab spandsp erfolgreich installiert, das Empfangen von Faxen funktioniert auch, aber leider geht das Verschicken nicht. Meine extensions.conf sieht so aus:
exten => 05,1,Answer
exten => 05,n,Wait(2)
exten => 05,n,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID})
exten => 05,n,Set(SCRIPTFILE=/var/lib/asterisk/scripts/fax2mail)
exten => 05,n,Set([email protected])
exten => 05,n,rxfax(${FAXFILE})
exten => 05,n,system("${SCRIPTFILE}" "${CALLERIDNUM}" "${EMAILADDR}" "${FAXFILE}")
Die CLI wirft folgendes nach dem Ausführen des Befehls aus:
-- Executing System("SIP/1235668-0923", ""/var/lib/asterisk/scripts/fax2mail" "unbekannt" "[email protected]" "/var/spool/asterisk/fax/1141840438.2"") in new stack
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '"anonymous" <unbekannt>'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'unbekannt'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '05'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'incoming'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'SIP/1235668-0923'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '(null)'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'System'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '"/var/lib/asterisk/scripts/fax2mail" "unbekannt" "[email protected]" "/var'
Mar 8 18:54:28 DEBUG[13860]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '2006-03-08 18:53:58'
Bleibt noch der Eintrag in /var/log/mail:
Mar 8 05:28:01 localhost postfix/pickup[7280]: 7029F384430: uid=0 from=<root>
Mar 8 05:28:01 localhost postfix/cleanup[7602]: 7029F384430: message-id=<[email protected]>
Mar 8 05:28:01 localhost postfix/qmgr[6409]: 7029F384430: from=<[email protected]>, size=534, nrcpt=1 (queue active)
Mar 8 05:28:01 localhost postfix/local[7604]: 7029F384430: to=<[email protected]>, orig_to=<root>, relay=local, delay=0, status=bounced (cannot access mailbox /var/mail/asterisk for user asterisk. cannot open file: Permission denied)
seltsam, ich habe /var/mail/asterisk mal testweise für alle zugänglich gemacht (chmod 777 /var/mail/asterisk)
trotzdem funktioniert es nicht!
Achja, das Script zum versenden hab ich von hier rauskopiert:
http://wiki.ip-phone-forum.de/software:asterisk:ein_fax_mit_astersik_entgegennehmen?s=fax+pdf+email
Wo bzw. was stimmt mit den User-Rechten nicht?
Danke und Gruß
pbtraveller