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" [email protected] -a /tmp/faxes/201306191111.tif

Unsuccessful Asterisk Command:
same => n,System(mutt -s "New fax" [email protected] -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       [email protected]      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to