[asterisk-users] Can run from shell but not from Asterisk System command
Ishfaq Malik
ish at pack-net.co.uk
Fri May 11 03:38:57 CDT 2012
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
More information about the asterisk-users
mailing list