Hello
We have installed fax for asterisk and it works perfectly, execpt that it seems that the notification email that the system can send are not sent. We get this in the Asterisk CLI:
[Sep 9 19:21:56] WARNING[12054]: pbx.c:2529 __ast_pbx_run: Timeout, but no rule 't' in context 'tl-faxsend'
-- Executing [h@tl-faxsend:1] GotoIf("SIP/Size-0974a128", "0?hangup") in new stack
-- Executing [h@tl-faxsend:2] GotoIf("SIP/Size-0974a128", "0?error") in new stack
-- Executing [h@tl-faxsend:3] GotoIf("SIP/Size-0974a128", "1?sendmail") in new stack
-- Goto (tl-faxsend,h,5)
-- Executing [h@tl-faxsend:5] System("SIP/Size-0974a128", "REMOTENUMBER=03935643565 CONFSUCCESS=1 FAXFILE=/tmp/iptelefonibolaget-1103-2010-09-9-19-18-42.tiff FAXERROR="NO_ERROR" STATUS=SUCCESS EMAILADDR=helpdesk@ip-telefonibolaget.se REMOTESTATIONID="03935643565" FAXPAGES=6 FAXBITRATE=14400 /usr/local/sbin/faxreport.sh") in new stack
[Sep 9 19:21:56] WARNING[12054]: app_system.c:107 system_exec_helper: Unable to execute 'REMOTENUMBER=03935643565 CONFSUCCESS=1 FAXFILE=/tmp/iptelefonibolaget-1103-2010-09-9-19-18-42.tiff FAXERROR="NO_ERROR" STATUS=SUCCESS EMAILADDR=helpdesk@ip-telefonibolaget.se REMOTESTATIONID="03935643565" FAXPAGES=6 FAXBITRATE=14400 /usr/local/sbin/faxreport.sh'
Where have I missed on doing some configuration regarding send that the notification e-mail.
Hello, I did that and now
Hello, I did that and now when the other fax didnt answer I got this in the Asterisk CLI:
-- SIP/Size-096aec20 is ringing
-- Executing [failed@tl-faxsend:1] System("OutgoingSpoolFailed", "REMOTENUMBER= 03935643565 REASON=3 FAILED=2 EMAILADDR=helpdesk@ip-telefonibolaget.se /usr/local/sbin/faxreport.sh") in new stack
== Spawn extension (macro-tl-dialout-base, dial-SIP, 7) exited non-zero on 'Local/03935643565@from-inside-iptelefonibolaget-a3ab,2' in macro 'tl-dialout-base'
== Spawn extension (macro-tl-dialout-1-trunk, s, 3) exited non-zero on 'Local/03935643565@from-inside-iptelefonibolaget-a3ab,2' in macro 'tl-dialout-1-trunk'
== Spawn extension (from-inside-redir-iptelefonibolaget, 03935643565, 1) exited non-zero on 'Local/03935643565@from-inside-iptelefonibolaget-a3ab,2'
-- Executing [h@from-inside-redir-iptelefonibolaget:1] Hangup("Local/03935643565@from-inside-iptelefonibolaget-a3ab,2", "") in new stack
== Spawn extension (from-inside-redir-iptelefonibolaget, h, 1) exited non-zero on 'Local/03935643565@from-inside-iptelefonibolaget-a3ab,2'
[Sep 9 19:38:22] ERROR[13713]: res_fax.c:2217 acf_faxopt_read: channel 'OutgoingSpoolFailed' can't read FAXOPT(status) because it has never been written.
-- Executing [h@tl-faxsend:1] GotoIf("OutgoingSpoolFailed", "1?hangup") in new stack
-- Goto (tl-faxsend,h,6)
-- Executing [h@tl-faxsend:6] NoOp("OutgoingSpoolFailed", "") in new stack
[Sep 9 19:38:22] NOTICE[13713]: pbx_spool.c:356 attempt_thread: Call failed to go through, reason (3) Remote end Ringing
/usr/local/sbin looks like this:
-rwxrwxr-x 1 root root 742 May 4 2009 AsteriskInfo
-rwxrwxr-x 1 root root 111 May 4 2009 AsteriskMonitor
-rwxrwxr-x 1 root root 278 May 4 2009 AsteriskSupervise
-rwxrwxr-x 1 root root 1567 May 4 2009 config
-rwxrwxr-x 1 root root 724 May 4 2009 count_files
-rwxrwxr-x 1 root root 1550 Sep 9 19:35 fax2pdf.sh
-rwxrwxr-x 1 root root 2205 Sep 9 19:35 faxreport.sh
-rwxrwxr-x 1 root root 1649 May 4 2009 grandstream.pl
-rwxrwxr-x 1 root root 730 May 4 2009 help-pbx
-rwxrwxr-x 1 root root 1617 May 4 2009 install-netmrg
-rwxrwxr-x 1 root root 568 May 4 2009 linksys_reload.pl
-rwxrwxr-x 1 root root 454 May 4 2009 motd.sh
-rwxrwxr-x 1 root root 233 May 4 2009 passwd-maint
-rwxrwxr-x 1 root root 219 May 4 2009 passwd-meetme
-rwxrwxr-x 1 root root 1187 May 4 2009 pbxuser
-rwxrwxr-x 1 root root 1879 May 4 2009 raid1-fixgrub
-rwxrwxr-x 1 root root 1053 May 4 2009 raid1-fixmbr
-rwxrwxr-x 1 root root 3840 May 4 2009 raid1-rebuild
-rwxrwxr-x 1 root root 1596 May 4 2009 rebuild_zaptel
-rwxrwxr-x 1 root root 77882 Sep 9 19:35 sendEmail
-rwxrwxr-x 1 root root 998 May 4 2009 setup-dhcp
-rwxrwxr-x 1 root root 2071 May 4 2009 setup-mail
-rwxrwxr-x 1 root root 646 May 4 2009 setup-samba
-rwxrwxr-x 1 root root 3016 May 4 2009 webmin2UTF8.sh
take everything in /usr/libexec/webmin/asterisk/configs/local-sbin/ and put it in /usr/local/sbin/
make sure the files are chmod 755