[asterisk-users] Unable to Execute System Command From DialPlan

vcomp voicecomputing at gmail.com
Thu May 3 17:37:38 MST 2007


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/375305f2/attachment.htm


More information about the asterisk-users mailing list