[asterisk-users] Unable to Execute System Command From DialPlan
Salvatore Giudice
Salvatore.Giudice at VoIPSecurityTraining.com
Thu May 3 18:52:06 MST 2007
Could it be permissions? What uid is your Asterisk running under and what
are the perms for your sounds directory? sounds is this by default on my
server since I built from source:
drwxr-xr-x 13 root root 110592 Apr 14 01:13 sounds
Try putting:
/bin/mkdir -p /var/lib/asterisk/sounds/1234 > /tmp/logfile 2>&1
See if that generates a log for you at least.
--------------------------------------------------
Salvatore Giudice
Salvatore.Giudice at VoIPSecurityTraining.com
VoIP Security Training, LLC
http://VoIPSecurityTraining.com
848 N. Rainbow Blvd. #1676
Las Vegas, NV 89107
Phone: (617) 959-7625
Fax: (214) 279-2906
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of vcomp
Sent: Thursday, May 03, 2007 8:38 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Unable to Execute System Command From DialPlan
Hello,
I have scoured the mailing lists and forums to no avail. Does anyone have
tips on how to use the system command within a dialplan (1.2.7.1). I am very
familiar with dialplan scripting but new to the system command.
I am attempting to create a directory. I put both of the lines below in my
dialplan but neither executes, although they do not generate errors. The
first line was added just for kicks to see if system is working properly.
exten => s,n,System(/bin/pwd > location.out)
exten => s,n,System(/bin/mkdir -p /var/lib/asterisk/sounds/1234)
Any assistance would be greatly appreciated.
Thanks,
Victor
P.S. I received a suggestion to change System(/bin/pwd... to
System(!/bin/pwd ... but it did not work, with or without a space.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070503/460a7866/attachment.htm
More information about the asterisk-users
mailing list