[asterisk-users] Mailing a fax with mutt does not succeed

Steve Edwards asterisk.org at sedwards.com
Wed Jun 19 13:28:22 CDT 2013


On Wed, 19 Jun 2013, Daniel - Asterisk wrote:

> I'm trying to send a received fax with mutt, when I try it from the 
> Linux shel it works, but when trying with Asterisk's System command it 
> doesn't.
> 
> Successful Linux command:
> echo | mutt -s "New fax" earohuanca at gmail.com -a /tmp/faxes/201306191111.tif
> 
> Unsuccessful Asterisk Command:
> same => n,System(mutt -s "New fax" elder.arohuanca at gmail.com -a ${FAXDEST}/${tempfax}.tif)

1) Doesn't mutt expect the body on stdin? (Where's the 'echo' in the 
Asterisk command?)

2) Is Asterisk executing as root? Does the Asterisk user ID have read 
access to the TIFF?

3) If you use 'verbose()' instead of 'system()' does the command look like 
your shell command?

4) Is mutt in the Asterisk user ID's path?

5) If you redirect the output in the system() command to a file, does that 
yield any clues? I.e., system(foo >/tmp/clue 2>&1)

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list