Sorry I meant to mention that Asterisk is running as root.

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Klaverstyn, David 
C
Sent: Friday, 11 May 2012 3:33 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Can run from shell but not from Asterisk System 
command

Hi All,

I have this strange problem on a newly installed PBX.  1.8.12.0.  I have other 
installs of 1.8.12.0 that does not exhibit this problem.

I can run from the console
/usr/sbin/fax2mail --cid-name "Console Execuation" --cid-number 61123123 
--dest-exten 8960 -f /var/spool/asterisk/fax/1336702728.59

... and an email will be emailed to me.

The following does not produce an email.
exten => 1122,1,Answer
exten => 1122,n,System(/usr/sbin/fax2mail --cid-name "Console Execuation" 
--cid-number 61123123 --dest-exten 8960 -f 
/var/spool/asterisk/fax/1336702728.59)
exten => 1122,n,HangUp

result from CLI
  == Using SIP RTP CoS mark 5
    -- Executing [1122@internal:1] Answer("SIP/8930-0000002b", "") in new stack
    -- Executing [1122@internal:2] System("SIP/8930-0000002b", 
"/usr/sbin/fax2mail --cid-name "Console Execuation" --cid-number 61735108900 
--dest-exten 8960 -f /var/spool/asterisk/fax/1336702728.59") in new stack
    -- Executing [1122@internal:3] Hangup("SIP/8930-0000002b", "") in new stack
  == Spawn extension (internal, 1122, 3) exited non-zero on 'SIP/8930-0000002b'

The log files that the fax2mail script generates are all correct but no email.
Regards
David Klaverstyn
--
_____________________________________________________________________
-- 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