Klaverstyn, David C
2012-May-11 03:32 UTC
[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 at internal:1] Answer("SIP/8930-0000002b",
"") in new stack
-- Executing [1122 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20120511/8db050cd/attachment.htm>
Klaverstyn, David C
2012-May-11 03:34 UTC
[asterisk-users] Can run from shell but not from Asterisk System command
Sorry I meant to mention that Asterisk is running as root.
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces
at 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 at internal:1] Answer("SIP/8930-0000002b",
"") in new stack
-- Executing [1122 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20120511/1dd70277/attachment.htm>
Ishfaq Malik
2012-May-11 08:38 UTC
[asterisk-users] Can run from shell but not from Asterisk System command
On Fri, 2012-05-11 at 03:32 +0000, Klaverstyn, David C wrote:> 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 at internal:1] Answer("SIP/8930-0000002b", "") in > new stack > > -- Executing [1122 at 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 at 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 > > > >Can you change user to the asterisk user and execute the command from there? -- Ishfaq Malik <ish at pack-net.co.uk> Department: VOIP Support Company: Packnet Limited t: +44 (0)845 004 4994 f: +44 (0)161 660 9825 e: ish at pack-net.co.uk w: http://www.pack-net.co.uk Registered Address: PACKNET LIMITED, 2A ENTERPRISE HOUSE, LLOYD STREET NORTH, MANCHESTER SCIENCE PARK, MANCHESTER, M156SE COMPANY REG NO. 04920552