More things to try:
(1) Is there any entry in /var/log/maillog (or equivalent log file)? If so, mutt basically works
and the messages should give some clues.
(2) What happens if you call mutt without any attachments?
I am using mutt in exactly the same way and it works.
jg
Am 19.06.2013 21:50, schrieb Daniel - Asterisk:
Hi Andre:
I added echo to provide STDIN, I'm sure on variable contents, please see bellow
Hello Steve,
1. I've just addd echo at my sentence, please see output bellow.
2. Asterisk is executing as root, I think Asterisk has access to read TIF files since I've
used ls, chmod, cp & mv from Asterisk's CLI with '!' character.
3. I don't get you, please give some advice to try using Verbose instead System
4. I don't know how to get this, but I'm using /usr/bin/mutt as you can see
bellow.
5. I have redirected output of System this way : System(echo | /usr/bin/mutt -s "New fax"
earohua...@gmail.com <mailto:earohua...@gmail.com> -a ${FAXDEST}/${tempfax} >
/tmp/ocurrencies.txt 2>&1), ocurrencies.txt is empty.
DIALPLAN:
[ Context 'default' created by 'pbx_config' ]
'*95' => 1. NoOp(trying to send a fax to an email)
2. Set(FAXDEST=/tmp/faxes)
3. Set(tempfax=${SHELL(ls /tmp/faxes/*.tif):11})
4. NoOp(file name is: ${tempfax})
5. Goto(incoming-fax,fax,7)
[ Context 'incoming-fax' created by 'pbx_config' ]
'fax' => 1. Verbose(3,Incoming fax)
...
5. ReceiveFax(${FAXDEST}/${tempfax})
6. Verbose(3,- Fax receipt completed with status:
${FAXSTATUS})
7. System(echo | /usr/bin/mutt -s "New fax" earohua...@gmail.com
<mailto:earohua...@gmail.com> -a ${FAXDEST}/${tempfax})
8. NoOp(System command status is: ${SYSTEMSTATUS})
9. Hangup()
ASTERISK CLI OUTPUT:
-- Goto (default,*95,1)
-- Executing [*95@default:1] NoOp("SIP/40106-00001ea1", "trying to send a fax to an
email") in new stack
-- Executing [*95@default:2] Set("SIP/40106-00001ea1",
"FAXDEST=/tmp/faxes") in new stack
-- Executing [*95@default:3] Set("SIP/40106-00001ea1", "tempfax=201306191111.tif") in new
stack
-- Executing [*95@default:4] NoOp("SIP/40106-00001ea1", "file name is: 201306191111.tif")
in new stack
-- Executing [*95@default:5] Goto("SIP/40106-00001ea1",
"incoming-fax,fax,7") in new stack
-- Goto (incoming-fax,fax,7)
-- Executing [fax@incoming-fax:7] System("SIP/40106-00001ea1", "echo | /usr/bin/mutt -s
"New fax" earohua...@gmail.com <mailto:earohua...@gmail.com> -a /tmp/faxes/201306191111.tif")
in new stack
-- Executing [fax@incoming-fax:8] NoOp("SIP/40106-00001ea1", "System command status is:
APPERROR") in new stack
-- Executing [fax@incoming-fax:9] Hangup("SIP/40106-00001ea1", "") in new
stack
Elder D. Arohuanca
Lima - Peru
On Wed, Jun 19, 2013 at 1:38 PM, Andre Courchesne <voipfor...@gmail.com
<mailto:voipfor...@gmail.com>> wrote:
Why "echo |" ?
Alsy are you sire of the content of ${FAXDEST} and ${tempfax}.
Add some NoOp before.
On 2013-06-19, at 2:29 PM, Daniel - Asterisk <earohua...@gmail.com
<mailto:earohua...@gmail.com>> wrote:
Hi Andre,
I've tried with:
System(echo | /usr/bin/mutt -s "New fax" earohua...@gmail.com
<mailto:earohua...@gmail.com> -a ${FAXDEST}/${tempfax})
with no success, value of SYSTEMSTATUS variable is APPERROR
Again it works from Linux shell.
Thanks in advance
Elder
On Wed, Jun 19, 2013 at 1:08 PM, Andre Courchesne <voipfor...@gmail.com
<mailto:voipfor...@gmail.com>> wrote:
Probably Asterisk does not know where mutt is, specify it's path in
your System command.
On 2013-06-19, at 2:03 PM, Daniel - Asterisk <earohua...@gmail.com
<mailto:earohua...@gmail.com>> wrote:
Hello everyone,
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" earohua...@gmail.com
<mailto:earohua...@gmail.com> -a
/tmp/faxes/201306191111.tif
Unsuccessful Asterisk Command:
same => n,System(mutt -s "New fax" elder.arohua...@gmail.com
<mailto:elder.arohua...@gmail.com> -a ${FAXDEST}/${tempfax}.tif)
I'm using Asterisk 1.8.19.0 on Debian 6.0.6, Asterisk was installed by
root.
Any hint will be appreciated.
Elder D. Arohuanca
Lima - Peru
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
<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
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
<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
--
_____________________________________________________________________
-- 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
--
_____________________________________________________________________
-- 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
--
_____________________________________________________________________
-- 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
--
_____________________________________________________________________
-- 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